Reputation: 10506
Can someone clarify for me with Rasa stories involving slots:
## story with email
* intent_request_email
- utter_request_email
* inform_email {"email":"[email protected]"}
- slot {"email":"[email protected]"}
- utter_thanks
In the above, does [email protected]
act as a placeholder for any email address (ie, will work equally for [email protected]
), or is this effectively limiting this story to the case when the email provided is exactly [email protected]
Now consider the case below, for entities that are floats:
## story with numeric
* intent_want_to_buy
- utter_request_budget
* inform_budget {"amount":100}
- slot {"amount":100}
- utter_thanks
Does the 100
act as a placeholder for any amount that is provided (ie 200, 300, 65.95), or, is it actually saying that this story is to be applied only when and only if the user states their budget is exactly $100.00.
With the above in mind, how does one control a story to be executed when the slot has NOT been set, vs a path to be taken when the slot has been filled/provided.
The documentation is rather lacking in these kinds of basics, which are obvious once known, but are not so obvious for someone new to Rasa.
Upvotes: 5
Views: 1245
Reputation: 114
The specific entity values in the stories are placeholders only and do not effect the story line.
Only in the nlu training data the annotated entity values have an effect, helping intent classification.
Upvotes: 2