Selecting any option in a dynamic Whatsapp list always leads to the fallback flow

I built a simple API to dynamically generate the list . The list was generated with right information but whenever I select a option it defaults to fallback flow.

##JSON used to generate this Whats-App list

{
        "optionText": "Click on the button below to view active Projects",
        "options": [
            {
                "options": [
                    {
                        "description": "Tensorflow is an open-source software library by Google ",
                        "text": "tensorflow",
                        "title": "Tensorflow"
                    },
                    {
                        "description": "ncnn is a high-performance neural network inference framework",
                        "text": "ncnn",
                        "title": "NCNN"
                    }
                ],
                "section": "AI"
            },
            {
                "options": [
                    {
                        "description": "A declarative, efficient, and flexible JavaScript library ",
                        "text": "react",
                        "title": "React"
                    },
                    {
                        "description": "a progressive, incrementally-adoptable JavaScript framework",
                        "text": "vue",
                        "title": "Vue"
                    }
                ],
                "section": "Fontend"
            },
            {
                "options": [
                    {
                        "description": "a JavaScript runtime for the backend",
                        "text": "node",
                        "title": "Node js"
                    }
                ],
                "section": "OTHER"
            }
        ],
        "title": "Fundraisers"
    }

Screenshot of the workflow and Whatsapp

Apply validator function through fallback, please.
Check the user message clicked/typed after the prompt has been rendered.
Take the button texts and their aliases in an array and check if the user message exists in the array and validate.

Hope it helps!

Hey @Sivashankar_Ramesh you need to write a function in which you will take a variable and store the response of the user that he has select from the WA list and compare it with the API response.

Thanks. I got it working thought fallback but don’t understand that is other option for

1 Like

Sorry, Can you elaborate clearly?

@Sivashankar_Ramesh When we pass values dynamically, there is no branching of options supported in the UI.

Therefore, we will need to always handle this through the fallback followed by a condition node

if selected option β†’ perform X
else β†’ perform Y

1 Like

Understood :+1: . I was able to get it working