Trigger Integrations
Create Trigger Integration
Create Trigger integration
Authorization
ChatBotKit API Secret * Required
HTTP Authorization Scheme: bearer
Request Body * Required
Request Body Schema: application/json
namestring
The associated name
descriptionstring
The associated description
metaobject
Meta data information
blueprintIdstring
The ID of the blueprint
botIdstring
The ID of the bot this configuration is using
authenticateboolean
When enabled the integration requires authentication
triggerSchedulestring
The schedule
sessionDurationnumber
The session duration (in milliseconds)
maxIterationsnumber
The maximum number of iterations per trigger execution
maxTimenumber
The maximum time per trigger execution in milliseconds
import { ChatBotKit } from '@chatbotkit/sdk'
const cbk = new ChatBotKit({
secret: process.env.CHATBOTKIT_API_KEY!
})
const response = await cbk.integration.trigger.create(
{)"name":"string","description":"string","meta":"object","blueprintId":"string","botId":"string","authenticate":"boolean","triggerSchedule":"string","sessionDuration":"number","maxIterations":"number",}"maxTime":"number"
{"id":"string"}