Skip to main content

Create AI-generated books with GPT-4.1-mini, DALL-E, Google Drive and AWS S3

Workflow preview

Workflow preview
100%
Create AI-generated books with GPT-4.1-mini, DALL-E, Google Drive and AWS S3 preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

Multi Agent Book Creation Workflow with AI Tool Node and GPT 4, DALL E [![Watch the video](https://wisestackai.s3.ap southeast 1.amazonaws.com/multi agent book creation workflow with ai tool node a...

Best for

  • Content Creation automation workflows
  • Multimodal AI automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

@n8n/n8n-nodes-langchain.chattrigger, @n8n/n8n-nodes-langchain.agenttool, @n8n/n8n-nodes-langchain.outputparserstructured, @n8n/n8n-nodes-langchain.agent, @n8n/n8n-nodes-langchain.lmchatopenai, n8n-nodes-base.set, n8n-nodes-base.googledrive, @n8n/n8n-nodes-langchain.openai

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Trung Tran.

Original n8n.io source

1.1 Workflow description

Title
Create AI-generated books with GPT-4.1-mini, DALL-E, Google Drive and AWS S3
Workflow name
Create AI-generated books with GPT-4.1-mini, DALL-E, Google Drive and AWS S3

Multi-Agent Book Creation Workflow with AI Tool Node and GPT-4, DALL-E

Who’s it for

This workflow is designed for:

  • Content creators who want to generate books or structured documents automatically.
  • Educators and trainers who need quick course materials, eBooks, or study guides.
  • Automation enthusiasts exploring multi-agent systems using the newly released AI Tool Node in n8n.
  • Developers looking for a reference template to understand orchestration of multiple AI agents with structured output.

How it works / What it does

This template demonstrates a multi-agent orchestration system powered by AI Tool Nodes:

  1. Trigger: Workflow starts when a chat message is received.
  2. Book Brief Agent: Generates the initial book concept (title, subtitle, and outline).
  3. Book Writer Agent: Expands the outline into full content by collaborating with two sub-agents:
    • Designer Agent → Provides layout/design suggestions.
    • Content Writer Agent → Drafts and refines chapters.
  4. Generate Cover Image: AI generates a custom book cover image.
  5. Upload to AWS S3: Stores the cover image securely.
  6. Configure Metadata: Adds metadata for title, author, and description.
  7. Build Book HTML: Converts markdown-based content into HTML format.
  8. Upload to Google Drive: Saves the HTML content for processing.
  9. Convert to PDF: Transforms the book into a professional PDF.
  10. Archive to Google Drive: Final version is archived for safe storage.

This workflow showcases multi-agent coordination, structured parsing, and seamless integration with cloud storage services.

How to set up

  1. Import the workflow into n8n.
  2. Configure the following connections:
    • OpenAI (for Book Brief, Book Writer, Designer, and Content Writer Agents).
    • AWS S3 (for image storage).
    • Google Drive (for document storage & archiving).
  3. Add your API keys and credentials in n8n credentials manager.
  4. Test the workflow by sending a sample chat message (e.g., “Write a book about AI in education”).
  5. Verify outputs in Google Drive (HTML + PDF) and AWS S3 (cover image).

Requirements

  • n8n (latest version with AI Tool Node support).
  • OpenAI API key (to power multi-agent models).
  • AWS account (with S3 bucket for storing images).
  • Google Drive integration (for document storage and archiving).
  • Basic familiarity with workflow setup in n8n.

How to customize the workflow

  • Switch Models: Replace gpt-4.1-mini with other models (faster, cheaper, or more powerful).
  • Add More Agents: Introduce agents for editing, fact-checking, or translation.
  • Change Output Format: Export to EPUB, DOCX, or Markdown instead of PDF.
  • Branding Options: Modify the cover generation prompt to include company logos or specific style.
  • Extend Storage: Add Dropbox, OneDrive, or Notion integration for additional archiving.
  • Trigger Alternatives: Replace chat trigger with form submission, webhook, or schedule-based runs.

✅ This workflow acts as a free, plug-and-play template to showcase how multi-agents + AI Tool Node can work together to automate complex content creation pipelines.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - When chat message received

Type / Role
@n8n/n8n-nodes-langchain.chatTrigger - chatTrigger
Config choices
Version 1.1

Block 2 - Designer Agent

Type / Role
@n8n/n8n-nodes-langchain.agentTool - agentTool
Config choices
Version 2.2

Block 3 - Content Writer Agent

Type / Role
@n8n/n8n-nodes-langchain.agentTool - agentTool
Config choices
Version 2.2

Block 4 - Structured Output Parser

Type / Role
@n8n/n8n-nodes-langchain.outputParserStructured - outputParserStructured
Config choices
Version 1.3

Block 5 - Book Brief Agent

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 2.1

Block 6 - Book Writer Agent

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 2.1

Block 7 - gpt-4.1-mini

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.2

Block 8 - gpt-4.1-mini1

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.2

Block 9 - gpt-4.1-mini2

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.2

Block 10 - Structured Output Parser1

Type / Role
@n8n/n8n-nodes-langchain.outputParserStructured - outputParserStructured
Config choices
Version 1.3

Block 11 - Configure metadata

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 12 - Convert document to PDF

Type / Role
n8n-nodes-base.googleDrive - googleDrive
Config choices
Version 3

Block 13 - OpenAI Chat Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.2

Block 14 - Generate cover image

Type / Role
@n8n/n8n-nodes-langchain.openAi - openAi
Config choices
Version 1.8

Block 15 - Upload to AWS S3

Type / Role
n8n-nodes-base.awsS3 - awsS3
Config choices
Version 2

Block 16 - Build book html

Type / Role
n8n-nodes-base.markdown - markdown
Config choices
Version 1

Block 17 - Upload to Google Drive

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 18 - Archive to Drive Folder

Type / Role
n8n-nodes-base.googleDrive - googleDrive
Config choices
Version 3

Block 19 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 20 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 21 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 22 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 23 - Sticky Note4

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 24 - Sticky Note5

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Showing the first 24 of 25 workflow blocks. Download the JSON for the full node graph.

3. Summary Table

Workflow Create AI-generated books with GPT-4.1-mini, DALL-E, Google Drive and AWS S3
Complexity advanced
Nodes 25
Categories Content Creation, Multimodal AI
Author Trung Tran
Published 17 Aug 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/7482/7482.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Create AI-generated books with GPT-4.1-mini, DALL-E, Google Drive and AWS S3 do?

Multi Agent Book Creation Workflow with AI Tool Node and GPT 4, DALL E [![Watch the video](https://wisestackai.s3.ap southeast 1.amazonaws.com/multi agent book creation workflow with ai tool node a...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Content Creation, Multimodal AI use case.