PVA Quick replies with bot connector

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:

Genesys Cloud Developer Center16lbe07_gaNjk0NjA3Mzg5LjE2NTM0MDMxMzM._ga_WMDFV6Y7G2*MTY4MDIwNDEzMi42NC4xLjE2ODAyMDQxMzUuMC4wLjA.

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.

Hello,

If you follow the overall page here https://developer.genesys.cloud/commdigital/textbots/botconnector-customer-api-spec#postutterance-webhook, the postUtterance webhook response should contain the quick replies within the replymessages property.

Right, that's pretty much my understanding already. I'm asking how to edit the webhook response/ replymessages property.

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.

Hi, thanks for explaining the code further. However, I need you to expand on this:

How do I make this happen?

For reference, I followed these steps to setup my pva integration: https://developer.genesys.cloud/blueprints/bot-connector-for-ms-power-virtual-agent/#load-the-power-va-bot-to-the-genesys-cloud-bot-list

Is there a file in the github repo I need to add the code to?

Or do I send it via api call? I understand what code needs to be added but I'm not sure where or how to add it.

Thanks for the link to the blueprints. I have not see that page before. The changes you would need to make would need to happen in the lambda. In the source area, you would be modifying convert_ms_response_to_byob() to send any quick replies. https://github.com/msassoon/GCBotConnectorPowerVa/blob/main/src/Automate_BYOB2MS.py#L109

After updating your version of the python file, you would then update the lambda in AWS and deploy it. I hope this helps.

1 Like

Yes, that does help. Thanks very much.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.