I am creating a flow to fetch the capital of a country based on country name. So after start, I have first step as collect step for country but if the user message is like “get me the capital” instead of asking me for country name the agent directly jumps to next step which is fetching the capital which is causing issue in final output, how can I handle this case such that if county is not provided it asks for it and if it is provided it doesn’t ask for it.
To handle both explicit and implicit country inputs in your capital-fetching flow, check for the “country” entity after the initial user message; if present, proceed to fetch the capital, otherwise, prompt the user for the country name, extract it, and then fetch the capital.