Facebook Hotel Chatbot to ask Stay Duration

Generally speaking, Entities or Slots are used for this purpose.

Complete Event data (event data contains data related to queries, intents, entities, sessions, user etc) is passed between user and chatbot every time and we check if all the entities are filled or not one by one.

If any entity which is required is not yet fulfilled, then we prompt to user with relevant question (stay duration in your case).
Once all the entities are filled, and we are ready to perform the action we complete the action and reply to user with the result.

Hope it helps.

Leave a Comment