In the sci-fi TV show Star Trek: Voyager, there was a character known only as The Doctor, a hologram who may or may not have been a sentient being. Within the context of the show, no one was sure one way or another, but bottom line: he was an Artificial Intelligence.
In his spare time, he wrote “holo-novels,” scenarios for virtual reality environments where the crew of the Starship Voyager could interact as real or fictitious characters. In one episode, The Doctor’s characters resemble the crew a little too much.
Today, the use of AI in writing has become a serious debate.