從Webhook向dialogflow發(fā)送權(quán)限請(qǐng)求時(shí)出現(xiàn)此錯(cuò)誤:MalformedResponse Expected_inputs [0] .possible_intents [0] .input_value_data:不允許在為家庭設(shè)計(jì)的應(yīng)用中要求提供PII。這是我的json響應(yīng): { "payload": { "google": { "expectUserResponse": true, "systemIntent": { "intent": "actions.intent.PERMISSION", "data": { "@type": "type.googleapis.com/google.actions.v2.PermissionValueSpec", "optContext": "To deliver your order", "permissions": [ "NAME", "DEVICE_PRECISE_LOCATION" ] } } } } }and this is raw api response on dialogflow { "responseId": "0f9b3201-27f4-4994-9ecc-ee827f25b00e", "queryResult": { "queryText": "trouve ma position", "action": "request_permission", "parameters": { "Conversation-entites": "position" }, "allRequiredParamsPresent": true, "fulfillmentMessages": [ { "text": { "text": [ "" ] } } ], "webhookPayload": { "google": { "expectUserResponse": true, "systemIntent": { "data": { "optContext": "To deliver your order", "@type": "type.googleapis.com/google.actions.v2.PermissionValueSpec", "permissions": [ "NAME", "DEVICE_PRECISE_LOCATION" ] }, "intent": "actions.intent.PERMISSION" } } }, "intent": { "name": "projects/monappli-c5bf0/agent/intents/c4a07ba8-2258-4836-8e90-7b552584e8eb", "displayName": "request_permission" }, "intentDetectionConfidence": 1, "diagnosticInfo": { "webhook_latency_ms": 316 }, "languageCode": "fr" }, "webhookStatus": { "message": "Webhook execution successful" }}我只是想獲取諸如位置和名稱之類的Google主頁(yè)信息
1 回答

catspeake
TA貢獻(xiàn)1111條經(jīng)驗(yàn) 獲得超0個(gè)贊
該錯(cuò)誤消息表明您正在做兩件事互斥:
《家庭行動(dòng)》的資格標(biāo)準(zhǔn)特別指出:
動(dòng)作可能不會(huì)收集或征集任何個(gè)人可識(shí)別的用戶數(shù)據(jù)。
和
操作不得使用Google登錄(帳戶鏈接),請(qǐng)求OAuth范圍,訪問(wèn)大多數(shù)用戶數(shù)據(jù)API(粗略的設(shè)備位置除外)或訪問(wèn)任何交易API。
如果您需要請(qǐng)求此信息,則應(yīng)通過(guò)轉(zhuǎn)到Google控制臺(tái)上的“操作”,從“家庭行動(dòng)”程序中刪除該“操作”,然后
從左側(cè)導(dǎo)航中選擇目錄信息。
打開(kāi)其他信息部分。
將“針對(duì)家庭”設(shè)置為
No
。
添加回答
舉報(bào)
0/150
提交
取消