Is it possible to trigger another Actions on Google app from within my own AoG app's fulfillment? [duplicate]

旧街凉风 提交于 2019-12-06 14:14:35

Invoking AoG apps can only done by Google but you might be able to trigger any intent with an event from a different Dialogflow agent from your webhook by making either a :

GET request from your webhook like:

curl \
-H "Authorization: Bearer YOUR_CLIENT_ACCESS_TOKEN" \
"https://api.dialogflow.com/v1/query?v=20150910&e=event_name&timezone=Europe/Paris&lang=en&sessionId=1234567890"

or a POST request to it with the headers:

Authorization: Bearer YOUR_CLIENT_ACCESS_TOKEN
Content-Type: application/json

and the request body like:

"event":{  
  "name":"<EVENT_NAME>",
  "data":{
      “<PARAMETER_NAME>”:”<PARAMETER_VALUE>”  
  },
  "timezone":"America/New_York",
  "lang":"en",
  "sessionId":"1321321"
}

Note that you need to have access to the other agent's Dialogflow access token

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!