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 stoties
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.
Type double curly brackets
...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 select
sys.integer. Name the attribute
sys.integerand type here the user says message.
- Go to
bot responsesand call the attributes using again double curly brackets. Select the
get_integerattribute we’ve just created.
- Complete your reply.
- Click on the
savebutton to keep all the changes.
Let's testour interaction using the built-in chat:
It looks that our interaction works well. Good job!