# AI email analyzer: Process PDFs, images & save: n8n workflow

> Started by an arriving email, and works across Email, Google Drive, Google Sheets and Telegram. It hands the judgement calls to OpenAI and OpenRouter.

Source: https://millionrounds.com/workflow/ai-email-analyzer-process-pdfs-images-and-save (Millionrounds; every figure on the page links to its filing or article)

[Automation library](https://millionrounds.com/workflows) · [Chat assistants](https://millionrounds.com/workflows?category=Chat+assistants#library)

# AI email analyzer: Process PDFs, images & save

Started by an arriving email, and works across Email, Google Drive, Google Sheets and Telegram. It hands the judgement calls to OpenAI and OpenRouter. 25 steps, 2 branches: large, and worth reading before you trust it with anything live.

Large Calls a model: OpenAI, OpenRouter

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fai-email-analyzer-process-pdfs-images-and-save)

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

**2** Branches: places the flow splits

**0** Loops or waits

**4** Services it connects to

## The flow

Model 8 Logic 10 Service 7

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

- 1 **Email Trigger (IMAP)** Email Read Imap *Service*
- 2 **DeepSeek R1** Lm Chat Open Ai *Model*
- 3 **Structured Output Parser** Output Parser Structured *Model*
- 4 **OpenRouter Chat Model1** Lm Chat Open Router *Model*
- 5 **Gemini 2.0 Flash** Lm Chat Open Router *Model*
- 6 **Contain attachments?** If *Logic*
- 7 **Email Summarization Chain** Chain Summarization *Model*
- 8 **PDF Analyzer** Chain Llm *Model*
- 9 **Create final summary** Chain Llm *Model*
- 10 **Get PDF and images attachments** Code *Logic*
- 11 **Convert text** Markdown *Logic*
- 12 **Save summary text** Google Sheets *Service*
- 13 **Email summary** Set *Logic*
- 14 **Save summary PDF** Google Sheets *Service*
- 15 **Split Out** Split Out *Logic*
- 16 **Send final summary** Telegram *Service*
- 17 **Switch** Switch *Logic*
- 18 **All summaries** Merge *Logic*
- 19 **Upload attachments** Google Drive *Service*
- 20 **Extract from PDF** Extract From File *Service*
- 21 **Analyze image** Open Ai *Model*
- 22 **Parsing** Code *Logic*
- 23 **Save summary image** Google Sheets *Service*
- 24 **Map image summaries** Set *Logic*
- 25 **Aggregate** Aggregate *Logic*

## How it's built

- **Starts on:** An arriving email
- **Steps:** 25, with 2 branches
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** Email, Google Drive, Google Sheets, Telegram
- **Model:** OpenAI, OpenRouter

## Questions

What does it need to run?

An n8n account, plus your own Email, Google Drive, Google Sheets and Telegram accounts, and a key for OpenAI and 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 OpenAI and OpenRouter. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Take your time. At 25 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 25 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%2Fai-email-analyzer-process-pdfs-images-and-save)
- **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)[Google Drive](https://millionrounds.com/workflows?service=Google+Drive#library)[Google Sheets](https://millionrounds.com/workflows?service=Google+Sheets#library)[Telegram](https://millionrounds.com/workflows?service=Telegram#library)

## Workflows like it

Also chat assistants, with the same services where possible, closest in size first.

- [**AI email triage and smart auto-responder with OpenAI and Gmail** 25 steps · calls a model · Email, Gmail](https://millionrounds.com/workflow/ai-email-triage-and-smart-auto-responder-with-openai-and-gma-2)
- [**AI email triage and smart auto-responder with OpenAI and Gmail** 25 steps · calls a model · Email, Gmail](https://millionrounds.com/workflow/ai-email-triage-and-smart-auto-responder-with-openai-and-gma)
- [**AI email triage and smart auto-responder with OpenAI and Gmail** 25 steps · calls a model · Email, Gmail](https://millionrounds.com/workflow/ai-email-triage-and-smart-auto-responder-with-openai-and-gma-3)
- [**Analyze legislative policies and route compliance actions** 25 steps · calls a model · Google Sheets, Slack](https://millionrounds.com/workflow/analyze-legislative-policies-and-route-compliance-actions)
- [**Chat bot sst tts with Gemini and Google Drive** 25 steps · calls a model · Google Drive, Postgres](https://millionrounds.com/workflow/chat-bot-sst-tts-with-gemini-and-google-drive)
- [**Design UI screens from chat with Google Stitch and Gemini** 25 steps · calls a model · Google Sheets, Telegram](https://millionrounds.com/workflow/design-ui-screens-from-chat-with-google-stitch-and-gemini)
