Fetch realtime data based on user question and get response from OpenAI based on fetched data

Is it possible to solve this with Function calling?
There is a requirements that we need to make filter params from user question(natural language). then call the api with those params. How can i do this part with function calling ?