I am using the bot connector to integrate PVA with Genesys web messaging.
I would like to add some rich text quick replies. I can see the JSON required here:
But I'm not sure where to add the JSON. I don't think it's supposed to go in the payload for the bot schema put request, but unsure where else I should add it.
One of the reply messages returned from the customer's bot needs to have a Structured content type. The root "text" element is to indicate the prompt that will be sent to the end user. For the quick reply options, the content array of QuickReply objects will create a quick reply button. The text field corresponds to the label on the button the customer sees. The payload value is what should come back into the bot if an end customer clicks on the quick reply button.
Either way, the code for updating these messages needs to happen after the call to PVA & before it returns back from the postUtterance webhook & goes back into Genesys.