Creating dict slots and using fields in templates

I’m trying to assign a dict to a slot as the value and use the same slot for various values in the field. So let’s say we have a user slot whose value can be {“name” : “xyz”, “address” : “abc”} - values and user.location could be used in the templates. Doesn’t seem like Rasa allows this but is there a way to make this work?

Have you tried using user["name"]? is not the right syntax in python, so it won’t be in rasa either.

Hi @imLewm I’ve tried that, it doesn’t work .

@akelad any suggestions ?

slots get stored as strings, so you would have to fill the utterance from a custom action