Use system entities when you want your bot to recognize and validate values entered by your visitors and save them to attributes and reuse in the ongoing conversation or pass to your web services and databases.
ChatBot offers plenty of different system entities such as email address, number, integer, temperature and more. You don’t need to configure them, just pick one and add it to the user says field. Check out the list of ready to use system entities.
Learn how to add system entities to your stories
Let’s try system entities with an example. There’re many situations when you need to know the quantity of something your customer orders. In this scenario, we’re creating a taxi booking bot.
{{
to trigger the entity window and select the one you need.{{
to trigger the entity window and select the one you need.- Create a new story and
add an interaction
. - In the user says section, type two curly brackets
{{
to open the entity window and selectsys.integer
. Name the attributeget_integer
. - Select
sys.integer
and type here the user says message. - Go to
bot responses
and call the attributes using again double curly brackets. Select theget_integer
attribute we’ve just created. - Complete your reply.
- Click on the
save
button to keep all the changes. Let's test
our interaction using the built-in chat:
It looks that our interaction works well. Good job!