Ai-powered email triage & auto-response system with OpenAI agents & Gmail
Ready for 3.0What this workflow does
This AI workflow has 63 nodes and runs manually, when you click “Execute workflow” (plus 5 other triggers). Along the way it connects OpenAI, Gmail, OpenAI Chat Model and Telegram and 6 more. It also calls databases-9a9bu5g.svc.aped-4627-b74a.pinecone.io over HTTP.
How it runs
Trigger: Manually, when you click “Execute workflow” (plus 5 other triggers).
- Message a model (OpenAI): uses OpenAI
- Edit Fields (Edit Fields (Set)): sets 4 fields: file_id, file_type, file_name…
- Notification clasifier (AI Agent): runs an AI agent, with model: Google Gemini Chat Model
- Text Classifier: classifies text into categories with AI, with model: OpenAI Chat Model
- Workflow Error Message (Telegram): uses Telegram
- Send a message (Gmail): uses Gmail
- Delete Duplicated (HTTP Request): calls databases-9a9bu5g.svc.aped-4627-b74a.pinecone.io (POST)
- Add Label: Internal (Gmail): add labels
- Add Label: Customer Support (Gmail): add labels
- Add Label: Promotions (Gmail): add labels
…plus 32 more steps. See the full node list below.
Services it uses
HTTP calls to: databases-9a9bu5g.svc.aped-4627-b74a.pinecone.io
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 Trigger1, Gmail Trigger2).
Nodes used (22)
- Manual Trigger
n8n-nodes-base.manualTrigger - OpenAI
@n8n/n8n-nodes-langchain.openAi - Gmail
n8n-nodes-base.gmail - Text Classifier
@n8n/n8n-nodes-langchain.textClassifier - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - If
n8n-nodes-base.if - Gmail Trigger
n8n-nodes-base.gmailTrigger - Telegram
n8n-nodes-base.telegram - AI Agent
@n8n/n8n-nodes-langchain.agent - Google Gemini Chat Model
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - OpenRouter Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenRouter - Google Drive Trigger
n8n-nodes-base.googleDriveTrigger - HTTP Request
n8n-nodes-base.httpRequest - Google Drive
n8n-nodes-base.googleDrive - Pinecone Vector Store
@n8n/n8n-nodes-langchain.vectorStorePinecone - Embeddings OpenAI
@n8n/n8n-nodes-langchain.embeddingsOpenAi - Default Data Loader
@n8n/n8n-nodes-langchain.documentDefaultDataLoader - Recursive Character Text Splitter
@n8n/n8n-nodes-langchain.textSplitterRecursiveCharacterTextSplitter - Edit Fields (Set)
n8n-nodes-base.set - Google Sheets
n8n-nodes-base.googleSheets - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Error Trigger
n8n-nodes-base.errorTrigger
From the author
AI Email Dispatcher: Classify, Process, and Route Emails with Multiple Agents This n8n template automatically classifies incoming emails (Sales, Support, Internal, Finance, Promotions) and routes them to a dedicated OpenAI LLM Agent for processing. Depending…