📩 Automated email management system with GPT-5, multi-agent AI & Pinecone DB
Ready for 3.0What this workflow does
This AI workflow has 34 nodes and runs on Gmail events. Along the way it connects Gmail, Embeddings OpenAI, Pinecone Vector Store and OpenRouter Chat Model and 1 more.
How it runs
Trigger: On Gmail events.
- Inbox Router (Text Classifier): classifies text into categories with AI, with model: GPT 5 mini
- Customer Support Agent (AI Agent): runs an AI agent, with model: GPT 4o mini; 1 tool (Database of FAQs and Policies)
- Finance Agent (AI Agent): runs an AI agent, with model: GPT 4o mini; 1 tool (Label as Finance); output parser: OutputFormat
- Leads Agent (AI Agent): runs an AI agent, with model: GPT 4o mini; 2 tools (Label as Sales Opportunities, Database of Business Services); output parser: Output Format
- Internal Agent (AI Agent): runs an AI agent, with model: GPT 4o mini; 1 tool (Label as Internal); output parser: Output Format
- Reply Email (Gmail): reply
- Route by Email Type (Switch): routes items into 2 branches
- Needs Review? (If): checks a condition and branches into true / false
- Send a summary of email and from who (Telegram): uses Telegram
- Label as Customer Support (Gmail): add labels
…plus 7 more steps. See the full node list below.
Services it uses
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 (13)
- Gmail Trigger
n8n-nodes-base.gmailTrigger - No Operation, do nothing
n8n-nodes-base.noOp - Embeddings OpenAI
@n8n/n8n-nodes-langchain.embeddingsOpenAi - Gmail
n8n-nodes-base.gmail - AI Agent
@n8n/n8n-nodes-langchain.agent - Gmail Tool
n8n-nodes-base.gmailTool - Pinecone Vector Store
@n8n/n8n-nodes-langchain.vectorStorePinecone - If
n8n-nodes-base.if - OpenRouter Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenRouter - Text Classifier
@n8n/n8n-nodes-langchain.textClassifier - Switch
n8n-nodes-base.switch - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Telegram
n8n-nodes-base.telegram
From the author
Categorise and route emails with GPT 5 This workflow demonstrates how to use AI text classifier to classify incoming emails, and uses a multi-agent architecture to respond for each email category respectively. Use cases Business owners with a lot of incoming…