你好我试图在谷歌上设置动作的帐户链接。在模拟器中测试时,响应中没有debugInfo.sharedDebugInfo信息。我的问题是我缺少什么来填充这个。我已经通过api.ai控制台设置了欢迎意图以及oauth链接的所有其他必要字段。
答案 0 :(得分:0)
启用“欢迎意图所需的登录”后,您应该在询问“我可以与myAgent交谈”问题后立即看到它。 这就是我所看到的:
Request
{
"query": "can i talk to myAgent",
"accessToken": "ya29.GlzXA38i6oBr0UD5CxXzstBaYFpbQF0tL16jK7tefC2_lWvofj79TbCmrDS1jedhxc_-LJp0w6PW3CJN5wL3oOFoqSMAZ8TbAKiMW6SKcUM65DUVdsSWC65nc_Oezg"
}
Response
{
"response": "It looks like your myAgent account is not linked yet. You can link myAgent to your Google Account from the Google Home app.",
"audioResponse": "//NExAASi..."content_copy,
"debugInfo": {
"sharedDebugInfo": [
{
"name": "Account Linking Url",
"debugInfo": "https://assistant.google.com/services/auth/handoffs/auth/start?provider=myAgent-156006_dev&return_url=https://www.google.com/"
}
]
}
}