Templates / Create structured eBooks in minutes with Google Gemini Flash 2.0 to Google Docs

Create structured eBooks in minutes with Google Gemini Flash 2.0 to Google Docs

Ready for 3.0

by Ranjan Dailata ✓ · 8,693 views · created 2025-07-05 · Content Creation, Multimodal AI

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 12 nodes and runs manually, when you click “Execute workflow”. Along the way it connects Google Gemini Chat Model and Google Docs.

How it runs

Trigger: Manually, when you click “Execute workflow”.

  1. Set the Input Fields (Edit Fields (Set)): sets 1 field: Title
  2. Ebook Thought Creation (Basic LLM Chain): sends a prompt to an LLM, with model: Google Gemini Chat Model; output parser: Structured Output Parser
  3. Code: runs custom JavaScript code
  4. Loop Over Items (Loop Over Items (Split in Batches)): loops over the items in batches
  5. Set the title, objective (Edit Fields (Set)): sets 2 fields: title, objectives
  6. Generate Detailed Chapter Content (Basic LLM Chain): sends a prompt to an LLM, with model: Google Gemini Chat Model
  7. Create a Google Doc (Google Docs): uses Google Docs
  8. Update Google Docs (Google Docs): update

Services it uses

Google Gemini Chat ModelGoogle Docs

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Nodes used (8)

From the author

This workflow contains community nodes that are only compatible with the self-hosted version of n8n. Description This workflow automates the creation of structured eBooks by generating chapters, table of contents, and content using Google Gemini Flash 2.0.…

Excerpt from Ranjan Dailata's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.