Templates / Categorize emails & get Telegram alerts with Azure OpenAI & Google Sheets

Categorize emails & get Telegram alerts with Azure OpenAI & Google Sheets

Ready for 3.0

by Meelioo ✓ · 667 views · created 2025-07-31 · Ticket Management, AI Summarization

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

What 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).

  1. Get User ID (Google Sheets): uses Google Sheets
  2. Get E-Mails (Google Sheets): uses Google Sheets
  3. Append User ID (Google Sheets): append or update
  4. Mail Information (Edit Fields (Set)): sets 4 fields: Sender, subject, date…
  5. Aggregate: combines items into one
  6. If: checks a condition and branches into true / false
  7. Set Rows as Data (Edit Fields (Set)): sets 1 field: data
  8. E-Mail Text Classifier (Text Classifier): classifies text into categories with AI, with model: Azure OpenAI Classifier
  9. AI Agent: runs an AI agent, with model: Azure OpenAI Agent; 1 tool (Update Status); memory: Memory
  10. Send Security Message (Telegram): uses Telegram

…plus 4 more steps. See the full node list below.

Services it uses

TelegramAzure OpenAI Chat ModelGoogle Sheets

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)

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…

Excerpt from Meelioo's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.