Hi, i am new with Rasa, so i am sorry if i will tell stupid things.
I would ask how a entity that i put in a slot can influence my stories, in particular i use RegexEntityExtractor for extract an simple code of six digits that i received from user and i would like to follow different sories depending on value of this code.
This looks like a pretty good start to me! (nlu.yml has some wonky formatting, but I’m guessing this happened when you pasted it here). You probably want to change the example for the intent stories_selector as below. The only difference is that in the example below we have labeled [000001] as the id_story slot. This allows the model to generalize to other values that follow the id_story pattern of six digits.
@fkoerner i tried in this way, but he doesn’t work really well.
It set correctly slot, in all cases, but it predict correctly (with almost 70% confience) only if i send s000010 and s000002; if i send s000001 the confience is 22% and it call fallback action.
The question is, why if slot is set correctly? There is some wrong in config.yml (i use a config file found in a example).
I think i founded a solution, one story that only set the slot, with a checkpoint at the end, and other three stories that start from checkpoint and with “slot_was_set” rasa could choose the right one.
I will update the post, it could be helpful for other new user like me.
Hi @Dani966IT sorry for the slow response – but one other thing you can try is to use rules instead of stories. They are slightly “stricter” than the stories, but the drawback is that they can’t generalize like stories do. However, your use case looks like rules could work: your stories are quite short