Automate Gmail labeling with Gemini AI & build InfraNodus knowledge graph with Telegram alerts
Ready for 3.0What this workflow does
This AI workflow has 18 nodes and runs on Gmail events. Along the way it connects Gmail, OpenAI Chat Model, Telegram and Google Gemini Chat Model. It also calls infranodus.com over HTTP.
How it runs
Trigger: On Gmail events.
- Text Classifier: classifies text into categories with AI, with model: Google Gemini Chat Model
- Label as Business (Gmail): add labels
- Label as Personal (Gmail): add labels
- Label as Appointments (Gmail): add labels
- Label as Urgent (Gmail): add labels
- Label as Invoices (Gmail): add labels
- Clean html and organize into statements (Code): runs custom JavaScript code
- Aggregate: combines items into one
- InfraNodus Save to Graph (HTTP Request): calls infranodus.com (POST)
- Get Label's Name in Gmail (Gmail): get (label)
…plus 6 more steps. See the full node list below.
Services it uses
HTTP calls to: infranodus.com
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.
- Still check Gmail Trigger below v1.4 runs as v1.4 (drafts skipped, max emails per poll) (Gmail Trigger).
Nodes used (10)
- Gmail Trigger
n8n-nodes-base.gmailTrigger - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Gmail
n8n-nodes-base.gmail - Aggregate
n8n-nodes-base.aggregate - HTTP Request
n8n-nodes-base.httpRequest - Wait
n8n-nodes-base.wait - Code
n8n-nodes-base.code - Telegram
n8n-nodes-base.telegram - Google Gemini Chat Model
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - Text Classifier
@n8n/n8n-nodes-langchain.textClassifier
From the author
Automated Gmail Labeling and Brainstorming This template can be used to automatically label your incoming Gmail messages with AI and to build a knowledge graph from the emails tagged with a specific label to brainstorm new ideas based on them. You can also…