首页 文章

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

提问于
浏览
0

我的Dialogflow代理正在使用“Google Rich Message上的操作”列表响应对象来显示Google智能助理平台上的选项 .

在Dialogflow控制台上进行测试时,列表选项可以正常工作 . 但是,在移动设备上通过Google智能助理模拟器或Google智能助理应用进行测试时,列表选项在首次尝试时无效 . 它仅在第二次选择选项时有效 . 下面是我生成列表的意图代码 .

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'
            },
        },
    }));
});

任何指导将不胜感激 .

1 回答

  • 2

    这是因为您必须具有处理 actions_intent_OPTION 事件的intent,这是第一次触摸列表中元素时触发的事件 .

    列表/旋转木马总是触发该事件 . 如果没有意图可以处理 actions_intent_OPTION 事件,则会话转到Fallback意图 .

    请参阅documentationList > Requirements > Interactions > Voice/Text 部分:必须具有处理actions_intent_OPTION事件的触摸输入的意图 .

    请告诉我,如果有帮助,马可

相关问题