richContent not Working in Dialogflow CX

Hi!

I am trying to add a richContent information in my Typescript webhook response, but it seems to not be working, if I remove the payload section (just sending text it works perfectly). You can find the code here: https://github.com/xavidop/dialogflow-cx-webhook-pokedex/blob/main/src/index.ts

Best,

Xavi

Hi Xavi, in your request, you see the payload and it just dont appear. Or is it not appearing on the request?

when we are using payload, some integrations prioritize payload elements instead of other elements (depending of how we are sending the payload)

On another hand if you send payload in a bad way, Dialogflow will unrecognize it from the raw request api and when it sends the request to the API that code snippet will be deleted.

It seems typescript is not serializing the payload object