- Click Add new interaction/plugin
- Select Collect URL
- Specify the interaction name, e.g. ‘URL’
- (Optional) Tick Highlight Extracted data in chat for a better user experience
- Click the Add button to add the interaction to the bot’s structure:
After that, specify Bot Message along with an Error Response:
If a user enters an invalid URL, then the bot will give the Error response message:
If a user enters a valid URL, then the system will trigger the interaction that is set in the Connections tab. Otherwise, by default, the Fallback connection is set to 'do nothing'. In this case, the bot will give the same message again. If you change the Fallback connection then the system will redirect a user to another interaction after a correct URL format has been entered.
The same goes for connections: if you add a simple or NLP connection, and if a user's response matches the conditions of one of the connections, then the system will redirect a user to another interaction.
For example, you can connect the Collect URL interaction to the Bot Statement interaction to thank the user for giving the information.
Valid format for a Collect URL: X.XX
You can highlight the extracted URL in the Test chat. To do so, click the relevant button in the header:
Updated 12 months ago
Identifies and collects a valid phone number from the input of a user.