Categorize emails & get Telegram alerts with Azure OpenAI & Google Sheets
Ready for 3.0What this workflow does
This AI workflow has 23 nodes and runs when a new email arrives over IMAP (plus 1 other trigger). Along the way it connects Telegram, Azure OpenAI Chat Model and Google Sheets.
How it runs
Trigger: When a new email arrives over IMAP (plus 1 other trigger).
- Get User ID (Google Sheets): uses Google Sheets
- Get E-Mails (Google Sheets): uses Google Sheets
- Append User ID (Google Sheets): append or update
- Mail Information (Edit Fields (Set)): sets 4 fields: Sender, subject, date…
- Aggregate: combines items into one
- If: checks a condition and branches into true / false
- Set Rows as Data (Edit Fields (Set)): sets 1 field: data
- E-Mail Text Classifier (Text Classifier): classifies text into categories with AI, with model: Azure OpenAI Classifier
- AI Agent: runs an AI agent, with model: Azure OpenAI Agent; 1 tool (Update Status); memory: Memory
- Send Security Message (Telegram): uses Telegram
…plus 4 more steps. See the full node list below.
Services it uses
Other Telegram + Google Sheets templates (674) · Other Google Sheets + Azure OpenAI templates (88) · Other Telegram + Azure OpenAI templates (15)
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 (13)
- Email Trigger (IMAP)
n8n-nodes-base.emailReadImap - Telegram Trigger
n8n-nodes-base.telegramTrigger - Telegram
n8n-nodes-base.telegram - No Operation, do nothing
n8n-nodes-base.noOp - AI Agent
@n8n/n8n-nodes-langchain.agent - Azure OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatAzureOpenAi - Simple Memory
@n8n/n8n-nodes-langchain.memoryBufferWindow - Google Sheets
n8n-nodes-base.googleSheets - If
n8n-nodes-base.if - Google Sheets Tool
n8n-nodes-base.googleSheetsTool - Edit Fields (Set)
n8n-nodes-base.set - Aggregate
n8n-nodes-base.aggregate - Text Classifier
@n8n/n8n-nodes-langchain.textClassifier
From the author
This workflow contains community nodes that are only compatible with the self-hosted version of n8n. Understanding This Workflow - In simple terms, this workflow triggers when you receive an e-mail in your inbox; classifies this e-mail based on the subject…