Templates / Generate branded PDF reports from incoming emails using Autype and OpenRouter

Generate branded PDF reports from incoming emails using Autype and OpenRouter

Needs changes

by 8Automator ✓ · 15 views · created 2026-03-19 · Document Extraction, Multimodal AI

Needs changes. This template uses 1 thing(s) that n8n 3.0 removes: SerpApi (Google Search). 1 breaking item(s) found. Static check, last run 2026-10-19.

What 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.

  1. Set Company Config (Edit Fields (Set)): sets 3 fields: companyName, companyLogoUrl, brandColor
  2. Extract & Split PDFs (Code): runs custom JavaScript code
  3. Has PDFs? (If): checks a condition and branches into true / false
  4. Loop Over PDFs (Loop Over Items (Split in Batches)): loops over the items in batches
  5. Prepare Text Only (Code): runs custom JavaScript code
  6. Combine All OCR Results (Code): runs custom JavaScript code
  7. Upload PDF to Autype (Autype): work with file
  8. Download Markdown Syntax (HTTP Request): calls autype.com
  9. Autype Lens OCR (HTTP Request): calls an HTTP API (POST)
  10. Merge Context (Code): runs custom JavaScript code

…plus 7 more steps. See the full node list below.

Services it uses

OpenRouter Chat ModelSerpApi (Google Search)Autype (community)Firecrawl (community)

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.0Replace 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)

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…

Excerpt from 8Automator's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.