我正在使用Dialogflow for Google智能助理开发一个聊天机器人,我使用this official documentation在Google上的操作的帐户关联部分中强制登录(使用授权代码流),因此当我调用机器人时,如果用户请求登录还没有登录 .
登录后,它会中断流程,我需要再次调用我的机器人,如此图所示 .
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.
这是我的链接设置
PS:我正在使用python webhook来处理其他意图的查询,但不能用于默认的欢迎意图 .
这是我的集成设置
1 回答
最好使用Google Signin来处理帐户关联 . 它不会中断流程,您可以在意图webhook的参数中访问用户配置文件详细信息 .
参考:https://developers.google.com/actions/identity/google-sign-in