How to I condition on intent if it is multi intent or single intent

for example- me: I want to book a room.

bot: How many rooms would you like to book?

me: 2 rooms

bot: What type of room would you want to book?

This is the first case The second type of query is:

me: I want to book a room for 2 people. bot: What type of room would you want to book?

So my bot should adjust itself according to user input. Also how I generalise number of people (for example book room for 2 people)? It can be in words (like two) or in numeric form.

Hi @arpitjjw,

In order to book the room, you need information about:

  • how many rooms
  • what type of room

Collecting this type of information is done using a Form, where you define these items as slots.

If the slots are filled by entities extracted from the sentence, then the bot is happy. If not, then the bot will ask for it. This all happens automatically with forms.

I recommend you check out these resources: