Route and log incoming emails with GPT-4, Excel 365 and Telegram
Ready for 3.0What this workflow does
This AI workflow has 10 nodes and runs when a new email arrives over IMAP. Along the way it connects Microsoft Excel 365, Telegram and OpenAI.
How it runs
Trigger: When a new email arrives over IMAP.
- Extract Email Fields (Edit Fields (Set)): sets or maps fields
- Message a model (OpenAI): uses OpenAI
- Parse Summary (Code): runs custom JavaScript code
- Prepare Excel Row (Edit Fields (Set)): sets or maps fields
- Append rows to table (Microsoft Excel 365): uses Microsoft Excel 365
- Lookup Department (Microsoft Excel 365): uses Microsoft Excel 365
- Validate Department (If): checks a condition and branches into true / false
- Send Notification (Telegram): uses Telegram
- Send Email: sends an email over SMTP
Services it uses
Other Telegram + OpenAI templates (807) · Other Microsoft Excel + OpenAI templates (12) · Other Microsoft Excel + Telegram templates (6)
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.
Nodes used (8)
- Email Trigger (IMAP)
n8n-nodes-base.emailReadImap - Edit Fields (Set)
n8n-nodes-base.set - Code
n8n-nodes-base.code - Microsoft Excel 365
n8n-nodes-base.microsoftExcel - Send Email
n8n-nodes-base.emailSend - Telegram
n8n-nodes-base.telegram - If
n8n-nodes-base.if - OpenAI
@n8n/n8n-nodes-langchain.openAi
From the author
AI Email Analyzer with Department Routing and Excel Logging (n8n Workflow) Overview This workflow automatically analyzes incoming emails using AI, categorizes them, routes them to the appropriate department, logs the results in Excel 365, and sends…