New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fill slots in other parts of utterance templates than text #3763
Comments
Hey @erohmensing ,
I believe what is required here to extend for |
Hi @RanaMostafaAbdElMohsen! This isn't about slot types, but rather about which utterance fields get filled. The logic happens here: rasa/rasa/core/nlg/template.py Line 114 in ea76c3d
As you can see, only the A template is a dictionary, where its keys are Does that help? I promise I've made it sound much more complicated than it probably would be :) |
Yes it helped :) Thanks @erohmensing |
@RanaMostafaAbdElMohsen any progress on this yet? |
Hi @akelad , |
Hi @erohmensing , |
Right now, we only fill the {slot} format of utterance templates in the
- text
attribute of utterance templates. We could extend this to also fill keywords in other templates, e.g. "image" and "buttons", so that someone can use kwargs to fill them dynamically from their actions code.Example use case:
https://forum.rasa.com/t/how-to-send-image-url-to-templates-dynamically/11074
The text was updated successfully, but these errors were encountered: