⚡ Generate visual summary & knowledge graph insights for your email

1,213 views · ⚡ Personal Productivity

Description

The Ultimate Gmail Analysis and Visual Summarization Template

This workflow showcases various useful Gmail search, filter, and AI categorization operations and generates a knowledge graph for your mail using the InfraNodus GraphRAG API, which you can use to reveal the main topics and blind spots in your correspondence.

InfraNodus will then target those blind spots to generate interesting research questions for you and send the topical summary and insights via Telegram. You can also click the generated graph and explore the blind spots inside InfraNodus using the interactive visual interface:

InfraNodus structural gap

What is it useful for?

How it works

This template can be triggered in multiple ways:

When you start the workflow, you specify:

Once you set up your search parameters in Steps 1 and 2, the template will follow the following steps:

  1. Step 3 — retrieve Google emails that satisfy your filter criteria. Filter them by additional labels provided if applicable.
  2. Step 4 - if the user chooses to analyze full text, use additional Gmail node that retrieves the full text of the email message
  3. Step 5 — if AI filter rule is provided, use the AI Classifier node with Google Gemini Pro 2.5 model to classify the email based on the rule provided. Bypass if empty.
  4. Step 6 - format the text or the email snippets to add the sender meta-data and category and to prepare to submit to InfraNodus
  5. Step 7 - submit the data to the InfraNodus HTTP graphAndEntries endpoint and generate a knowledge graph
  6. Step 8 - access this graph via the graphAndAdvice endpoint and generate a topical summary based on the GraphRAG representation and insight questions bridging the gaps identified. Send the results via a Telegram bot.

We use Telegram, because it takes only 30 seconds to set up a bot with an API, 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 to use this workflow.

Requirements

FAQ

1. What’s the best search query to use?

I personally like starting with analyzing the messages Gmail tags as “personal” from the last week (using the after:2025/05/28 label:personal search query) using the social graph settings. It helps me see who I interacted with, what it was about, and gives me a good bird’s eye view into my last week’s interactions, helping me see if I didn’t miss anything.

I also find it useful to analyze the sent messages (using the after:2025/05/28 label:sent search filter or SENT category filter) as it helps me see what I was writing about recently and understand some recurrent topics and gaps in my interactions.

Finally, I also like to analyze notes (label:notes) or specific correspondence (from:your_friend@gmail.com) to get an overview and find gaps in the conversations.

2. Why use InfraNodus and not an AI summarization module?

You probably get a lot of spam, so your AI will get overwhelmed with the content that’s not really useful. The InfraNodus graph helps you see the important patterns and discover what’s missing by focusing on the gaps. You can use the interactive graph to quickly remove the stuff you don’t need and to focus on the most relevant topics and conversations.

Customizing this workflow

You can connect a Gmail node instead of the Telegram one if you prefer to receive notifications directly by email. I don’t like using Slack and Discord because their bots are too difficult to set up and take too long.

Check out the complete setup guide for this workflow at https://support.noduslabs.com/hc/en-us/articles/20394884531996-Build-a-Knowledge-Graph-and-Extract-Insights-from-Gmail-Emails-with-n8n-and-InfraNodus with a video tutorial coming soon and the links to other n8n workflows.

Check our other n8n workflows at https://n8n.io/creators/infranodus/ for useful content gap analysis, expert panel, and marketing, and research workflows that utilize GraphRAG for better AI generation.

Finally, check out https://infranodus.com to learn more about our network analysis technology used to build knowledge graphs from text.

🔗 Nodes Used

HTTP Request, Telegram, Gmail, Schedule Trigger, Filter, n8n Form Trigger

📥 Import

Download workflow.json and import into n8n: Workflow menu → Import from File

📖 Importing guide · 🔑 Credential setup