Set variable
Leverage dynamic data in a chat session.
Action — Creates or modifies a chat variable for use by subsequent actions in the same session.
What it does
Stores or transforms a value mid-chat, making it available to downstream actions as a named variable.
When to use it
To set a flag, build a string from other variables, or calculate a value to use later in the flow — without asking the person for it directly.
Settings
Setting
Description
Variable name
The name of a new or existing variable, including default system variables. Must start with a letter and contain only letters (a–z, A–Z), numbers (0–9), or underscores.
Chat script
A Python expression that sets the variable's value.
Press Save to confirm edits.
Example
Set variable
• Variable name: complaint_ref
• Chat script: financial_institution + "-" + ticket_numberRelated
BranchAsk surveyLast updated