Use a chatbot to capture URLs and pass them to external systems.
The system URL entity lets you validate links shared by the users on chat. You can save all the successfully validated URLs to attributes and reuse them later in a conversation or pass them to your database.
How to use a URL entity
Imagine that you’re running a business that supports young entrepreneurs. You use a chatbot to gather their applications, including their web addresses. You can easily capture all the links with the built-in URL entity.
-
Open a Story you want to use to collect URLs from the users.
-
Add a Question action in a place where you want to ask the user about their website address.
-
Open the Question action you added. In the Question variants field, ask the user about their website address.
-
Once the user provides their answer, ChatBot can verify that input. To do so, select the system URL entity in the Validate response with entity field.
-
When the URL is successfully validated, you can save it as a custom attribute so you can pass the collected data to external systems. To create one, in the Save response to attribute field, click on the Add custom attribute. Then provide the attribute’s name.
-
You can also decide what should happen if the user fails to provide the proper URL format.
-
After successfully collecting the URLs as attributes, you can reuse them later in the Story. To do so, add a Bot response after the Success block.
-
Open the Bot response you added and ask the user to confirm their data.
-
Once you finish, you open the Testing tool to see whether your chatbot works as expected.