Chat variables store information from a chat session, including data about the app, user, and any inputs during the interaction. These variables can be utilised in an AI agent's subsequent actions.
Actions & Delimiters
The following actions support chat variables. To display a variable's value within an AI agent's action content, enclose the variable name within curly braces { } as a delimiter.
The Set Chat Variable action can create new variables or reference existing system variables:
_user_input
Captures and stores the person's input at each interaction stage within the AI agent. It is dynamic, meaning that it updates automatically each time the person enters a new input.
_lang
Records the language identified from the person's input during each interaction.
_channel_profile
Holds profile information for the person as obtained from the messaging app. It includes details such as the person's ID in Proto, their display name, the type of channel they're using, their profile picture URL, and other information that varies depending on the app.
For people connecting through Webchat, this variable also captures additional information if certain features are activated in the Webchat settings, such as:
Data from a pre-chat form
Person's location and IP address
_customer
Note that "customer" is a legacy term for an audience member, now referred to more generically as "people" or "persons" in the current platform and documentation.
Contains profile information for persons who have a People profile in Proto AICX. This includes their name, email, phone number, and any custom fields.
_channel
Channel variables store information about a channel such as the channel ID, channel type, and other details unique to each channel.
_new_ticket
Contains ticket info when a new email ticket is created.