ChatGPT writer

I have been using ChatGPT to help write a story. But I am trying to find a way to automate, writing the scene then auto save it or speak text.