Templates / AI email analyzer: Process PDFs, images & save to Google Drive + Telegram

AI email analyzer: Process PDFs, images & save to Google Drive + Telegram

Ready for 3.0

by Davide Boizza ✓ · 30,061 views · created 2025-03-14 · Ticket Management, AI Summarization

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 25 nodes and runs when a new email arrives over IMAP. Along the way it connects OpenAI Chat Model, OpenRouter Chat Model, Google Sheets and Google Drive and 2 more.

How it runs

Trigger: When a new email arrives over IMAP.

  1. Contain attachments? (If): checks a condition and branches into true / false
  2. Get PDF and images attachments (Code): runs custom JavaScript code
  3. Convert text (Markdown): converts between Markdown and HTML
  4. Switch: routes items into 2 branches
  5. Email Summarization Chain (Summarization Chain): summarizes text with AI, with model: DeepSeek R
  6. Upload attachments (Google Drive): uses Google Drive
  7. Extract from PDF (Extract from File): extracts data from a file (pdf)
  8. Analyze image (OpenAI): analyze (image)
  9. Save summary text (Google Sheets): append
  10. Email summary (Edit Fields (Set)): sets 1 field: content

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

Services it uses

OpenAI Chat ModelOpenRouter Chat ModelGoogle SheetsGoogle DriveTelegramOpenAI

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Nodes used (19)

From the author

This workflow automates the process of analyzing emails and their attachments (PDFs and images) using AI models (DeepSeek, Gemini, and OpenRouter). It extracts and summarizes the content of emails and attachments, saves the summaries to Google Sheets, and…

Excerpt from Davide Boizza'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.