Actions26
- Contact Actions
- Conversation Actions
- Statistic Actions
- Variable Actions
Variable → Create Global Variable
AI-generatedSummary
Create a new global variable for a chatbot
Inputs
- chatbotId (required) — The ID of the chatbot whose global variable will be created
- bodyVariableCreate — JSON payload defining the variable; default creates a custom variable named customer_email
Output shape
a single record representing the created variable (or success flag)
The response may contain the variable details or a generic success object; fields depend on the API.
Examples
Example 1: Add a global email variable to chatbot abc123
chatbotId: abc123; bodyVariableCreate: {"category":"custom","label":"Customer Email","type":"string","name":"customer_email","subCategory":0}