dialogflow-es - 昨天有效的操作现在确实崩溃了
问题描述
昨天我的 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!')
}
})
解决方案
推荐阅读
- python - 伽玛分布参数 Python
- javascript - Javascript可以以编程方式模拟“keyup”吗?
- google-app-engine - Google App Engine 服务的自定义子域
- elasticsearch - 模糊在 Elasticsearch 中的行为不符合预期
- react-native - 无法从某个模块导入文件
- node.js - 从带有 MSI 的 linux vm 节点的 azure keyvault 获取秘密
- twilio - Twilio Collect 操作中的新验证 webhook 功能
- dita - 用于记录软件库的 DITA
- visual-studio - 如何解决这两个命名空间之间的冲突?
- python - 在python中的一行中编写for循环表达式,但结果不应该是一个列表