ChatGPT is trained on vast amounts of online data in order to generate responses to user prompts. It has written original essays, stories, song lyrics and research paper abstracts that fooled some scientists