1
votes

My Dialogflow agent is using an 'Actions on Google Rich Message' List response object to display options on the Google Assistant platform.

The list options work perfectly when testing on the Dialogflow console. However, when testing through the Google Assistant Simulator or Google Assistant app on a mobile device, the list option does not work on the first try. It works only when selecting an option the second time. Below is my intent code which generates the list.

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

Any guidance would be appreciated.

1

1 Answers

2
votes

This is because you must have an intent that handles the actions_intent_OPTION event, which is what is fired when you touch for the first time an element in the list.

Lists / Carousel always fire that event. If no intents can handle the actions_intent_OPTION event, then the conversation goes to the Fallback intent.

Refer to the documentation, section List > Requirements > Interactions > Voice/Text : Must have an intent for touch input that handles the actions_intent_OPTION event.

Let me know if it helps, Marco