We must use ‘/’ after ‘payload:’ and before intent name. Right? The strange thing is that the dialogue will not follow the story in this writing. And when I delete the ‘/’ it works well.
I dubuged the rasa source code under these two domain configurations. I debuged rasa/core/policies/memoization.py predict_action_probabilities function.
In with ‘/’ condition, the last state in the figure attached has an addtional entities, this due to predicted_action_name = self.recall(states, tracker, domain) to be None. So the dialogue was stopped after processing this intent. No utter_ action was trigged.
The self.recall return None. In without ‘/’ condition, the self.recall return correct action name.
I attached the project files. You may run this project to find out the problem. Maybe a bug.
The rasa version:
Rasa Version : 2.8.1
Minimum Compatible Version: 2.8.0
Rasa SDK Version : 2.8.1
Rasa X Version : 0.39.3
Python Version : 3.8.12
Operating System : Linux-3.10.0-1160.42.2.el7.x86_64-x86_64-with-glibc2.17
Python Path : /root/anaconda3/envs/rasa3/bin/python
I attach four figures in this text with Figure 1 2 3 4 order. (I am not familiar with this forum, maybe the forum will change the order to show, please pay attention.)
It seems that the main change is changing {{}} to {}. I changed domain according to your suggestion, but it doesn’t work and triggered some errors. See Figure 1.
See the Figure2. In rasa official doc, the format of passing entities is to use {{}}.
With my origin domain.yaml the running result is show in Figure 3. After selecting media type there is no utter message triggered. I make an addtional input then the utter is triggered. It does not work according to my story.
When I delete ‘/’ in domain basing on my original domain.yml, the running result is show in Figure 4. The utter is trigged immediately after I select a media type. That’s what I want.
So how can we realize the result in Figure 4 but with the format described in rasa doc? It seems to be a conflict. Is the rasa doc wrong or just a bug of rasa source code? That’s my question.