Epic AI icon

Epic AI

Interact with the Epic AI (ChatCaptain) API

Contact → Set / Update Variable

AI-generated

Summary

Update a contact variable's value

Inputs

  • chatbotId (required) — The ID of the chatbot
  • variableId (required) — The ID of the variable
  • contactId (required) — The ID of the contact
  • bodyContactVariableUpdate — The request body as JSON

Output shape

an object containing the API response (e.g., success flag or parsed JSON)

errors are thrown; no pagination; response may be empty if only success flag is returned

Examples

Example 1: Update a contact variable's value

chatbotId=123, contactId=contact_456, variableId=var_789, bodyContactVariableUpdate={"value":"updated"}

Example 2: Set or update a contact variable with custom JSON

chatbotId=myBot, contactId=contact_001, variableId=variable_002, bodyContactVariableUpdate={"value":"new content","extra":true}

Links

Discussion