# Generate visual summary & knowledge graph insights for your email: n8n workflow

> Started by someone submitting a form, and works across Gmail and Telegram. It hands the judgement calls to Gemini.

Source: https://millionrounds.com/workflow/generate-visual-summary-and-knowledge-graph-insights-for-you (Millionrounds; every figure on the page links to its filing or article)

[Automation library](https://millionrounds.com/workflows) · [Research and reporting](https://millionrounds.com/workflows?category=Research+and+reporting#library)

# Generate visual summary & knowledge graph insights for your email

Started by someone submitting a form, and works across Gmail and Telegram. It hands the judgement calls to Gemini. 27 steps, 6 branches, 1 loop or waits: large, and worth reading before you trust it with anything live.

Large Calls a model: Gemini

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fgenerate-visual-summary-and-knowledge-graph-insights-for-you)

**27 steps** Large: read it before trusting it with anything live

**6** Branches: places the flow splits

**1** Loop or waits

**2** Services it connects to

## The flow

Starts it 3 Model 2 Logic 13 Service 9

The steps in the order they run, from what starts it.

- 1 **Google Gemini Chat Model** Lm Chat Google Gemini *Model*
- 2 **User submits form** Form trigger *Starts it*
- 3 **When clicking ‘Test workflow’** Manual trigger *Starts it*
- 4 **Schedule Trigger** Schedule trigger *Starts it*
- 5 **Classify Emails** Text Classifier *Model*
- 6 **Assign Processing Settings** Set *Logic*
- 7 **Text field present?** If *Logic*
- 8 **Get Messages by Search Criteria** Gmail *Service*
- 9 **Aggregate from full email texts** Aggregate *Logic*
- 10 **Aggregate from email snippets** Aggregate *Logic*
- 11 **Was label provided?** If *Logic*
- 12 **Clean text and organize into statements** Code *Logic*
- 13 **Filter emails by label** Filter *Logic*
- 14 **Should analyze snippets?** If *Logic*
- 15 **Type of graph to build** Switch *Logic*
- 16 **Should analyze snippets from filtered emails?** If *Logic*
- 17 **Should use AI to filter emails further?** If *Logic*
- 18 **Get Full Message Content** Gmail *Service*
- 19 **InfraNodus Build a Social Knowledge Graph** Http Request *Service*
- 20 **InfraNodus Build a Text Knowledge Graph** Http Request *Service*
- 21 **Message text or snippet present?** Filter *Logic*
- 22 **Wait before generating questions** Wait *Logic*
- 23 **InfraNodus AI Summary & Graph Link** Http Request *Service*
- 24 **InfraNodus Question Generator** Http Request *Service*
- 25 **Send an insight question via Telegram** Telegram *Service*
- 26 **Send the graph link and summary via Telegram** Telegram *Service*
- 27 **Gmail** Gmail *Service*

## How it's built

- **Starts on:** Someone submitting a form
- **Steps:** 27, with 6 branches, 1 loop or waits
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** Gmail, Telegram
- **Model:** Gemini

## Questions

What does it need to run?

An n8n account, plus your own Gmail and Telegram accounts, and a key for Gemini. You connect your own accounts after importing it; none are included.

What starts it?

It starts on someone submitting a form.

Does it use AI?

Yes. It calls Gemini. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Take your time. At 27 steps it is large: read it before trusting it with anything live.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

**Before you run it**

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 27 steps before you point it at anything that matters.

## Run it in n8n

- **Create your n8n account** Free to start. n8n is where the workflow runs. [Create an n8n account ↗](https://millionrounds.com/n8n)
- **Download the workflow** Free with a Millionrounds account. [Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fgenerate-visual-summary-and-knowledge-graph-insights-for-you)
- **Paste it into n8n** Open a new workflow in n8n and paste. Then connect your own accounts.

Stored with the author's traces removed: canvas notes, instance identifiers, saved credential names and any live document they had left behind.

## Connects to

Each opens the other workflows that use it.

[Gmail](https://millionrounds.com/workflows?service=Gmail#library)[Telegram](https://millionrounds.com/workflows?service=Telegram#library)

## Workflows like it

Also research and reporting, with the same services where possible, closest in size first.

- [**Crypto market analysis with Chart-img and BrowserAI** 27 steps · calls a model · Telegram](https://millionrounds.com/workflow/crypto-market-analysis-with-chart-img-and-browserai)
- [**Send weekly parent progress reports with Google Sheets** 27 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/send-weekly-parent-progress-reports-with-google-sheets)
- [**Collect viral Instagram AI art with OpenAI and Telegram** 28 steps · calls a model · Apify, Google Sheets](https://millionrounds.com/workflow/collect-viral-instagram-ai-art-with-openai-and-telegram)
- [**Generate comprehensive financial reports with OpenAI and Gmail** 26 steps · calls a model · Gmail, Google Docs](https://millionrounds.com/workflow/generate-comprehensive-financial-reports-with-openai-and-gma)
- [**Generate weekly AI equity research reports with Google Sheets** 26 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/generate-weekly-ai-equity-research-reports-with-google-sheet)
- [**Stock fundamental analysis & AI-powered reports with Mistral** 28 steps · calls a model · Gmail](https://millionrounds.com/workflow/stock-fundamental-analysis-and-ai-powered-reports-with-mistr)
