Laws in both the US and the UK stipulate that, when it comes to copyright, only humans can claim authorship. So for a game like AI Dungeon, where the platform allows a player to, essentially, “write” a narrative with the help of a chatbot, claims of ownership can get murky: Who owns the output? The company that developed the AI, or the user?
Source: Generative AI in Games Will Create a Copyright Crisis