I am trying to add title
or similar tag in along with the image
in bot utterance.
in the doc,
utter_cheer_up:
- text: "Here is something to cheer you up:"
image: "https://i.imgur.com/nGF1K8f.jpg"
and, in the output of rest api i am getting this as two objects
( 2) [{…}, {…}]
0: {recipient_id: "0.290811158711129", text: "Here is something to cheer you up:"}
1: {recipient_id: "0.290811158711129", image: "https://i.imgur.com/nGF1K8f.jpg"}
length: 2
__proto__: Array(0)
But same time in the utterance with buttons
, the variable buttons
and text
comes as a single object.
Is it possible to get image
and text
in the same object?
And i tried another way using custom
block. In the bot utterance, i modified like below.
utter_cheer_up:
- custom:
type: image
image:
title:
text:
But i am calling this utterance from a custom action. I don’t know how to fill these nested key-value pairs.
How can i achieve this?