Using dictionary slot in answer texts

Hi all,

I’m using a dictionary slot and want to display a particular key in an answer. E.g.:

Have you seen {current_movie[“title”]}?

When I test I am not seeing the value populate.

I was able to do this in rasa 1 (when domain used markdown), but now in rasa 2 I am not able to. I’m not sure if this is due to the rasa 2 move to yaml? Or is there another issue here?

The answers in my domain file look like this:

  - text: 'Have you seen {current_movie["title"]}?'

Is anyone else seeing similar issues? I don’t see much about using dictionary slots. Any help would be much appreciated.


I would use a custom action for it, I don’t think there’s a way to do it from responses

Thanks Chris, I need to do this in quite a few answers, so I worry I would end up building most of the project in custom actions, which doesn’t sound efficient to me.

Strange how it used to work fine with rasa v1. If I can’t express a dictionary key in an answer anymore then I will likely just create a slot for each key. Not ideal, but workable.

Thanks again!

1 Like