@Muddassir
If you're referring to Power Automate as the cloud version, then you have access to all the pre-built actions available in Power Automate Cloud. You can simply use the 'Excel - List rows' action, and consume AI Hub or Dataverse actions to interface with Azure OpenAI. It will then respond in JSON format via an API call, which you can read and save in Excel as needed.
If you're attempting to achieve this with Power Automate Desktop, you can also create a 'Chat with GPT' action, similar to what we do in the cloud, and save the response back into your Excel file according to your use case.

Thanks,
Deenuji Loganathan 👩💻
Automation Evangelist 🤖
Follow me on LinkedIn 👥
-------------------------------------------------------------------------------------------------------------
If I've helped solve your query, kindly mark my response as the solution ✔ and give it a thumbs up!👍 Your feedback supports future seekers 🚀