🎓 How to transform unstructured email data into structured format with AI agent
Ready for 3.0What 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).
- Parsing Agent (AI Agent): runs an AI agent, with model: OpenAI Chat Model; output parser: Structured Output Parser
- Email Agent (AI Agent): runs an AI agent, with model: Google Gemini Chat Model; 1 tool (Emails)
- Insert row (Data table): uses Data table
Services it uses
Other OpenAI + Gmail templates (1,623) · Other Google Gemini + Gmail templates (518) · Other OpenAI + Google Gemini templates (249)
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)
- Gmail Trigger
n8n-nodes-base.gmailTrigger - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Data table
n8n-nodes-base.dataTable - Email Trigger (IMAP)
n8n-nodes-base.emailReadImap - Microsoft Outlook Trigger
n8n-nodes-base.microsoftOutlookTrigger - AI Agent
@n8n/n8n-nodes-langchain.agent - Chat Trigger
@n8n/n8n-nodes-langchain.chatTrigger - Data Table Tool
n8n-nodes-base.dataTableTool - Google Gemini Chat Model
@n8n/n8n-nodes-langchain.lmChatGoogleGemini
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…