Shortcodes are designed to collect user data and use it in a further conversation. This will allow you to personalize the bot communication with the user.
Form block for collect codes
Let’s take an example of getting the name of your client. To do this, you need to create a form, add the question “What is your name?” and select the required shortcode. As soon as the user answers your question, the bot will record his answer in this shortcode.
To collect user data you need to create a Form block without integration!
As soon as a user passes through this scenario, his name will always be available to you. You can use this shortcode in further answers in any other conversation thread.
In one form, you can collect as many shortcodes as you like. But we do not recommend creating long forms. Since the user entering the form will not be able to log out of it until the questions end.
Rules for using shortcodes
1. You need to remember that every time you request the same parameter from a user, the previous value of this parameter is replaced with a new value. For example, you cannot get from the user two values of one @FullName or @Other shortcodes.
2. Ask the right questions. The value of the shortcode is recorded the entire user response that he will give to your question.
3. You can transmit all known shortcodes at the moment and use them when integrating with Zapier.
How to use shortcodes with tags
You can assign a shortcode to a tag in the “Tags” section in the Dialog Builder.
In this case the bot assigns the last value from the tag that was used in the conversation to the shortcode automatically. For example, if the bot asks the question: “What card do you want to choose”, and the user answers: “A debit card”, then the bot assigns the value “A debit card” to the appropriate shortcode. If the bot refers to this shortcode later in the conversation, the value “A debit card” will be retrieved from the shortcode.