首页 > 解决方案 > 昨天有效的操作现在确实崩溃了

问题描述

昨天我的 Google Action 运行良好,但今天却不行。我没有更改代码或 Dialogflow 中的任何内容。

似乎第一个意图是登录/注册意图,因为这两个 console.log 语句都显示在控制台中。console.log('Test2') 没有出现。日志中的最后一行是:“函数执行耗时 1265 毫秒,以状态码完成:200”。

你能帮帮我吗?谢谢!

https://i.imgur.com/wQR8qwf.png https://i.imgur.com/evGVqJn.png

app.intent("Default Welcome Intent", (conv, input) => {
  console.log('Test1a')
  conv.add(new SignIn('To gather your data.'))
    console.log('Test1b')
})

app.intent("welkomintent", (conv, input, signin) => {
  console.log('Test2')
  if (signin.status !== 'OK') {
    conv.close('You cannot use this app without registration!');
 } else {
  conv.add('Welcome back!')
}
})

标签: dialogflow-esactions-on-google

解决方案


推荐阅读