@ferosekhan I am not sure what is the use case you are looking for using ChatGPT. But please see the discussion here on the same topic.
https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager-ideas/chatgpt-ai-chatbot-f...
https://www.youtube.com/watch?v=1DCC3vHDAXc - ChatGPT Integration with Adobe Commerce