Have a look here for an answer.
The prompting and iterating needed to perform and satisfy an AI model’s web browsing you’ve programmed would take handling those multiple calls and returns - like you would do now for other functions that can access internet APIs.