Skip to main content

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

Workflow preview

Workflow preview
100%
Categorize emails & get Telegram alerts with Azure OpenAI & Google Sheets preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

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 i...

Best for

  • Ticket Management automation workflows
  • AI Summarization automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.emailreadimap, n8n-nodes-base.telegramtrigger, n8n-nodes-base.telegram, n8n-nodes-base.noop, @n8n/n8n-nodes-langchain.agent, @n8n/n8n-nodes-langchain.lmchatazureopenai, @n8n/n8n-nodes-langchain.memorybufferwindow, n8n-nodes-base.stickynote

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Meelioo.

Original n8n.io source

1.1 Workflow description

Title
Categorize emails & get Telegram alerts with Azure OpenAI & Google Sheets
Workflow name
Categorize emails & get Telegram alerts with Azure OpenAI & Google Sheets

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 and notifies you using Telegram. It's fully customizable so you can change, add categoies and continue each data flow separately.

  • E-Mails can hold pretty important information. But one can forget to check-up or rather not prefer to do so. This workflow keeps you updated of what's most important to you. Not only that, you can always talk to the bot to checkup on E-Mails you've missed.

Set Up Overview

  • IMAP E-Mail Trigger: You can switch to a Gmail node aswell.

  • Google Sheets: Google Sheets is easy to use so I recommend you to keep it.

  • AI Model: Use any model of your preferance. As long as it is smart and uses less tokens.

  • Telegram: Refer to documentation to understand how to create a bot.

    > There is no correct line of setting up these credentials, as the workflow needs all to work; as long as you don't change the logic of the workflow.

Note

Please refer to the sticky notes in the workflow for a clear guide on setup, workflow description etc. If you need any help or need a hand, you can always message me. >https://community.n8n.io/u/mookie_lian

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Email Trigger (IMAP)

Type / Role
n8n-nodes-base.emailReadImap - emailReadImap
Config choices
Version 2.1

Block 2 - Telegram Trigger

Type / Role
n8n-nodes-base.telegramTrigger - telegramTrigger
Config choices
Version 1.2

Block 3 - Send Security Message

Type / Role
n8n-nodes-base.telegram - telegram
Config choices
Version 1.2

Block 4 - Like im young again

Type / Role
n8n-nodes-base.noOp - noOp
Config choices
Version 1

Block 5 - Send Reply Message

Type / Role
n8n-nodes-base.telegram - telegram
Config choices
Version 1.2

Block 6 - Send Personal Message

Type / Role
n8n-nodes-base.telegram - telegram
Config choices
Version 1.2

Block 7 - Nothing will change

Type / Role
n8n-nodes-base.noOp - noOp
Config choices
Version 1

Block 8 - AI Agent

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 2.1

Block 9 - Reply To User

Type / Role
n8n-nodes-base.telegram - telegram
Config choices
Version 1.2

Block 10 - Azure OpenAI Agent

Type / Role
@n8n/n8n-nodes-langchain.lmChatAzureOpenAi - lmChatAzureOpenAi
Config choices
Version 1

Block 11 - Azure OpenAI Classifier

Type / Role
@n8n/n8n-nodes-langchain.lmChatAzureOpenAi - lmChatAzureOpenAi
Config choices
Version 1

Block 12 - Memory

Type / Role
@n8n/n8n-nodes-langchain.memoryBufferWindow - memoryBufferWindow
Config choices
Version 1.3

Block 13 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 14 - Get E-Mails

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.6

Block 15 - If Null

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 16 - Nothing

Type / Role
n8n-nodes-base.noOp - noOp
Config choices
Version 1

Block 17 - Update Status

Type / Role
n8n-nodes-base.googleSheetsTool - googleSheetsTool
Config choices
Version 4.6

Block 18 - Append Mail Details

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.6

Block 19 - Append User ID

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.6

Block 20 - Get User ID

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.6

Block 21 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 22 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 23 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 24 - Set Rows as Data

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Showing the first 24 of 27 workflow blocks. Download the JSON for the full node graph.

3. Summary Table

Workflow Categorize emails & get Telegram alerts with Azure OpenAI & Google Sheets
Complexity advanced
Nodes 27
Categories Ticket Management, AI Summarization
Author Meelioo
Published 31 Jul 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/6736/6736.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Categorize emails & get Telegram alerts with Azure OpenAI & Google Sheets do?

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 i...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Ticket Management, AI Summarization use case.