So this als works perfectly fine as long as the user input is somethig, that the Bot doesn’t know. The slot gets filled with whatever the input is.
But, and this is what I can’t solve: If the User types something that is recognized as some defined intent (for example state_name, mood_sad etc.) the slot is not been filled. However I do want the slot to be filled, no matter what the User input is, even if it is a known intent.
Can someone help me to accomplish this?
The from_intent mapping will fill slot slot_name with value my_value if user intent is intent_name or None.
That means that from_text will fill the slot with the text if the specified intent was detected. If you want to do it for any intent, set intent to None.
Thank you very much!
I tried your suggestion and unfortunately it did not work.
After a few more rounds of try and error, I was able to solve the problem.
Before I listed my intents in the domain file like this:
intents:
- affirm
- deny
- state_name
I tried with another model and listed the intents like this:
Maybe you could help me understand, why this solved the problem. Only the state_name intent actually has entities, all the other intents don’t. But if I put the entities like that, filling the slot with any input works.
I also noticed, that if I run rasa interactive and then create the domain file from it, all the intents will go back to the listing without the use_entities parameter.