I'm sure you can publish a book with the help of ChatGPT, as I'm doing it right now (working on a JavaScript book which I think will be the funniest and deepest book ever made). But it's not that easy! Well, maybe some niches aren't that har