Rasa intent is rightly classified but picks up the wrong story path

image

As we can see in this conversation, inspite of specifying room as deluxe, the bot happens to ask the room type again.

Here is my stories.md

book room path 1

  • greet

    • utter_greet
  • book_room

    • utter_ask_num_rooms
  • tell_num_rooms

    • utter_ask_simple_deluxe
  • tell_simple_deluxe

    • utter_okay

book room path 2

  • greet

    • utter_greet
  • book_room_with_type

    • utter_ask_num_rooms
  • tell_num_rooms

    • utter_okay

book room path 3

  • greet

    • utter_greet
  • book_room_with_number

    • utter_ask_simple_deluxe
  • tell_simple_deluxe

    • utter_okay

bot challenge

  • bot_challenge

    • utter_iamabot

Here is my nlu.md file

intent:greet

  • hey

  • hello

  • hi

  • good morning

  • good evening

  • hey there

intent:goodbye

  • bye

  • goodbye

  • see you around

  • see you later

intent:bot_challenge

  • are you a bot?

  • are you a human?

  • am I talking to a bot?

  • am I talking to a human?

intent: book_room

  • i would like to book a room

  • i want a room

  • i need rooms

  • book some rooms

  • i want to have room

intent: book_room_with_type

intent: book_room_with_number

  • i want 2 rooms

  • book 4 rooms

  • would like to make a booking for 5 rooms

  • have 3 rooms

  • would like to book 5 rooms

  • 2 rooms

intent: tell_num_rooms

  • 3 rooms

  • i would like 4

  • prefer 3

  • prefer 2

  • would like 3

  • 4 rooms

intent: tell_simple_deluxe

  • (simple)[rtype] room

  • (deluxe)[rtype] room

  • would like [rtype]

  • would like [rtype]

  • [rtype]

  • simple

  • deluxe

  • would like simple

  • want deluxe

image

image

As we can see the intent is rightly classified, but the wrong story is picked up.

Hello @rahulseetharaman,

to work with more than one slot with the intent it’s way better to use forms, trust me, I’ve been on this road before… :wink:

Cya!

1 Like