# AI based data analysis, data visualization and data report: n8n workflow

> Started by an event in a connected app, and works across Gmail, Google Sheets and MySQL. 17 steps: a working afternoon to understand properly.

Source: https://millionrounds.com/workflow/ai-based-data-analysis-data-visualization-and-data-report (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)

# AI based data analysis, data visualization and data report

Started by an event in a connected app, and works across Gmail, Google Sheets and MySQL. 17 steps: a working afternoon to understand properly.

Medium

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fai-based-data-analysis-data-visualization-and-data-report)

**17 steps** Medium: a working afternoon

**0** Branches: places the flow splits

**0** Loops or waits

**3** Services it connects to

## The flow

Starts it 1 Logic 5 Service 11

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

- 1 **Start** Manual trigger *Starts it*
- 2 **Get data from database** My Sql *Service*
- 3 **Get data from Google Sheets** Google Sheets *Service*
- 4 **Get data from local file** Read Write File *Service*
- 5 **Sample Data** Code *Logic*
- 6 **Process Data** Aggregate *Logic*
- 7 **Extract JSON from xlsx file** Extract From File *Service*
- 8 **DataVisualization** Http Request *Service*
- 9 **DataAnalysis** Http Request *Service*
- 10 **DataInterpretation** Http Request *Service*
- 11 **Process Visualization Data** Set *Logic*
- 12 **Convert markdown to HTML** Markdown *Logic*
- 13 **Convert markdown to HTML 2** Markdown *Logic*
- 14 **Convert to HTML File** Convert To File *Service*
- 15 **Send DataAnalysis message** Gmail *Service*
- 16 **Send DataInterpretation message** Gmail *Service*
- 17 **Send DataVisualization** Gmail *Service*

## How it's built

- **Starts on:** An event in a connected app
- **Steps:** 17
- **Size:** Medium: a working afternoon
- **Connects to:** Gmail, Google Sheets, MySQL
- **Model:** None. This is plumbing, not judgement

## Questions

What does it need to run?

An n8n account, plus your own Gmail, Google Sheets and MySQL accounts. You connect your own accounts after importing it; none are included.

What starts it?

It starts on an event in a connected app.

Does it use AI?

No. Every step is fixed logic or a call to a service, so it does the same thing every time.

How long does it take to set up?

Plan an afternoon. 17 steps is enough that you should read each one before running it.

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 17 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%2Fai-based-data-analysis-data-visualization-and-data-report)
- **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)[Google Sheets](https://millionrounds.com/workflows?service=Google+Sheets#library)[MySQL](https://millionrounds.com/workflows?service=MySQL#library)

## Workflows like it

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

- [**Automated PDF report downloader & organizer with Google Drive** 17 steps · Google Drive, Google Sheets](https://millionrounds.com/workflow/automated-pdf-report-downloader-and-organizer-with-google-dr)
- [**Meta ads campaign report by period – auto-send with WhatsApp** 17 steps · Gmail, Google Sheets](https://millionrounds.com/workflow/meta-ads-campaign-report-by-period-auto-send-with-whatsapp)
- [**# ⃣Nostr #damus AI powered reporting + Gmail + Telegram** 17 steps · calls a model · Gmail, Telegram](https://millionrounds.com/workflow/nostr-damus-ai-powered-reporting-gmail-telegram)
- [**AI-powered stock analysis with Gmail** 17 steps · calls a model · Gmail, Supabase vectors](https://millionrounds.com/workflow/ai-powered-stock-analysis-with-gmail)
- [**Automate Instagram profile analysis with Airtop and OpenAI** 17 steps · calls a model · Google Sheets](https://millionrounds.com/workflow/automate-instagram-profile-analysis-with-airtop-and-openai)
- [**Create weekly research brief PDFs with Brave Search** 17 steps · calls a model · Gmail, Google Drive](https://millionrounds.com/workflow/create-weekly-research-brief-pdfs-with-brave-search)
