为了账号安全,请及时绑定邮箱和手机立即绑定

dialogflow权限错误:“不允许在为家庭设计的应用中要求提供PII。”

dialogflow权限错误:“不允许在为家庭设计的应用中要求提供PII。”

Qyouu 2021-04-16 10:39:18
从Webhook向dialogflow发送权限请求时出现此错误:MalformedResponse Expected_inputs [0] .possible_intents [0] .input_value_data:不允许在为家庭设计的应用中要求提供PII。这是我的json响应:   {      "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主页信息
查看完整描述

1 回答

?
catspeake

TA贡献1111条经验 获得超0个赞

该错误消息表明您正在做两件事互斥:

  • 您已表明该操作将在“家庭操作”程序下可用。

  • 您正在要求提供个人身份信息,包括姓名和特定位置。

《家庭行动》的资格标准特别指出:

动作可能不会收集或征集任何个人可识别的用户数据。

操作不得使用Google登录(帐户链接),请求OAuth范围,访问大多数用户数据API(粗略的设备位置除外)或访问任何交易API。

如果您需要请求此信息,则应通过转到Google控制台上的“操作”,从“家庭行动”程序中删除该“操作”,然后

  1. 从左侧导航中选择目录信息。

  2. 打开其他信息部分。

  3. 将“针对家庭”设置为No

//img1.sycdn.imooc.com//6088cca50001841011510877.jpg

查看完整回答
反对 回复 2021-04-28
  • 1 回答
  • 0 关注
  • 178 浏览

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信