Closed lisongshan closed 5 years ago
you could trz adding the slot itself to the story
## st_2
* findWalmart
- slot{"location": null}
- action_prompt_for_location
* inform{"location":"mylocation"}
- action_findWalmart
## st_2_2
* findWalmart
- slot{"location": "any_value"}
- action_findWalmart
combined with a memoizer in the policy, this works quite good for me.
note that according to the docs the value of the slot is not used in the dialogue prediction, just whether it is set or not. again according to the docs, null
is how you say "not set"
HTH,
Andrea
another thing that works good for me is to use FormAction instead of a normal Action. It is available on master, and the documentation is rather clear. You basically specify in the action itself that it requires some slot to be set, and the action will ask for it to the user.
Hi, Andrea After seen your reply, I re-read the "common pattern" section of the rasa-core documentation. This seems to be the right approach according to the document. I will try it out.
Thanks a lot.
Songshan
@disimone: did you find out how to use a filled in slot name, such as {location} in an utter_ask_xxxx action in a FormAction? It seems that it doesn't work as in a normal action template (such as the one you described above)
Rasa Team doesn't answer to my question/bug (?)
@ewagner70 I did not try this, sorry. Looking at the code in master, it should work, since they are simply calling dispatcher.utter_template
@lisongshan are you still having problems or can I close this?
@akelad please close it. @disimone thanks a lot.