When using Artifical Intelligence (AI) tools such as ChatGTP, you should follow Box Hill Institute's AI Guidelines for students and your teacher's instructions. Instructions may vary for different assignments so check with your teacher if you have any doubt about what's okay. Using AI when it's not permitted and failing to reference your use of AI appropriately are both likely to be considered academic misconduct and academic penalties may apply.
Examples of in-text citations for an AI tool:
When prompted with the question: "Explain the benefits of academic libraries", OpenAI's ChatGPT  returned a long list...
When prompted to "explain the benefits of academic libraries", a long list was generated by the tool .
Make sure to include the elements needed: author (of the AI tool used), title of the AI tool in italics, followed by version name, number or date (in round brackets), date accessed, type of medium in square brackets ("[" and "]"), "Available: " and the URL of the tool.
 OpenAI, ChatGPT. (May 12, 2023 version). Accessed May 30, 2023. [Large language model]. Available: https://chat.openai.com/chat
 T. McAdoo, "How to cite ChatGPT," APA Style Blog, Apr. 2023. Accessed May 30, 2023. [Online]. Available: https://apastyle.apa.org/blog/how-to-cite-chatgpt