ChatGPT has lots of teaching potential, but there are also many ways the technology can be misused.