anjaly
(Anjaly Vijayan)
November 15, 2019, 5:18am
1
Hi team,
I’m new to rasa. I have created the below story for handling a ‘support’ intent.
I would like to show different response if user asks help for light and for washer.
But it returns the action for ‘help light’ even if I input ‘help washer’.
Please help if there is any mistake int he story I have added.
## support prompt => light
* support
- action_set_slot_label.ue.sh.common-004
* inform{"appliance":"light"}
- action_set_slot_label.ue.sh.common-018
- slot{"output_message":"test"}
- slot{"user_name":"test"}
- slot{"device_count":"test"}
* inform{"appliance":"washer"}
- action_set_slot_label.ue.sh.common-006
- slot{"output_message":"test"}
- slot{"user_name":"test"}
- slot{"device_count":"test"}
Tanja
(Tanja Bunk)
November 15, 2019, 8:53am
2
Can you please give examples for the intents? I’m not sure I understand what exactly you want to achieve. So, what would the user say for intent support
and inform
? What is action_set_slot_label.ue.sh.common-006
doing?
anjaly
(Anjaly Vijayan)
November 15, 2019, 9:36am
3
Hi Tanja,
Hope you will get my requirement with the below conversation.
User: Hi
Bot:Hi, what can I do for you?
User: Help me? (support intent)
Bot: Tell me which appliance would you like to control?
User: Light (inform intent)
Bot:Here’s how you can control your light, you can:
Turn on light
Turn off light
User: Help me? (support intent)
Bot: Tell me which appliance would you like to control?
User: Washer (inform intent)
Bot:Here’s how you can control your washer, you can:
Ask status of your washer
Turn on washer
Turn off washer
action_set_slot_label.ue.sh.common-006 is the action name. We have our api in node js.
We handle the response according to the action name in api.
anjaly
(Anjaly Vijayan)
November 15, 2019, 10:13am
4
Hi Tanja,
Seems the issue has fixed. I had given the slot ‘appliance’ as of type ‘unfeaturized’.
Now I changed it to type ‘categorical’. If it is ‘unfeaturized’ it won’t affect the dialog flow right.
Tanja
(Tanja Bunk)
November 15, 2019, 10:50am
5
Yeah, that makes sense. appliance
should definitely be categorical
. Glad it works now.
anjaly
(Anjaly Vijayan)
November 15, 2019, 10:54am
6
Thanks for your effort Tanja