Automate Gmail Labeling with Gemini AI & Build InfraNodus Knowledge Graph with Telegram Alerts - n8n Workflow | Neura Market

    Automate Gmail Labeling with Gemini AI & Build InfraNodus Knowledge Graph with Telegram Alerts

    ## 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 **get notified about the emails with the most important labels via Telegram** as well as receive new ideas as you are building a knowledge graph of incoming messages. The idea generation is based on the **[InfraNodus knowledge graph](https://infranodus.com) content gap detection algorithm**, which builds a network from your content and then finds a blind spot and uses AI to generate an interesting research question or idea that can be used to bridge this gap. ![InfraNodus structural gap](https://infranodus.com/images/front/infranodus-structural-gaps-ideas@2x.jpg) ## Why it works so well? Think of all the business emails you receive that bypass the spam filters. Probably, they are personalized to you already. Now imagine if you build a knowledge graph from them for over a month. You will then **have an ideation device based on your interests and marketing profile**. Now, if you identify the gaps inside and generate interesting research questions based on them, you will **come up with new interesting ideas** that will be **relevant** (because they touch on the topics that matter to you), but **novel**, because they bridge them in new ways. ## What is it useful for? - **Automate Gmail incoming message labeling** with the new Classifier n8n node - much more advanced than the default Gmail labeling rules. - Get **notified via Telegram** (or a messenger of your choice) about the most important messages and **be sure not to miss anything important**. - Keep the messages with a certain label saved into a **knowledge graph** for brainstorming and ideation. - Every time a new message of this category comes in, it's added into the graph, changing its structure, a **new idea** is generated. So instead of looking at each specific offer, you now use them to generate **insights** for you. ## How it works - Step 1: This template is triggered automatically when a new Gmail message arrives. *Note: you need to connect your Gmail account here in this node* - Step 2: We use the new n8n AI Classifier Node to classify your email based on its content. You might need to update to n8n 1.94 version to make it work. *Note: we like to use Gemini AI for that classifier as it's the same company as Gmail, so should be safe with data* - Step 3: After classifying the message, we label the message with the appropriate label. *Note: you need to create the labels before in your Gmail account* - Step 4: For a certain category (e.g., Business) you format the message and save it into your InfraNodus graph. *Note: specify your [InfraNodus API](https://infranodus.com/api-access) here and choose the name of the graph. It will use the [InfraNodus API `graphAndEntries` endpoint](https://support.noduslabs.com/hc/en-us/articles/13605983537692-InfraNodus-API-Access-Points) and save your data to an InfraNodus graph. By default, we save the text knowledge graph using the `contextSettings` parameters (it will only build a text graph of the content), but you can take an alternative setting from this InfraNodus API nodes settings and create a social knowledge graph, that will also show email senders in the graph itself.* - Step 5 (optional): Generate an interesting insight question with the [`graphAndAdvice` endpoint](https://support.noduslabs.com/hc/en-us/articles/13605983537692-InfraNodus-API-Access-Points) of InfraNodus. - Step 6 (optional): Then send this insight via Telegram to a chat. - Step 7 (optional): Link some important labels to the second Telegram notification node, so you receive important messages for specified labels. - Step 8 (optional): Send a Telegram notification. We use Telegram, because it takes only 30 seconds to set up a bot with an API (send `/newbot` to [@botfather](https://t.me/botfather)), unlike Discord or Slack, which is long and cumbersome to set up. You can also attach a Gmail send node and generate an email instead. ## How to use You need an [InfraNodus GraphRAG API account and key](https://infranodus.com/use-case/ai-knowledge-graphs) to use this workflow. - Create an [InfraNodus](https://infranodus.com) account or log in. - Get the API key at [https://infranodus.com/api-access](https://infranodus.com/api-access) and create a Bearer authorization key for the InfraNodus API nodes. - Add this Authorization code in Steps 4 and 5 of the workflow. - Come up with the name of the graph and change it in the API InfraNodus nodes in the steps 4 and 5 and also in the Telegram node in Step 6 that sends a link to the graph. - For additional text processing / idea generation settings you can use in the API InfraNodus nodes, see the [InfraNodus access points](https://support.noduslabs.com/hc/en-us/articles/13605983537692-InfraNodus-API-Access-Points).

    Platform
    n8n
    Category
    AI
    Price
    Free
    Creator
    InfraNodus
    • AI
    • Productivity
    • Support
    • code
    • wait
    • gmail
    • telegram
    • aggregate
    • stickyNote
    • httpRequest
    Back to MarketplaceMore n8n Workflows

    How to import this workflow into n8n

    1. 1Purchase or download the workflow to get the n8n workflow JSON file.
    2. 2In your n8n instance, open Workflows and choose "Import from File" (or paste the JSON with Ctrl+V on the canvas).
    3. 3Open each node marked with a credential warning and connect your own accounts and API keys.
    4. 4Run the workflow once manually to verify the data flow, then toggle it to Active.

    Related AI workflows

    • Launch Your First AI-Powered Chatbot with Actionable ToolsFree
    • Automate AI Video Creation and YouTube Upload with Google Sheets
    Free
  1. Build a WhatsApp Assistant with Memory, Google Suite, Multi-AI, Research, and ImagingFree
  2. Automate Blog Post Creation and Publishing with GPT, Leonardo AI, and WordPressFree
  3. Email Agent$500.99
  4. Create a Conversational Telegram Bot with GPT-4 for Text and Voice MessagesFree
  5. More from InfraNodus

    • Generate Content Ideas from PDFs with InfraNodus GraphRAG and AI Gap Analysis
    • Upload Google Drive Files to an InfraNodus Graph
    • Generate Visual Summary & Knowledge Graph Insights for Your Email
    All AI workflows →All n8n workflows →

    Need help customizing this workflow?

    Our automation experts adapt it to your exact stack, data, and process — or build one from scratch.

    Get a Custom Build
    Neura Market
    Neura Market
    Marketplace
    Directories
    Resources

    Marketplace

    • Prompts
    • Workflows
    • Agents Store
    • Workflow Packs
    • Categories
    • Marketplace

    Directories

    • AI Tools Directory
    • ChatGPT
    • Claude
    • Gemini
    • Cursor
    • Grok
    • DeepSeek
    • Perplexity
    • CoPilot
    • Midjourney
    • Stable Diffusion
    • MCP Servers
    • .md Directory
    • All Directories

    Free Tools

    • AI Text Humanizer
    • AI Content Detector
    • Workflow Generator
    • Model Comparison
    • AI Pricing Calculator
    • AI Benchmarks
    • ROI Calculator
    • All Free Tools

    Resources

    • AI News
    • Blog
    • AI Models
    • Integrations
    • Alternatives
    • n8n vs Zapier
    • Make vs Zapier
    • n8n vs Make
    • Resource Library
    • Documentation

    Community

    • AI Jobs
    • AI Events
    • AI Companies
    • Start Selling
    • Sell n8n Workflows
    • Sell AI Agents
    • Sell Prompts
    • Creator Guide
    • Advertise
    • Affiliates

    Company

    • About
    • Contact
    • Help
    • Careers
    • Pricing
    • Terms
    • Privacy
    • License
    • DMCA

    Stay Updated

    Get the latest AI tools and insights delivered to your inbox.

    Neura Market Logoneuramarket

    © 2026 Neura Market. All rights reserved.