Number Extraction interaction has been developed for a quick fetching of the numbers from the users’ responses.
To create this interaction, click Add new interaction/plugin link from the bottom left of the screen, and then select ‘Number Extraction’ interaction type. After that, specify the interaction name, e.g. ‘Number of children’. Click the 'Add' button to add the item to the bot’s structure:
For a better user experience, select ‘Highlight Extracted data in chat’ checkbox:
After that, you should specify Bot’s message along with an error response:
The interaction will trigger if a message contains at least one numeral.
When testing your bot, you can see that a valid email address will be highlighted or an error response will be sent to a user if the bot receives an invalid data.
If needed, you can connect Number Extraction interaction to the other types of the interactions. For example, to the Bot Statement to offer something to the user. Additionally, if no conditions are met, bot can go to another interaction:
All the above can result in the following:
Updated about a month ago
Collects and localises a valid address from the input of a user.