Utterance based on slot value - Rasa Open Source - Rasa Community Forum
👋 Introducing the Rasa Playground
Utterance based on slot value
post by Sandy on Sep 10, 2018
Hi,
I am looking for a way in which the bot can utter option1 or option2 based on slot value. For example-
me: Which are my top 5 products[slot =product] (want bot to say): Would you like them by stores?
Case 2: me: Which are my top 5 stores[slot=store] (want bot to say): Would you like them by products?
I guess the naive way is to create stories of the above types. But is there a better way where the bot can decide on the utterance based on slot value?
Thank you, Shruti
Me too
post by jloutz on Sep 10, 2018
Hi, I would say this is not the naive way, but the ONLY way 🙂 If you create enough example stories with differing slot values leading to different bot actions, eventually your dialog model will learn the difference. Might take quite a bit of training data before this starts to work reliably though.
post by Sandy on Sep 10, 2018
Thanks John for the candid reply 🙂