GenAiHub

Last checked 8 October 2026 — responded normally.

Label incoming Gmail messages with Google Gemini and Telegram alerts

Quick overview

Live
Open / InstallLast updated October 8, 2026

Description

Quick overview This workflow polls Gmail for new emails, uses Google Gemini via an n8n AI text classifier to categorize each message by subject and snippet, and automatically applies the matching Gmail label, sending a Telegram alert if classification errors occur. How it works Checks Gmail every minute for new emails using the Gmail Trigger. Sends the email subject and snippet to a Google Gemini-powered text classifier to assign a category (Personal, Job, Study Related, Bank, Social, OTP, or Misc). Adds the corresponding Gmail label to the message in Gmail based on the predicted category. Sends a Telegram message to the configured chat ID if the classifier step produces an error. Setup Connect your Gmail account using Gmail OAuth2 and ensure the trigger has access to the mailbox you want to label. Add a Google Gemini (PaLM) API key credential for the AI classification step. Create (or choose) the target Gmail labels and replace the label IDs in each “addLabels” action with your own. Add Telegram bot credentials and set the correct chat ID in the Telegram message step (or disable it if you don’t want error alerts). An n8n automation workflow template by Yuvraj Soni.

Community Metrics

Views
6
Avg Rating
N/A
Ratings
0
Likes
0
Comments
—

Author

Yuvraj Soni

Platform

web

Pricing model

free

Categories

  • Automation
  • AI

Tags

  • n8n
  • workflow
  • telegram
  • gmail
  • google-gemini-chat-model
  • text-classifier

Capabilities

  • 4 nodes
  • 6 views

Information

TypeWorkflow
Sourcen8n
AddedJuly 27, 2026

Comments

?

Others in the same category, ranked by how often they are opened.