Skip to main content

Generate styled PDF or DOCX business reports from Markdown with Autype

Workflow preview

Workflow preview
100%
Generate styled PDF or DOCX business reports from Markdown with Autype preview
Open on n8n.io

1. Workflow Overview

️ Important: This workflow uses the Autype community node and requires a self hosted n8n instance. This workflow demonstra...

Best for

  • Document Extraction automation workflows
  • Multimodal AI automation workflows
  • intermediate n8n builders looking for reusable templates

Tools used

n8n-nodes-base.manualtrigger, n8n-nodes-base.set, n8n-nodes-base.httprequest, n8n-nodes-autype.autype, n8n-nodes-base.stickynote

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Generate styled PDF or DOCX business reports from Markdown with Autype
Workflow name
Generate styled PDF or DOCX business reports from Markdown with Autype

⚠️ Important: This workflow uses the Autype community node and requires a self-hosted n8n instance.

This workflow demonstrates Autype's Extended Markdown engine — the foundation for creating production-ready documents from Markdown. It supports full document layouts with headers, footers, page numbering, cross-references, indices, custom layouts, and advanced diagrams (TikZ, Mermaid, ...). You can generate complete PDF, DOCX, or ODT documents with professional typography, tables, charts, and embedded images.

Who is this for?

This workflow is for developers, operations teams, and business analysts who want to turn structured Markdown into branded documents with a consistent design system. It's ideal if you want to separate content from styling and include uploaded visuals in your final PDF or DOCX output.

What this workflow does

This workflow builds a business quarter report from Markdown and applies a separate style JSON (defaults) to control typography, chart colors, table styling, and header/footer layout. It also downloads a report image via HTTP, uploads it as a temporary Autype image, and injects the returned refPath into the title page before rendering.

The included example report uses:

  • A dedicated style configuration node (schema-aligned defaults)
  • A cover page with company logo + uploaded content image
  • A financial KPI table
  • A chart directive for regional performance
  • A second chart + page break section for operational metrics

How it works

  1. Manual Trigger — Starts the workflow on demand.
  2. Set Document Style JSON — Defines document and defaults (font, color, table style, chart colors, header/footer) plus a company logo URL (placehold.co).
  3. Set Business Report Markdown — Stores the markdown template with placeholders for logo and uploaded title image.
  4. Download Report Image — Fetches a PNG via HTTP Request (file response).
  5. Upload Content Image — Uploads the downloaded file using Autype uploadImage and returns a temporary refPath.
  6. Build Markdown + Style Payload — Injects image URLs/refs into markdown and serializes defaults JSON for rendering.
  7. Render Styled Markdown Report — Renders markdown with defaults and downloads the final document.

How Image Upload Works

For images that aren't publicly accessible (e.g., internal dashboards, screenshots), Autype provides a temporary image upload mechanism:

  1. Download the image as binary data (HTTP Request, file upload, etc.)
  2. Upload to Autype via the uploadImage operation → returns a refPath (e.g., /temp-image/{id})
  3. Reference the image in Markdown using the refPath directly: ![Dashboard]({{ $json.refPath }}){width=520}
  4. Temporary images expire after 24 hours and are automatically cleaned up

How Markdown works with Autype

Autype uses an Extended Markdown syntax that transforms standard Markdown into a full-featured document markup system for professional document creation. This goes far beyond basic Markdown with specialized elements for document structure, layout, and advanced content.

Key extended elements include:

  • :::toc — Table of contents with automatic heading extraction
  • :::chart — Interactive charts and data visualizations
  • :::table — Enhanced tables with styling and formatting options
  • ---page{align=center}--- directives — Page layout, orientation, and section breaks
  • Cross-references, indices, diagrams (mermaid, tikz, ...), equations and bibliography support

For the complete markup reference and all available elements, see the Autype Markup Reference.

Setup

  1. Install the Autype community node (n8n-nodes-autype) via Settings → Community Nodes.
  2. Create an Autype API credential with your API key from app.autype.com. See API Keys in Settings.
  3. In Download Report Image, replace the sample URL with your own dashboard/chart image if needed.
  4. In Set Document Style JSON, adjust typography/colors/header/footer as required.
  5. Import this workflow and click Test Workflow to generate the example quarter report.

Requirements

  • n8n instance with community node support
  • Autype account with API key
  • n8n-nodes-autype community node installed

How to customize

  • Style system: Keep report content in markdown and update design centrally in Set Document Style JSON (defaults).
  • Title page assets: Replace the logo URL (companyLogoUrl) and the downloaded content image source URL.
  • Output format: Change document.type from pdf to docx for Word-compatible output.
  • Extended syntax: Use markdown tables, chart directives (:::chart), page directives, and text2 blocks for richer reports.

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 - Run Workflow

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

Block 2 - Company Settings

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

Block 3 - Download Report Image

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

Block 4 - Upload Temp Image

Type / Role
n8n-nodes-autype.autype - autype
Config choices
Version 1

Block 5 - Render Markdown Report

Type / Role
n8n-nodes-autype.autype - autype
Config choices
Version 1

Block 6 - Sticky Note

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

Block 7 - Sticky Note1

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

Block 8 - Sticky Note2

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

Block 9 - Sticky Note3

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

3. Summary Table

Workflow Generate styled PDF or DOCX business reports from Markdown with Autype
Complexity intermediate
Nodes 9
Categories Document Extraction, Multimodal AI
Author 8Automator
Published 28 Feb 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/13777/13777.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 Generate styled PDF or DOCX business reports from Markdown with Autype do?

️ Important: This workflow uses the Autype community node and requires a self hosted n8n instance. This workflow demonstra...

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 Document Extraction, Multimodal AI use case.