Excellent work, Do you have any idea how could we change the class RestInput(InputChannel): so that our output format will change. what I’m looking to change(the rest input channel) or create a new channel that will store all the info that I’ll send from my custom UI. Just like I’m sending
data: JSON.stringify({
“message”: message,
“sender”: “senderid”,
“input_channel” : “mycustom”
“another_variable” : “some_text”
})
What I’m trying to achieve is to change the data format[after detecting channel which rest] for my custom UI so that my same assistant would run on messenger, telegram and the custom UI [for which i’m changing the format].
[
{
“recipient_id”:“default”,
“custom”:{
“buttons”:[
{
“payload”:"/contactinfo",
“title”:“info”
},
{
“payload”:"/carddetails",
“title”:“Details of Card”
},
{
“payload”:"/mymsg",
“title”:“Msg from us”
},
{
“payload”:"/info",
“title”:“Information”
},
{
“payload”:"/maplink",
“title”:“Here is the Map”
},
{
“payload”:"/findoutmore",
“title”:“Find Out More”
},
{
“payload”:"/contact_me",
“title”:“Contact me”
}
],
“text”:“Hey, How do do you do”
}
}
]
Firstly I tried to change the payload directly in domain.yml which will only be rendered in the custom UI and other channels ultimately fails to render it.