Templates / 🎓 How to transform unstructured email data into structured format with AI agent

🎓 How to transform unstructured email data into structured format with AI agent

Ready for 3.0

by Davide Boizza ✓ · 3,715 views · created 2025-10-23 · Document Extraction, 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-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

What this workflow does

This AI workflow has 12 nodes and runs on Gmail events (plus 3 other triggers). Along the way it connects Gmail, OpenAI Chat Model, Microsoft Outlook and Data table and 1 more.

How it runs

Trigger: On Gmail events (plus 3 other triggers).

  1. Parsing Agent (AI Agent): runs an AI agent, with model: OpenAI Chat Model; output parser: Structured Output Parser
  2. Email Agent (AI Agent): runs an AI agent, with model: Google Gemini Chat Model; 1 tool (Emails)
  3. Insert row (Data table): uses Data table

Services it uses

GmailOpenAI Chat ModelMicrosoft OutlookData tableGoogle Gemini Chat Model

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.

  • Still check Gmail Trigger below v1.4 runs as v1.4 (drafts skipped, max emails per poll) (Gmail Trigger).

Nodes used (10)

From the author

This workflow automates the process of extracting structured, usable information from unstructured email messages across multiple platforms. It connects directly to Gmail, Outlook, and IMAP accounts, retrieves incoming emails, and sends their content to an…

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.