Generate branded PDF reports from incoming emails using Autype and OpenRouter
Needs changesWhat this workflow does
This AI workflow has 21 nodes and runs when a new email arrives over IMAP. Along the way it connects OpenRouter Chat Model, SerpApi (Google Search), Autype (community) and Firecrawl (community). It also calls autype.com over HTTP.
How it runs
Trigger: When a new email arrives over IMAP.
- Set Company Config (Edit Fields (Set)): sets 3 fields: companyName, companyLogoUrl, brandColor
- Extract & Split PDFs (Code): runs custom JavaScript code
- Has PDFs? (If): checks a condition and branches into true / false
- Loop Over PDFs (Loop Over Items (Split in Batches)): loops over the items in batches
- Prepare Text Only (Code): runs custom JavaScript code
- Combine All OCR Results (Code): runs custom JavaScript code
- Upload PDF to Autype (Autype): work with file
- Download Markdown Syntax (HTTP Request): calls autype.com
- Autype Lens OCR (HTTP Request): calls an HTTP API (POST)
- Merge Context (Code): runs custom JavaScript code
…plus 7 more steps. See the full node list below.
Services it uses
HTTP calls to: autype.com
Uses Firecrawl. New users get 10% off with our link.
Before you upgrade to n8n 3.0
1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:
- SerpApi (Google Search) in SerpAPI: no direct replacement: call the SerpApi REST API with an HTTP Request tool, or use a verified community node.
Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).
| Removed in 3.0 | Replace with |
|---|---|
| SerpApi (Google Search) SerpAPI | No direct replacement: call the SerpApi REST API with an HTTP Request tool, or use a verified community node |
Nodes used (13)
- Edit Fields (Set)
n8n-nodes-base.set - Email Trigger (IMAP)
n8n-nodes-base.emailReadImap - Code
n8n-nodes-base.code - If
n8n-nodes-base.if - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - Autype
n8n-nodes-autype.autype - Wait
n8n-nodes-base.wait - HTTP Request
n8n-nodes-base.httpRequest - AI Agent
@n8n/n8n-nodes-langchain.agent - Send Email
n8n-nodes-base.emailSend - Firecrawl Tool
@mendable/n8n-nodes-firecrawl.firecrawlTool - OpenRouter Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenRouter - SerpApi (Google Search)
@n8n/n8n-nodes-langchain.toolSerpApi
From the author
⚠️ Important: This workflow uses the Autype community node and requires a self-hosted n8n instance. Send an email with a document request and optional PDF attachments. The AI assistant can summarize documents, compare multiple PDFs, draft new content, or…