We are currently integrating with the Kore Web SDK. Want to utilize the Webhook instead of Websocket. We have been able to do this just fine, however, we send templates back through the message which work just fine through websocket. When integrating through Webhook, our reponses show up as JSON in the chat window.
This is how it shows up through websocket:
This is how it shows through webhook:
This is the response:
We are sending back the message in this format:
{
type: "template",
payload: {
template_type: "button",
text: buttonCustomMessage,
subText: "Button Template Description",
buttons: [],
},
}
Does this format need to change for webhook integration?