Domain Model
Bot Command
Fields
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
| id | string.uuid | Yes | — | Id |
| createdAt | string.date-time | Yes | — | Created at |
| updatedAt | string.date-time | Yes | — | Updated at |
| 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 | — | Enabled |
| visibilityMode | enum(global, workspace_local, shared) | Yes | — | Visibility mode |
Create Schema
Fields accepted when creating a new record:
| 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 |
Update Schema
All fields are optional when updating:
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
| commandName | string | No | — | Command name |
| commandSchemaJson | object | No | — | Command schema json |
| handlerName | string | No | — | Handler name |
| channelEndpointId | string | No | — | ID of the associated channel endpoint |
| enabled | boolean | No | true | Enabled |