Parse & track orders from email with Gemini/GPT & Notion database sync
Ready for 3.0What this workflow does
This AI workflow has 13 nodes and runs on Gmail events. Along the way it connects Gmail, Google Gemini Chat Model, OpenAI Chat Model and Notion.
How it runs
Trigger: On Gmail events.
- Check Email Type (Code): runs custom JavaScript code
- Email Router (If): checks a condition and branches into true / false
- Email Classification and Extraction Agent (AI Agent): runs an AI agent, with model: OpenAI Chat Model, Google Gemini Chat Model; output parser: Structured Output Parser
- Order Database Sync Agent (AI Agent): runs an AI agent, with model: OpenAI Chat Model, Google Gemini Chat Model; 3 tools (Search a page in Notion, Create a database page in Notion, Update a database page in Notion)
- Send a message (Gmail): uses Gmail
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 - Google Gemini Chat Model
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Notion Tool
n8n-nodes-base.notionTool - Gmail
n8n-nodes-base.gmail - AI Agent
@n8n/n8n-nodes-langchain.agent - Code
n8n-nodes-base.code - No Operation, do nothing
n8n-nodes-base.noOp - If
n8n-nodes-base.if
From the author
Automated Email Order Tracking System with AI Classification and Notion Sync Overview ⚠️ Self-Hosted Solution Required This workflow requires a self-hosted n8n instance with active integrations for Gmail, Google Gemini AI, OpenAI, and Notion. API credentials…