gpt4 book ai didi

actions-on-google - 获取 Google Assistant Action 以响应 "Quit"或 "Cancel"

转载 作者:行者123 更新时间:2023-12-04 09:02:44 25 4
gpt4 key购买 nike

我试着关注 documentation about App Exit handling ,但它似乎无法正常工作。 (请参阅下面我的 Intent 的屏幕截图)。

当我这样做时,它似乎诉诸于我的默认后备意图,尽管它确实表明 resolvedQueryactions_intent_CANCEL,这应该是正确的。 (请参阅下面的 JSON 正文。)

是我做错了什么,还是文档有误?

试图处理它的意图:

enter image description here

JSON 正文:


{
"originalRequest": {
"source": "google",
"version": "2",
"data": {
"isInSandbox": true,
"surface": {
"capabilities": [
{
"name": "actions.capability.AUDIO_OUTPUT"
},
{
"name": "actions.capability.SCREEN_OUTPUT"
}
]
},
"inputs": [
{
"rawInputs": [
{}
],
"intent": "actions.intent.CANCEL"
}
],
"user": {
"locale": "en-US",
"userId": "AETml1QP6omTPEXBfrOBdvNlwHxY"
},
"conversation": {
"conversationId": "1509314271837",
"type": "ACTIVE",
"conversationToken": "[]"
},
"availableSurfaces": [
{
"capabilities": [
{
"name": "actions.capability.AUDIO_OUTPUT"
},
{
"name": "actions.capability.SCREEN_OUTPUT"
}
]
}
]
}
},
"id": "bbd363aa-f555-4543-a748-294751194fa9",
"timestamp": "2017-10-29T21:58:00.691Z",
"lang": "en-us",
"result": {
"source": "agent",
"resolvedQuery": "actions_intent_CANCEL",
"speech": "",
"action": "input.unknown",
"actionIncomplete": false,
"parameters": {},
"contexts": [
{
"name": "actions_intent_cancel",
"parameters": {},
"lifespan": 0
},
{
"name": "actions_capability_screen_output",
"parameters": {},
"lifespan": 0
},
{
"name": "actions_capability_audio_output",
"parameters": {},
"lifespan": 0
}
],
"metadata": {
"intentId": "25f6e14b-a92c-479b-8943-76c4b6914579",
"webhookUsed": "true",
"webhookForSlotFillingUsed": "false",
"nluResponseTime": 2,
"intentName": "Default Fallback Intent"
},
"fulfillment": {
"speech": "I'm sorry. I didn't quite grasp what you just said.",
"messages": [
{
"type": 0,
"id": "535c3b80-f13d-4b61-8c1d-bb58fa3f5e44",
"speech": "I'm a bit confused by that last part."
}
]
},
"score": 1
},
"status": {
"code": 200,
"errorType": "success"
},
"sessionId": "1509314271837"
}

最佳答案

除了 documentation 中的步骤,我发现我必须告诉模拟器更新到最新版本!

这是我的视频,概述了我采取的步骤。 https://www.youtube.com/watch?v=ZvZDokjhUIY

enter image description here

enter image description here

关于actions-on-google - 获取 Google Assistant Action 以响应 "Quit"或 "Cancel",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47006037/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com