createBot
Create bot
POST
/v1/admin/botsAuthorization
AuthorizationBearerrequiredBearer authentication header of the form Bearer <token>, where <token> is your auth token.
Header parameters
x-workspace-idstringrequiredWorkspace ID
x-multiple-integrationsstringWhether 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
statesobjectA mapping of states to their definition
eventsobjectEvents definition
recurringEventsobjectsubscriptionsobjectSubscriptions of the bot
actionsobjectActions definition
configurationobjectuserobjectconversationobjectmessageobjecttagsobjectOptional attributes of the Bot
codestringJavaScript code of the bot
namestringOptional name for the bot, if not provided will be auto-generated(min length: 1)
descriptionstringOptional description for the bot(max length: 2000)
mediasobject[]Media files associated with the Bot
urlstringURL of the Bot
secretsobjectSecrets 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.
devbooleanIndicates 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