I Published 50+ Books with AI — Here's What I Learned
A marketer's honest account of building an AI-powered book production system — without writing a single line of code. The system, the numbers, and the lessons learned after 50+ books on Amazon KDP.
In January 2025, I published my first book on Amazon KDP. I wrote it manually in Google Docs. It took three weeks and sold 4 copies in the first month.
By March 2026, I have over 50 books on Amazon. Not because I got faster at typing — because I got AI to build me a machine. An automated system that takes a book concept and delivers a finished product ready for KDP upload. I didn’t write the code. I described what I wanted, and AI built it.
I’m not a developer. I’m a marketer. But it turns out that knowing what to ask for is more valuable than knowing how to code.
Here’s the full story: what I built (with AI’s help), what it costs, what it earns, and what I’d do differently.
The System
My book production pipeline has 5 steps, each handled by a Python script:
Step 1: book_planner.py → Generates a detailed outline (JSON)
Step 2: grok_writer.py → Writes all chapters from the outline
Step 3: claude_reviewer.py → Reviews for quality and consistency
Step 4: book_assembler.py → Assembles chapters into a .docx
Step 5: kdp_packager.py → Generates KDP metadata (keywords, description, cover prompts)
One command runs all five steps in sequence:
python run_pipeline.py
Total active time per book: about 3 hours. Most of that is reviewing output, not creating it.
How Each Step Works
Step 1 — The Planner takes a book concept (topic, audience, style) and generates a complete outline. Not a vague “Chapter 1: Introduction” outline — a detailed JSON file with:
- Chapter titles and descriptions
- Key takeaways per chapter
- Word count targets
- Structural notes (where to include code, comparisons, case studies)
Step 2 — The Writer reads the outline and writes each chapter. It knows the style profile — the voice, vocabulary, formatting preferences. Each chapter gets the context of previous chapters to maintain continuity.
Step 3 — The Reviewer uses Claude to check every chapter for:
- Technical accuracy (are the code examples correct?)
- Factual claims (are tool names and features accurate?)
- Readability (are sentences clear? Is jargon explained?)
- Consistency (do chapters reference each other correctly?)
Step 4 — The Assembler takes all reviewed chapters and merges them into a formatted .docx file with proper headings, page breaks, and styling.
Step 5 — The Packager generates everything Amazon needs:
- 7 keyword phrases (optimized for KDP search, each using the full 50-character limit)
- A 3,000-3,500 character book description
- 5 cover image prompts
- Category suggestions
- Pricing recommendation
The Numbers
Let me be honest about the money, because most “AI income” posts either exaggerate or hide the details.
Costs Per Book
| Cost | Amount |
|---|---|
| AI API calls (writing + review) | $3-8 |
| Cover design (AI-generated + touchup) | $5-15 |
| KDP upload fee | Free |
| Total per book | $8-23 |
My time: ~3 hours per book. If I value my time at $50/hour, the real cost is closer to $160-170 per book. But the whole point is that these 3 hours generate recurring revenue.
Revenue Per Book (Average)
This varies wildly. My top performer does $250/month. My worst does $3/month. The average across 50+ books:
| Metric | Value |
|---|---|
| Average monthly revenue per book | $40-80 |
| Best performing book | ~$250/month |
| Worst performing book | ~$3/month |
| Total monthly revenue (all books) | Enough to pay the bills |
I’m not going to give exact totals because they fluctuate month to month. But the trend is up, and the compound effect of adding more books is real.
The Compound Effect
This is what people miss about KDP. One book earning $50/month isn’t life-changing. But:
- 10 books × $50 = $500/month
- 25 books × $60 = $1,500/month
- 50 books × $70 = $3,500/month
Each new book adds to the baseline. And older books continue earning without additional work. That’s the “passive” in passive income — though building the system was anything but passive.
What I Got Wrong
Mistake 1: Starting Without Research
My first 5 books targeted keywords nobody was searching for. I just wrote about topics I found interesting. Zero sales.
Fix: I built a keyword research pipeline that scrapes Amazon autocomplete, tracks competitor rankings, and scores opportunities. Now I only write books for keywords with proven demand and low competition.
Mistake 2: Quantity Over Quality (At First)
When I first automated the pipeline, I prioritized speed. “Let’s publish 10 books this week!” The result: mediocre books that got bad reviews and hurt my author ranking.
Fix: I added the review step (Step 3) and a consistency checking loop that won’t let a book through until it passes quality checks. It’s slower but the reviews went from 2-3 stars to 4-4.5 stars.
Mistake 3: Ignoring the Description
Amazon’s algorithm weighs the book description heavily. My first books had 500-character descriptions. Terrible for discoverability.
Fix: Every description is now 3,000-3,500 characters with strategic keyword placement. This alone doubled my sales on several books.
Mistake 4: Not Building a Funnel
For the first 6 months, my books were dead ends. Someone buys a book, reads it, and… nothing. No email capture, no link to my other books, no next step.
Fix: Every book now includes:
- A link to my email list (with a free download as incentive)
- Links to related books in the series
- A link to my YouTube channel
- An “about the author” section that builds the brand
This turned one-time buyers into repeat customers and email subscribers.
The Tech Stack
For the developers reading this, here’s exactly what powers the pipeline:
| Component | Technology | Purpose |
|---|---|---|
| Book Planning | Grok-3 API | Creative outlining |
| Chapter Writing | Grok-3 API | Long-form content generation |
| Quality Review | Claude CLI | Technical accuracy and consistency |
| Document Assembly | python-docx | .docx generation with formatting |
| KDP Metadata | Grok-3 API | Keywords, descriptions, cover prompts |
| Keyword Research | Playwright + BeautifulSoup | Amazon scraping |
| Opportunity Scoring | Custom Python | Multi-factor analysis |
| Cover Images | Grok Image Generation | AI cover concepts |
| Pipeline Orchestration | subprocess + JSON state files | Sequential execution with skip flags |
Total codebase: ~25,000 lines of Python across 90+ scripts.
All orchestrated by Claude Code with a CLAUDE.md file that knows the entire system.
What Makes a Book Sell on KDP
After 50+ books, here’s what I’ve learned about what actually drives sales:
1. Keywords Are King
Amazon is a search engine. If nobody searches for your topic, nobody finds your book. Period.
My best-selling books target keywords with:
- 1,000+ monthly searches
- Fewer than 500 competing books
- Low average review count (means competitors are weak)
2. The Description Sells the Book
Your cover gets the click. Your description gets the sale. Write it like a sales page:
- Hook in the first line
- 5-7 bullet points of what the reader will learn
- Social proof angle (“proven system”, “real results”)
- Clear call to action
3. Series Beat Standalones
A single book earns $50/month. A 6-book series with cross-linking earns $400-600/month — because each book promotes the others. Amazon’s “also bought” algorithm does the marketing for you.
4. Reviews Make or Break You
Anything below 4 stars is a death sentence on Amazon. Quality isn’t optional — it’s the foundation everything else is built on.
5. Cover Quality Matters More Than You Think
AI-generated covers can work, but they need to look professional. I generate 10-20 cover concepts per book and pick the best one, then do minor touchups.
The Workflow in Practice
Here’s what a typical “book production day” looks like:
Morning (1 hour):
- Run keyword research to identify opportunity
- Define book concept (topic, audience, angle)
- Run
book_planner.py— generates outline in ~2 minutes
Midday (30 minutes):
4. Review outline, make adjustments
5. Run grok_writer.py — writes all chapters (~30-60 min runtime, I do other things)
Afternoon (1.5 hours):
6. Run claude_reviewer.py — reviews all chapters
7. Spot-check a few chapters myself
8. Run book_assembler.py + kdp_packager.py
9. Upload to KDP (manual, ~20 minutes)
By end of day: one book published. Repeat 2-3 times per week if I’m in production mode.
Why I’m Sharing This
Two reasons:
First, because most “AI publishing” content is either scammy (“Make $10K in your first month!”) or too vague to be useful. I want to share what actually works, with real numbers and real code.
Second, because the system itself is interesting to build. Even if you don’t want to publish books, the automation patterns — pipeline orchestration, LLM integration, quality loops, scraping, batch processing — are applicable to hundreds of other projects.
What I’d Tell Beginner Me
If I could go back to January 2025:
- Build the research pipeline first. Don’t write a single book until you know there’s demand.
- Quality > quantity. 10 good books beat 50 mediocre ones.
- Series from day one. Never plan a standalone book. Always plan a series of 6-8.
- Description optimization is not optional. Fill those 3,500 characters.
- Build the funnel into every book. Email capture link, related books, YouTube channel.
- Automate the boring parts, not the quality parts. Let AI write drafts. Review them yourself (or with another AI).
What’s Next
I’m now building the tools to make this process available to others. Not as a course (I hate courses) — but as actual tools, templates, and honest documentation.
If you want to follow along:
- Subscribe to my YouTube where I show the build process live
- Join my email list for weekly insights and free resources
- Check out my books on Amazon for deep dives into specific topics
The journey continues. Every week I build something new, break something old, and learn something I didn’t expect. That’s the fun part.
Questions about the pipeline? Want to see a specific part in detail? Find me on LinkedIn or YouTube. I’ll cover it in a future post.
Get the free AI Toolkit Cheatsheet
Plus weekly insights on building with AI. No spam, unsubscribe anytime.