Space Docs
Domain Model

Bot Command

Fields

FieldTypeRequiredDefaultDescription
idstring.uuidYes—Id
createdAtstring.date-timeYes—Created at
updatedAtstring.date-timeYes—Updated at
providerenum(telegram, whatsapp, discord, slack, microsoft_teams, ai_agent, email)Yes—Provider
commandNamestringYes—Command name
commandSchemaJsonobjectNo—Command schema json
handlerNamestringYes—Handler name
workspaceIdstringYes—ID of the associated workspace
channelEndpointIdstringNo—ID of the associated channel endpoint
enabledbooleanYes—Enabled
visibilityModeunknownYes—Visibility mode

Create Schema

Fields accepted when creating a new record:

FieldTypeRequiredDefaultDescription
providerenum(telegram, whatsapp, discord, slack, microsoft_teams, ai_agent, email)Yes—Provider
commandNamestringYes—Command name
commandSchemaJsonobjectNo—Command schema json
handlerNamestringYes—Handler name
workspaceIdstringYes—ID of the associated workspace
channelEndpointIdstringNo—ID of the associated channel endpoint
enabledbooleanYestrueEnabled
visibilityModeunknownNo—Visibility mode

Update Schema

All fields are optional when updating:

FieldTypeRequiredDefaultDescription
commandNamestringNo—Command name
commandSchemaJsonobjectNo—Command schema json
handlerNamestringNo—Handler name
channelEndpointIdstringNo—ID of the associated channel endpoint
enabledbooleanNo—Enabled

On this page