Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/firebase/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Firebase dialogflow hangouts聊天集成使用actions sdk无响应_Firebase_Actions On Google_Hangouts Chat - Fatal编程技术网

Firebase dialogflow hangouts聊天集成使用actions sdk无响应

Firebase dialogflow hangouts聊天集成使用actions sdk无响应,firebase,actions-on-google,hangouts-chat,Firebase,Actions On Google,Hangouts Chat,当连接dialogflow和hangouts聊天时,我在dialogflow中设置了正常响应。但是运行在google actions sdk上的webhook不会返回消息 const functions = require('firebase-functions'); const app = dialogflow({debug: true}); const {dialogflow, BasicCard, Permission, Suggestions,} = require('actions-o

当连接dialogflow和hangouts聊天时,我在dialogflow中设置了正常响应。但是运行在google actions sdk上的webhook不会返回消息

const functions = require('firebase-functions');
const app = dialogflow({debug: true});
const {dialogflow, BasicCard, Permission, Suggestions,} = require('actions-on-google');
app.intent('id', (conv, {name}) =>
 {
  conv.close(`People here are always available.So,you can call ${name} anytime`)
});

这与google助手和webchat配合使用。只有Google聊天时,响应为空。

Google库上的操作仅适用于Google助手

对于其他集成,包括Facebook、Slack和Hangouts Chat,您需要使用dialogflow实现库,或者直接使用JSON响应