How to Create a Variable in a Chatbot Audience
You can add variables with different types of data to your chatbot audience and use that data to filter your subscribers and send personalized messages.
To create a variable, select your chatbot, and go to the "Audience" tab.
Click Create Variable.
Add a name, and select the variable type:
String — used to enter up to 255 characters.
Number — used to enter numbers.
Date — used to enter dates in the DD/MM/YYYYY format.
Email — used to enter email addresses. The email contact is also saved to your mailing list in the email service for creating email campaigns.
Phone — used to enter the phone number in the international format, including a plus sign, country code, and operator code. The email contact is also saved to the mailing list in the email service for creating email campaigns.
Link — used to enter links starting with https://
Click Add to save the variable.
The variable will appear as an additional column in the list of your chatbot subscribers. When you hover over a variable name, you can view its type, change the name, and delete it.
To hide or show variables in your chatbot audience, click the icon on the right. Select the checkbox to display the variables, and uncheck the checkbox to hide them.
You can set values for your variables manually via API and configure their automatic addition.
Read more: How to Manage Variables.
Last Updated: 21.03.2022