🔬 Generate branded word documents with Claude AI and Json2Doc (up to 20 pages)

757 views · 🔬 Document Extraction & Analysis

Description

Overview

This n8n workflow automatically generates professionally formatted Word documents (DOCX) with consistent company branding using AI. It leverages Json2Doc and the Json2Doc MCP server to transform simple text prompts into complete, multi-page documents.

Get your free API key at: app.json2doc.com

Use Cases

Generate first drafts of:

Key Features

Consistent Company Branding

Multi-Page Document Support

Rich Content Types

AI-Driven Generation

Uses Claude Sonnet 4.5 to:

How It Works

1. Input Form

Users provide:

2. Company Styling

Pre-configured branding is applied (See workflow for Description on how to Update):

3. AI Document Generation

The AI agent:

  1. Retrieves the Json2Doc section schema
  2. Generates JSON configuration for the document
  3. Validates the configuration
  4. Creates a document generation job
  5. Returns the Job ID

4. Processing & Download

Setup Requirements

Authentication

You need a Json2Doc API key from app.json2doc.com (Permanently free version available).

Processing Times

Configuration Generation (Model-dependent)

The AI model generates the JSON configuration:

Time varies based on the selected AI model and document complexity.

Json2Doc Processing

Once the configuration is created, Json2Doc generates the DOCX file in 2-6 seconds regardless of document size.

Extensions

This workflow can be integrated with:

Important Limitation

This workflow is only suitable for documents up to 20 pages, as larger documents will exceed the AI model’s context window. For longer documents, use the Builder Mode instead: DocumentBuilder Docs

🔗 Nodes Used

HTTP Request, AI Agent, Anthropic Chat Model, Structured Output Parser, n8n Form Trigger, OpenRouter Chat Model

📥 Import

Download workflow.json and import into n8n: Workflow menu → Import from File

📖 Importing guide · 🔑 Credential setup