For the complete documentation index, see llms.txt. This page is also available as Markdown.

Conversation variables

Lists all custom, entity and app variables of a conversation

get

Required Permission: chatbots.conversations.variables.list

Resource: chatbots/:chatbotId

Authorizations
x-chatcaptain-keystringRequired
Path parameters
chatbotIdstringRequired

The ID of the chatbot.

conversationIdstringRequired

The ID of the conversation.

Responses
200

The list of conversation variables.

application/json
errorstringOptional

Optional error message.

get
/v1/chatbots/{chatbotId}/conversations/{conversationId}/variables

Deletes all custom, entity and app variables of a conversation

delete

Required Permission: chatbots.conversations.variables.delete

Resource: chatbots/:chatbotId

Authorizations
x-chatcaptain-keystringRequired
Path parameters
chatbotIdstringRequired

The ID of the chatbot.

conversationIdstringRequired

The ID of the conversation.

Responses
200

The deletion result.

application/json
deletedbooleanOptional

Indicates whether the deletion operation was successful.

Example: true
errorstringOptional

Optional error message.

delete
/v1/chatbots/{chatbotId}/conversations/{conversationId}/variables

Retrieves a specific custom, entity or app variable of a conversation

get

Required Permission: chatbots.conversations.variables.get

Resource: chatbots/:chatbotId

Authorizations
x-chatcaptain-keystringRequired
Path parameters
chatbotIdstringRequired

The ID of the chatbot.

conversationIdstringRequired

The ID of the conversation.

variableIdstringRequired

The Id of the variable.

Responses
200

The requested variable.

application/json
errorstringOptional

Optional error message.

get
/v1/chatbots/{chatbotId}/conversations/{conversationId}/variables/{variableId}

Sets or updates the value of a custom, entity or app variable in a conversation

put

Required Permission: chatbots.conversations.variables.edit

Resource: chatbots/:chatbotId

Authorizations
x-chatcaptain-keystringRequired
Path parameters
chatbotIdstringRequired

The ID of the chatbot.

variableIdstringRequired

The Id of the variable whose value is to be set.

conversationIdstringRequired

The ID of the conversation.

Body
valuestringRequired

The new value to be assigned to the variable.

Example: Custom Value
Responses
200

The updated variable.

application/json
errorstringOptional

Optional error message.

put
/v1/chatbots/{chatbotId}/conversations/{conversationId}/variables/{variableId}

Last updated