createBot

Create bot

POST/v1/admin/bots

Authorization

AuthorizationBearerrequired
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Header parameters

x-workspace-idstringrequired
Workspace ID
x-multiple-integrationsstring
Whether the client supports bots with multiple instances of the same integration. Set to "true" to receive integration instances keyed by their alias instead of their id. This header will be removed in the future, and the API will always return multiple instances keyed by alias.

Request body

Bot metadata

statesobject
A mapping of states to their definition
eventsobject
Events definition
recurringEventsobject
subscriptionsobject
Subscriptions of the bot
actionsobject
Actions definition
configurationobject
userobject
conversationobject
messageobject
tagsobject
Optional attributes of the Bot
codestring
JavaScript code of the bot
namestring
Optional name for the bot, if not provided will be auto-generated(min length: 1)
descriptionstring
Optional description for the bot(max length: 2000)
mediasobject[]
Media files associated with the Bot
urlstring
URL of the Bot
secretsobject
Secrets are values available in the code via environment variables formatted with a SECRET_ prefix followed by your secret name. A secret name must respect SCREAMING_SNAKE casing.
devboolean
Indicates if the Bot is a development bot; Development bots run locally and can install dev integrations
typeenum<string>
Type of the Bot
Available options:"studio","adk","desk"

Response

Success

botobjectrequired