Automation library · Chat assistants

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.

LargeCalls a model: OpenAI, OpenRouter

25 stepsLarge: read it before trusting it with anything live
2Branches: places the flow splits
0Loops or waits
4Services it connects to

The flow

Model 8Logic 10Service 7

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

  1. 1Email Trigger (IMAP)Email Read ImapService
  2. 2DeepSeek R1Lm Chat Open AiModel
  3. 3Structured Output ParserOutput Parser StructuredModel
  4. 4OpenRouter Chat Model1Lm Chat Open RouterModel
  5. 5Gemini 2.0 FlashLm Chat Open RouterModel
  6. 6Contain attachments?IfLogic
  7. 7Email Summarization ChainChain SummarizationModel
  8. 8PDF AnalyzerChain LlmModel
  9. 9Create final summaryChain LlmModel
  10. 10Get PDF and images attachmentsCodeLogic
  11. 11Convert textMarkdownLogic
  12. 12Save summary textGoogle SheetsService
  13. 13Email summarySetLogic
  14. 14Save summary PDFGoogle SheetsService
  15. 15Split OutSplit OutLogic
  16. 16Send final summaryTelegramService
  17. 17SwitchSwitchLogic
  18. 18All summariesMergeLogic
  19. 19Upload attachmentsGoogle DriveService
  20. 20Extract from PDFExtract From FileService
  21. 21Analyze imageOpen AiModel
  22. 22ParsingCodeLogic
  23. 23Save summary imageGoogle SheetsService
  24. 24Map image summariesSetLogic
  25. 25AggregateAggregateLogic

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.