I’m using RASA 2, and I need to ask a lot of questions to the user and save the responses in a slot.
That’s the way I thought I could build:
Domain:
intents: inform_felling
entities: felling_keyword
slots:
felling_energy:
type: text
influence_conversation: false
felling_behave:
type: text
influence_conversation: false
utter_felling_energy:
- text: What do your energy levels look like?
utter_felling_behave:
- text: How do you behave?
utter_felling_prioritise:
- text: What are you prioritising?
Stories:
- action: utter_felling_energy
- intent: inform_felling
entities:
- felling_keyword: High
- felling_keyword: calm
- slot_was_set:
- felling_description: calm
- action: utter_felling_behave
- intent: inform_felling
entities:
- felling_keyword: concious
- felling_keyword: kind to people
- slot_was_set:
- felling_behave: kind to people
But all my slots are turning null, there are a better way to build that?
Its because you don’t adding any slot value hahaha
Maybe, you can use button with set Slot
utter_felling_energy::
- buttons:
- payload: /felling_behave{{"felling_energy":"High"}}
title: High
- payload: /felling_behave{{"felling_energy":"calm"}}
title: calm
text: What do your energy levels look like?