Workflow Variables
Create workflow variable
Creates a variable for an automation workflow. Requires a USER API key.
post/public/v1/workflows/{workflowId}/variables
Path parameters
workflowIdnumber nullable
Example:501
Request body
Example request
{
"name": "customer_name",
"description": "Customer name captured during the conversation",
"pattern": "^[A-Za-z ]+$"
}Response
Created variable
Example response
{
"id": 123,
"name": "customer_name",
"description": "example",
"status": "ACTIVE",
"createdAt": "2024-01-01T12:00:00Z",
"updatedAt": "2024-01-01T12:00:00Z",
"assistantId": "example",
"automationId": 1,
"pattern": "example",
"defaultValue": "example"
}