点击谷歌助理列表总是第一次触发回退意图



我的 Dialogflow 代理正在使用"Google 富消息上的操作"列表响应对象来显示 Google Assistant 平台上的选项。

在对话流控制台上进行测试时,列表选项可以完美运行。但是,在移动设备上通过 Google 助理模拟器或 Google Assistant 应用进行测试时,列表选项在第一次尝试时不起作用。它仅在第二次选择选项时有效。下面是生成列表的意图代码。

app.intent('Default Welcome Intent', conv => {
conv.ask('Hi welcome to micro strategy. I am Emily, your virtual assistant. Please tell me how can I help you');
conv.ask(new List({
title: 'Please choose',
items: {
['SELECTION_KEY_GET_CALENDAR_EVENTS']: {
synonyms: [
'Get calendar events',
],
title: 'Get calendar events',
description: 'Lets you retrieve calendar events',
},
['SELECTION_KEY_MODIFY_EVENTS']: {
synonyms: [
'Modify calendar events',
],
title: 'Modify calendar events',
description: 'Lets you modify calendar events'
},
},
}));
});

任何指导将不胜感激。

这是因为您必须具有处理actions_intent_OPTION事件的意图,这是首次触摸列表中的元素时触发的意图。

列表/轮播始终触发该事件。如果没有意向可以处理actions_intent_OPTION事件,则对话将转到回退意向。

请参阅文档>要求列表>语音/文本>交互部分:必须具有处理actions_intent_OPTION事件的触摸输入的意图

让我知道是否有帮助,马可

最新更新