Dialogflow CX Integration Twilio-whatsapp

I have connected my dialogflow CX, with Twilio and using it to run it on WhatsApp. The integration is working fine, but my CX has rich content output displaying options to select, but when trying it on WhatsApp, it's not showing any options, just sending me text.

Is there any way to get rich content (options to select) as a response from CX to Twilio-whatsapp?

3 5 204
5 REPLIES 5

hi,

To do that, you have to specify a channel and a custom payload for that channel: https://cloud.google.com/dialogflow/cx/docs/concept/fulfillment#custom-payload-templates

You have to make sure that you whatsapp bot has the rich capabilities enabled and it is not only tex.

Best,

Xavi

Thanks Xavi for the response. 

I already have fulfillment message as custom payload, and when I checked my integration logs on cloud run, the custom payload is not being set, only the normal text is being sent. 

I'm unaware of creating channels as I'm pretty new to cx, can you provide me any resource to refer? 

Hi,

channels are in the fulfillment part:

xavidop_0-1713451002023.png

I am also checking that the twlio integratino is a voice integration so that could be probably the issue too: https://cloud.google.com/dialogflow/cx/docs/concept/integration/twilio

You will need to create a custom integration.

Best,

Xavi

Yes, I have seen channels now, will read the documentation about it and work on it. 

By the way, my integration is text-based, not telephony, which I followed using "dialogflow-integrations/cx/twilio/README.md at master · GoogleCloudPlatform/dialogflow-integrations ...".  

The rich content worked when I published agent and integrated code on the website. I have doubt that rich content response will not be sent to twilio as my cloud service logs have only text response, maybe this is where channel part you suggest helps. I will try, Thanks again for quick response. 

 

 

gotcha, 

You will need to set that custom payload in the twilio format in this line: https://github.com/GoogleCloudPlatform/dialogflow-integrations/blob/52f042684c16549ecc6b18be3f964d64...

Best,

Xavi