ChatGPT, the popular AI language model, is very new. As a result, educational institutions and style guides are still working out their policies on when and how content from the tool can be used and cited in academic writing. When in doubt, avoid relying on ChatGPT for any serious research.
It will take time for standard citation manuals (MLA, APA, Chicago, etc.) to decide how to format AI interactions in academic works, but preliminary guidance indicates that "generative AI" should be considered "personal communication."
For more on this, check out "How do I cite ChatGPT?"