# Generate branded PDF reports from incoming emails with Autype: n8n workflow

> Started by an arriving email, and works across Email. It hands the judgement calls to OpenRouter.

Source: https://millionrounds.com/workflow/generate-branded-pdf-reports-from-incoming-emails-with-autyp (Millionrounds; every figure on the page links to its filing or article)

[Automation library](https://millionrounds.com/workflows) · [Research and reporting](https://millionrounds.com/workflows?category=Research+and+reporting#library)

# Generate branded PDF reports from incoming emails with Autype

Started by an arriving email, and works across Email. It hands the judgement calls to OpenRouter. 21 steps, 1 branch, 2 loops or waits: large, and worth reading before you trust it with anything live.

Large Calls a model: OpenRouter

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fgenerate-branded-pdf-reports-from-incoming-emails-with-autyp)

**21 steps** Large: read it before trusting it with anything live

**1** Branch: places the flow splits

**2** Loops or waits

**1** Service it connects to

## The flow

Model 3 Logic 10 Service 8

The steps in the order they run, from what starts it.

- 1 **New Email Received** Email Read Imap *Service*
- 2 **/scrape in Firecrawl** Firecrawl Tool *Service*
- 3 **OpenRouter Chat Model** Lm Chat Open Router *Model*
- 4 **SerpAPI** Tool Serp Api *Model*
- 5 **Set Company Config** Set *Logic*
- 6 **AI Document Assistant** Agent *Model*
- 7 **Extract & Split PDFs** Code *Logic*
- 8 **Prepare Render Payload** Code *Logic*
- 9 **Has PDFs?** If *Logic*
- 10 **Render Branded PDF** Autype *Service*
- 11 **Loop Over PDFs** Split In Batches *Logic*
- 12 **Prepare Text Only** Code *Logic*
- 13 **Send Report via Email** Email Send *Service*
- 14 **Combine All OCR Results** Code *Logic*
- 15 **Upload PDF to Autype** Autype *Service*
- 16 **Download Markdown Syntax** Http Request *Service*
- 17 **Autype Lens OCR** Http Request *Service*
- 18 **Merge Context** Code *Logic*
- 19 **Wait for OCR** Wait *Logic*
- 20 **Poll OCR Status** Http Request *Service*
- 21 **Extract OCR Text** Code *Logic*

## How it's built

- **Starts on:** An arriving email
- **Steps:** 21, with 1 branch, 2 loops or waits
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** Email
- **Model:** OpenRouter

## Questions

What does it need to run?

An n8n account, plus your own Email account, and a key for OpenRouter. You connect your own accounts after importing it; none are included.

What starts it?

It starts on an arriving email.

Does it use AI?

Yes. It calls OpenRouter. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Take your time. At 21 steps it is large: read it before trusting it with anything live.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

**Before you run it**

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 21 steps before you point it at anything that matters.

## Run it in n8n

- **Create your n8n account** Free to start. n8n is where the workflow runs. [Create an n8n account ↗](https://millionrounds.com/n8n)
- **Download the workflow** Free with a Millionrounds account. [Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fgenerate-branded-pdf-reports-from-incoming-emails-with-autyp)
- **Paste it into n8n** Open a new workflow in n8n and paste. Then connect your own accounts.

Stored with the author's traces removed: canvas notes, instance identifiers, saved credential names and any live document they had left behind.

## Connects to

Each opens the other workflows that use it.

[Email](https://millionrounds.com/workflows?service=Email#library)

## Workflows like it

Also research and reporting, with the same services where possible, closest in size first.

- [**Audit AI decisions and route risks with OpenAI and Slack** 22 steps · calls a model · Email, Slack](https://millionrounds.com/workflow/audit-ai-decisions-and-route-risks-with-openai-and-slack)
- [**Automate satellite data analysis and regulatory reporting** 22 steps · calls a model · Email, Postgres](https://millionrounds.com/workflow/automate-satellite-data-analysis-and-regulatory-reporting)
- [**Effortless email management with DeepSeek and OpenAI** 22 steps · calls a model · Email, Gmail](https://millionrounds.com/workflow/effortless-email-management-with-deepseek-and-openai)
- [**Watch brand edits on Wikipedia and Wikidata with OpenAI** 20 steps · calls a model · Email, n8n data table](https://millionrounds.com/workflow/watch-brand-edits-on-wikipedia-and-wikidata-with-openai)
- [**AI-powered vulnerability scanner with Nessus and Google Sheets** 22 steps · Email, Google Sheets](https://millionrounds.com/workflow/ai-powered-vulnerability-scanner-with-nessus-and-google-shee)
- [**AI-powered email automation for business: Summarize & respond** 23 steps · calls a model · Email, Google Drive](https://millionrounds.com/workflow/ai-powered-email-automation-for-business-summarize-and-respo)
