Automation library · Research and reporting

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.

LargeCalls a model: OpenRouter

21 stepsLarge: read it before trusting it with anything live
1Branch: places the flow splits
2Loops or waits
1Service it connects to

The flow

Model 3Logic 10Service 8

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

  1. 1New Email ReceivedEmail Read ImapService
  2. 2/scrape in FirecrawlFirecrawl ToolService
  3. 3OpenRouter Chat ModelLm Chat Open RouterModel
  4. 4SerpAPITool Serp ApiModel
  5. 5Set Company ConfigSetLogic
  6. 6AI Document AssistantAgentModel
  7. 7Extract & Split PDFsCodeLogic
  8. 8Prepare Render PayloadCodeLogic
  9. 9Has PDFs?IfLogic
  10. 10Render Branded PDFAutypeService
  11. 11Loop Over PDFsSplit In BatchesLogic
  12. 12Prepare Text OnlyCodeLogic
  13. 13Send Report via EmailEmail SendService
  14. 14Combine All OCR ResultsCodeLogic
  15. 15Upload PDF to AutypeAutypeService
  16. 16Download Markdown SyntaxHttp RequestService
  17. 17Autype Lens OCRHttp RequestService
  18. 18Merge ContextCodeLogic
  19. 19Wait for OCRWaitLogic
  20. 20Poll OCR StatusHttp RequestService
  21. 21Extract OCR TextCodeLogic

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.