API ReferenceBot Command
botCommand.register
Type: Mutation · Auth: Workspace-aware
Input
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
| provider | enum(telegram, whatsapp, discord, slack, microsoft_teams, ai_agent, email) | Yes | — | Provider |
| commandName | string | Yes | — | Command name |
| commandSchemaJson | object | No | — | Command schema json |
| handlerName | string | Yes | — | Handler name |
| workspaceId | string | Yes | — | ID of the associated workspace |
| channelEndpointId | string | No | — | ID of the associated channel endpoint |
| enabled | boolean | Yes | true | Enabled |
| visibilityMode | enum(global, workspace_local, shared) | Yes | "workspace_local" | Visibility mode |
Example
{
"provider": "telegram",
"commandName": "example",
"commandSchemaJson": null,
"handlerName": "example",
"workspaceId": "550e8400-e29b-41d4-a716-446655440000",
"channelEndpointId": "550e8400-e29b-41d4-a716-446655440000",
"enabled": true,
"visibilityMode": "global"
}