I still have tremendous problems with custom slot mappings…
I have an entity called location and a slot called destination. Both are mentioned in my domain.yml in the according sections and destination is type: unfeaturized.
In submit() I utter a message template utter_show_directions that uses {destination}. But somehow destination is filled with None instead of the entity value location that should’ve been mapped to destination (which works as you can see in the story).
In my submit() I logged the destination slot correctly. So I got a workaround where I get the slot value from the tracker and pass it as a renamed variable to the utter template.
Hi @leondroidgeeks, this is a known bug for the last slot in the list. It has to do with the fact that the actual tracker sent over at the time does not contain the last slot value before it is filled on the temporary tracker, and the actual tracker is used for the submit method.
Forms will be changing a lot for the next Rasa release, so its entirely possible that this will be fixed by these changes. There is already an issue for it, so we’ll be sure to check the behavior once the new implementation is done.
For now , filling the value by grabbing it from the tracker as you have
is the workaround.