thank you for the suggestion, I think this problem is relevant mostly for core, since only there we explicitly set tracker.slots
. I suggest to create a method inside FormAction
that would wrap utter_template
and pass tracker.slots
as kwargs
to dispatcher.utter_template
to simplify subclassing of forms. What do you think?
Hi all, @Ghostvv, @PatrickDS
Have we resolved this issue? I am still not able to access my slots filled by a form in my template utterance follow-up. Thanks, @evank28
@evank28 I don’t know about the latest status, but last time I checked this was not solved. Since form actions are inherited classes, I was solving the problem for my own chatbot by overwriting the methods of the FormAction class in a sort of hacky way, but IMO something needs to be done here to fix this issue and I don’t know what the ideal solution would be.
the current solution is explicitly pass the slots to utter_template
: rasa-sdk/forms.py at 086a349cb2ac8687bcb79873b4e8370b36f95db2 · RasaHQ/rasa-sdk · GitHub
because if you use a form to validate the entity before filling the corresponding slot, you don’t want to auto fill it