Utter message with list of dict as string in domain.yml

Response text under templates in domain.yml, for my custom chat window i have image/video/link…etc, i would like to set the utter response - text: "[{"type": "text", "value":"Abcd"},{"type": "image", "value":"some link"},{"type": "video", "value":"some link"}], is it possible, i tried it, but at the time of training core training was skipped because no valid domain file was found. is there any way to do it. or any alternative.

hey @sadque, you can use custom key of the utter template if you want to send the above json data

adding the custom json code for your reference:

image

1 Like

Hey @JiteshGaikwad @nik202 @sadque, this is throwing error.

I tried the way you suggested, but it throws YmalValidationException (ordereddict is not a dict). I have valiadated my domain.yml through http://www.yamllint.com/

Error:

domain.yml

Rasa Version:

@mihirpurwar check your syntax it’s not right, check on rasa doc.