How to use user entities

Image of an author
Dariusz Zabrzenski
2 min read
updated: Apr 4, 2022

Create entities relevant to your business and reuse them in your Stories to verify user responses.

To call an entity, type in two curly brackets {{ or just click on the attribute icon in the bottom right corner of the text block.
To call an entity, type in two curly brackets {{ or just click on the attribute icon in the bottom right corner of the text block.

Using entities in interactionsLink icon

In this example, we’ve used the User Entity EuropeCountries that we created here. In this interaction, you expect the user to type the European country they live in. You can use this information to determine their approximate location or time zone.

  1. Go to your ChatBot Story or create a new one.

  2. Add a new Bot response block and enter your message and question: Hello! 🙋Where are you from?

  3. Add the User input block after your Bot response. The User input block lets you detect the user’s message and extract necessary information by using a User Entity. In the User says section, use the EuropeCountries entity. To do so, type two curly brackets {{ or click on the curly brackets icon to open the entity window.

  4. Next, choose the Parameter validation: EuropeCountries and set the attribute’s name to EuropeCountries.

  5. Now, use the Bot response block to send the bot’s response using a collected attribute. user entities

  6. At last, you can use the Testing Tool to check if our bot works correctly.

See also:Link icon

Was this article helpful?

Got it!

Thanks for your feedback.

Thank you!

We’re happy to help.

Start a free ChatBot trial
and build your first chatbot today!

Free 14-day trial No credit card required

Discover our text| products