The Waiting for subscriber's response element in chatbots
A user input element will help you gather and store data from your subscribers to further segment them and target the right audience with personalized messages.
To collect data that users enter use the text field input element in the message builder. The data your subscribers enter will be saved as variables.
Click on the Message element and activate the Wait for the subscriber's response function.
Validation еypes
In the drop-down list, select a validation type for the entered values:
String | Used to enter up to 255 text characters |
Number | Used to enter numbers. Using the Action - Add Variable element, you can add or subtract values |
Date | Used to enter dates in DD.MM.YYYY format. When a user receives a message with the Date validation type waiting for user input, they will see the Choose dates button. Then, the user will need to select a date in the opened calendar |
Date and time | Used to enter a date and time in the DD.MM.YYYY tt:mm format. When a user receives a message with the Date validation type waiting for user input, they will see the Choose dates button. Then, they will need to select a date in the opened calendar and enter a time. |
Time |
Used to enter a date and time in the |
Used to enter email addresses. The user’s email address is also saved to the mailing list in the Email Service for creating campaigns | |
Phone or Contact | Used to enter a phone number in international format with country and operator codes. The user’s phone number is also saved to the mailing list in the Email Service for creating SMS campaigns |
URL | Used to insert links starting from https:// |
Geolocation | Used to share geolocation. This validation type is only supported in Telegram and WhatsApp mobile app. The reply is written into a "string" variable as a link to the location in Google Maps: https://www.google.com/maps/search/?api=1&query=xxxx |
Regular expression | Used when there are not enough predefined validation methods to compare the received value from the subscriber with the template value. For example, to check a phrase for the number of keywords, passport number, the presence of spaces in a phrase, or waiting for the input of numbers in a certain range of values. You can compose and check the phrase for validity on the regect101 website |
Image, Video or Document | Used to send an image, video or document.
The data sent by the user remains only in your live chat and is not saved to your variables. |
For the Phone or Contact
data type, you can also enable the Do not accept text value (Only via Share Contact) option to make users share only their own contact info from a messaging platform they use.
For example, you can use it if your chatbot registers participants for an event, and you need to be sure that your attendees share their own contact info and not someone else’s.
This filter is applicable to Telegram, Facebook, and Viber (messaging platforms with the Share Contact option).
User input settings
After your message with a user data request is sent, your chatbot also sends a message with the arrow emoji, which means that the bot is waiting for user data input.
To change that emoji or another emoji or add text, click Settings, and insert your value in the User input indicator message field.
You can also disable the typing indicator. To do this, clear the Always show indicator checkbox next to this option.
Once you disable this indicator, it will appear only for quick replies.
Message when entering invalid data
If the subscriber enters an invalid value, that is, a value that does not meet the validation condition, they will receive a warning message. By default, there is a text for each type that you can edit and add variables and emoji.
There is also a "Skip" button that appears under your message. If a user clicks it, the bot will not try to request user data anymore and send another message instead.
To edit button parameters, click Settings.
Select when you want to show the Skip button (after the first incorrect user input, after the second one, or never). Live chat options for this button include Always and Never.
Іnsert your value — text or emoji — in the The ‘Skip’ button text for the case of incorrect data input field.
Saving to a variable
The data entered from the user can be saved to an existing variable, or a new one can be created, which will be stored for each subscriber in the Audience tab.
You can view saved replies in the Audience tab, use variables in subsequent text messages, and create segmented campaigns.
Saving to Email service
When you receive an email address or phone number from a user, a mailing list is automatically created in the Email service with the chatbot's name. If the chatbot has the same name in different channels, email addresses and phone numbers will be added to the same mailing list.
Quick replies
Also, you can create quick reply buttons - so users can choose one of them and won’t need to type their own response.
Enter emoji or text up to 20 characters. You can add up to 10 buttons in total.
For Telegram and Facebook chatbots, you can also substitute dynamic values. Add the name of a variable stored in the audience to the button title as {{your_variable}}
.
You can add quick replies for data with the String
, Number
, and Regular expressions
validation types. For example, enter a specific word by the user, enter the quantity of a product, or select a product category.
For data with the Phone
and Email
validation types, the messenger prompts the users to use the contact details of their account.
Learn more: How to Use Regular Expressions in Chatbots.
Waiting for an answer
You can also choose the period to wait for a response from the user. If the user does not respond within the selected time, the wait for a response from the user will expire and the chatbot will no longer check the entered data for validity to record user's response.
Click Apply and continue adding elements to your flow.
Continuing your flow
You can branch your flow scenario and send your next message based on whether users sent the requested data (the green dot branch) or not (the red dot branch).
You cannot use Wait for the subscriber’s response and the Continue connector (the blue dot branch used when there is no response from the user) at the same time.
If you turn on the Wait for the subscriber’s response toggle, the quick reply buttons not linked to user input will be disabled. You can use quick reply buttons only once — as quick replies for user input or as keyboard reply buttons.
Unlike regular buttons, quick replies disappear when a user or a bot sends the next message.
How a data request looks in a Messenger
Subscribers will see a down arrow emoji following a message that includes the user input element.
You can view the data that you collect in the Audience tab, use this data to create personalized and segmented campaigns.
Last Updated: 21.06.2024
or