Step 4: Add the city placeholder chips

So far, we've created two entities for the two cities our users are booking flights between, and we've created a passage for flight bookings with training questions that use both entities. When our user asks questions about booking flights between two cities, the training phrases will capture the cities they mentioned as the entity values.

To use the entities in the chatbot content, we add the entity placeholder chips. Placeholder chips can be used almost anywhere in the chatbot message. To add a chip, type @ and select the chip you want to use. Before the chatbot sends the passage, it will replace the chips with the captured value.

In the Flight booking passage:

  1. Add a text message responding to the user's request to book a flight.
    To use the entity value, type @ and select the DepartureCity entity or the ArrivalCity entity.
    You can use an entity as many times as you like within the bot message content.
  2. Click Save.

Because entity values are stored by the matching training phrases, entities are only available to add in a passage when that passage has training phrases that use the entity. When you're personalising your chatbot content with entities, remember to create your training phrases before you try to add the entity to your chatbot message.

Now when our chatbot users ask to book a flight between two cities, we can personalise our chatbot response with the cities they've requested.

Was this article helpful?
0 out of 0 found this helpful



Article is closed for comments.