node.js - 完成错误“不支持平台“GOOGLE_HANGOUTS”。”在点击 API 后使用内联编辑器完成我的代码时
问题描述
我正在使用 API 并将所需的值返回给聊天机器人。虽然我在 Dialogflow 的默认响应模拟器中得到了响应,但是对于相同的代码,我在环聊聊天 API 中没有得到任何响应(我已将 Dialogflow 与环聊聊天集成)。
function func_name(agent){
const abcd = agent.parameters.abcd;
agent.add(`Below are the products related to ${abcd}`);
return axios.get(`https://*********************/****/${abcd}`)
.then((result)=>{
result.data.map(abcdObj => {
agent.add(JSON.stringify(abcdObj.name+"~"+abcdObj.key));
});
});
我收到的错误消息是:
Error: Platform 'GOOGLE_HANGOUTS' not supported.
Function execution took 12 ms, finished with status: 'crash'
解决方案
所以,在这里我得到了谷歌的解决方案。您必须在您的实现代码的 package.json 中将 dependencies 的版本、 dialogflow 版本升级到 0.7.0 和 dialogflow-fulfillment 到 0.6.1,如果您的机器人仍然无法工作,请尝试创建具有相同功能的新机器人。这肯定会有所帮助。
推荐阅读
- reactjs - 如何使用打字稿将类型组合成一种类型并做出反应?
- yahoo - 通过 Roundcube 请求 Yahoo OAuth 范围的问题
- java - 将 IKVM 与 Tomcat 和 intellej 一起使用
- django - 如何更改表 django 中的数据?
- node.js - Nodejs fast-csv 和 Promise
- active-directory - 如何在 Azure AD 预配调用中映射属于用户的组
- c - GCC - 编译 C 未定义的对“wWinMain”的引用
- sql - 如何为每个用户及其详细信息选择最高分
- react-admin - 在一个下显示多个资源
- vim - 如何在 VIM 中重复复制粘贴?