简体   繁体   English

Dialogflow 帐户链接中断了流程

[英]Dialogflow Account linking breaks the flow

I'm developing a chatbot in Dialogflow for Google Assistant, I made sign-in compulsory(using authorization code flows) in Account Linking Section from Actions on Google using this official documentation , so when I invoke a bot it asks for a sign in if a user not already signed in.我正在 Dialogflow 中为 Google Assistant 开发聊天机器人,我使用 此官方文档在 Actions on Google 的帐户链接部分强制登录(使用授权代码流),因此当我调用机器人时,它会要求登录,如果尚未登录的用户。

After the sign-in, it breaks the flow, and I need to again invoke my bot as shown in this image.登录后,它中断了流程,我需要再次调用我的机器人,如下图所示。

I want to make this flow continuous, instead of invoking a bot again, it should open the Default Welcome Intent once the linking process finished.我想让这个流程连续,而不是再次调用机器人,它应该在链接过程完成后打开默认欢迎意图。

在此处输入图片说明

This is my linking setup这是我的链接设置

在此处输入图片说明

PS: I'm using python webhook for processing queries of other intents but not for Default Welcome Intent. PS:我使用 python webhook 来处理其他意图的查询,但不用于默认欢迎意图。

This is my integration setup这是我的集成设置

在此处输入图片说明

It would be better to use Google Signin to handle Account Linking. 最好使用Google登录来处理帐户链接。 It does not break the flow and you can access user profile details in parameters of your intent webhook. 它不会中断流程,您可以在意图Webhook的参数中访问用户配置文件详细信息。

Reference: https://developers.google.com/actions/identity/google-sign-in 参考: https : //developers.google.com/actions/identity/google-sign-in

please make sure,请确保,

  1. you have entered a valid callback URL.您输入了有效的回调 URL。
  2. your backend server(where authentication happens) should redirect to provided callback URL您的后端服务器(发生身份验证的地方)应该重定向到提供的回调 URL

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM