【发布时间】:2018-07-12 09:23:23
【问题描述】:
我尽一切努力让this 示例工作(尤其是轮播部分)。每次我尝试从谷歌上的操作中使用列表或建议或轮播时,它都会在谷歌模拟器中给我这个错误: error from actions on google simulator
这是我的 heroku webhook 中的 Intent 代码(它是示例中的复制粘贴)
function prova(agent){
let conv = agent.conv();
const imageUrl = 'https://developers.google.com/actions/images/badges/XPM_BADGING_GoogleAssistant_VER.png';
const imageUrl2 = 'https://lh3.googleusercontent.com/Nu3a6F80WfixUqf_ec_vgXy_c0-0r4VLJRXjVFF_X_CIilEu8B9fT35qyTEj_PEsKw';
const linkUrl = 'https://assistant.google.com/';
conv.ask(new Carousel({
title: 'Google Assistant',
items: {
'WorksWithGoogleAssistantItemKey': {
title: 'Works With the Google Assistant',
description: 'If you see this logo, you know it will work with the Google Assistant.',
image: {
url: imageUrl,
accessibilityText: 'Works With the Google Assistant logo',
},
},
'GoogleHomeItemKey': {
title: 'Google Home',
description: 'Google Home is a powerful speaker and voice Assistant.',
image: {
url: imageUrl2,
accessibilityText: 'Google Home'
},
},
},
}));
agent.add(conv);
}
所以,这是我的依赖项:
谁已经解决了这个问题?我没有找到任何关于这...
提前谢谢你!
【问题讨论】:
标签: node.js actions-on-google dialogflow-es