Epic AI icon

Epic AI

Interact with the Epic AI (ChatCaptain) API

Conversation → Set / Update Variable

AI-generated

Summary

Update a conversation variable

Inputs

  • chatbotId (required) — The ID of the chatbot
  • conversationId (required) — The ID of the conversation
  • variableId (required) — The ID of the variable
  • bodyVariableUpdate — The request body as JSON containing the new value

Output shape

a single variable record (the updated variable's data)

May include a success flag; errors are thrown as n8n NodeApiError; response body is parsed JSON

Examples

Example 1: Set a conversation variable to a new value

chatbotId = "myBot"; conversationId = "conv_123"; variableId = "myVar"; bodyVariableUpdate = {"value":"new_value"}

Example 2: Update a variable via a custom JSON body

chatbotId = "myBot"; conversationId = "conv_456"; variableId = "emailVar"; bodyVariableUpdate = {"value":"user@example.com"}

Links

Discussion