Yes, you need to run multiple OpenAI queries:
- Query OpenAI for function and function parameters
- Execute webSearch function
- Query OpenAI using entirely new prompt that includes results from webSearch and formatting instructions. If you want e.g. a JSON response include an example of the JSON and activate the JSON-mode