Confused how elements /custom message objects work

@mickeybarcia Maybe not helpful, but did you check this out? Bot Responses

I think (haven’t tested it) you can just respond with something like this:

{
    "text": "",
    "buttons": [],
    "image": null,
    "elements": [],
    "attachments": []
}

If you need your object in the frontent, you could just JSON serialize it into the “text” attribute and then deserialize it again in your frontend, e.g.

{
    "text": "{"a": 1}"
}