实现错误 "Platform "GOOGLE_HANGOUTS' 不受支持。”在点击 API 后使用内联编辑器来实现我的代码时
Fullfillment error "Platform "GOOGLE_HANGOUTS' not supported." when using inline editor to fulfill my code after hitting an 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'
所以,我通过 google 找到了问题的解决方案。您将必须升级 dependencies 的版本,dialogflow version 到 0.7.0 和 dialogflow-fulfillment 到 0.6.1 in package.json 你的履行代码,如果你的 bot 仍然不工作尝试用相同的创建新的 bot功能。它肯定会有所帮助。
我正在点击 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'
所以,我通过 google 找到了问题的解决方案。您将必须升级 dependencies 的版本,dialogflow version 到 0.7.0 和 dialogflow-fulfillment 到 0.6.1 in package.json 你的履行代码,如果你的 bot 仍然不工作尝试用相同的创建新的 bot功能。它肯定会有所帮助。