我们正在使用Dialogflow V2 API在Google上创建操作。我们正在使用Firebase云功能来实现我们的功能,并使用外部rest api来进行原始操作。
我正在尝试使帐户关联工作。我在这里遵循了指南:https://developers.google.com/actions/identity/google-sign-in
我处理用户登录的意图
// Handles Welcome Event
app.intent("Get Signin", (conv, params, signin) => {
if (conv, params, signin === 'OK') {
conv.ask(`
I got your account details, ${payload.name}. What do you want to do next?`);
} else {
conv.ask(`I won't be able to save your data, but what do you want to do next?`);
}
});
// When the user responds 'Signin' it triggers the Get Signin Intent
app.intent('Start Signin', (conv) => {
conv.ask(new SignIn());
});
但是代理人离开了!没有错误,我不确定在哪里/为什么失败