Add an object to utter data for customisation

Hello here !

It is possible to add an object to utter definition, I need this to customize some bot response in my front

I want to do something like this :

  utter_custom:
  - text: "Test test test"
    custom: true

To get something like that in response

data =  [
   {recipient_id: "...", text:"Test test test"},
   {recipient_id: "...", custom: true}
 ] 

Is this possible ? Or there is another way to do this ?

Thanks a lot !

Yes, if you stick it all under a custom: everything within gets sent. So in your case that would be

utter_custom:
- custom:
  - text: "Test test test"
    custom: true