I am trying to figure out how I can embed Google Actions responses, such as the cards carousel, in a webhook response for DialogFlow.
On https://developers.google.com/ac
The documentation for Actions on Google still refers to the Dialogflow V1 protocol documentation and the node.js library from Google only supports the V1 protocol. Since it sounds like you're trying to use Dialogflow V2 Beta, you need to change how you've formatted the JSON.
Instead of using the data.google
data structure, as in V1, V2Beta uses the payload.google
field (that is, a payload
object that has a google
object in it). (See https://dialogflow.com/docs/fulfillment#requirements under the "Response" section and click on the V2 tab.)
The payload.google
field would be set to the same thing the contents of the data.google
field was set to.