# n8n cheatsheet for data pipeline with Gemini and OpenAI: n8n workflow

> Started by someone submitting a form, and works across Gmail, Google Sheets, MySQL, Notion and one other. It hands the judgement calls to Gemini and OpenAI.

Source: https://millionrounds.com/workflow/n8n-cheatsheet-for-data-pipeline-with-gemini-and-openai (Millionrounds; every figure on the page links to its filing or article)

[Automation library](https://millionrounds.com/workflows) · [CRM](https://millionrounds.com/workflows?category=CRM#library)

# n8n cheatsheet for data pipeline with Gemini and OpenAI

Started by someone submitting a form, and works across Gmail, Google Sheets, MySQL, Notion and one other. It hands the judgement calls to Gemini and OpenAI. 24 steps: large, and worth reading before you trust it with anything live.

Large Calls a model: Gemini, OpenAI

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fn8n-cheatsheet-for-data-pipeline-with-gemini-and-openai)

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

**0** Branches: places the flow splits

**0** Loops or waits

**5** Services it connects to

## The flow

Starts it 4 Model 3 Logic 6 Service 11

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

- 1 **When clicking ‘Execute workflow’** Manual trigger *Starts it*
- 2 **Edit Fields** Set *Logic*
- 3 **Split Out** Split Out *Logic*
- 4 **Aggregate** Aggregate *Logic*
- 5 **Filter** Filter *Logic*
- 6 **Summarize** Summarize *Service*
- 7 **Remove Duplicates** Remove Duplicates *Logic*
- 8 **Code** Code *Logic*
- 9 **Convert to File** Convert To File *Service*
- 10 **Append row in sheet** Google Sheets *Service*
- 11 **HTTP Request** Http Request *Service*
- 12 **Execute a SQL query** My Sql *Service*
- 13 **Extract from File** Extract From File *Service*
- 14 **Get a database** Notion *Service*
- 15 **Get row(s) in sheet** Google Sheets *Service*
- 16 **Append a block** Notion *Service*
- 17 **Send a message** Gmail *Service*
- 18 **Send a message1** Slack *Service*
- 19 **Schedule Trigger** Schedule trigger *Starts it*
- 20 **Webhook** Webhook *Starts it*
- 21 **On form submission** Form trigger *Starts it*
- 22 **Message a model** Anthropic *Model*
- 23 **Generate a video** Google Gemini *Model*
- 24 **Generate audio** Open Ai *Model*

## How it's built

- **Starts on:** Someone submitting a form
- **Steps:** 24
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** Gmail, Google Sheets, MySQL, Notion, Slack
- **Model:** Gemini, OpenAI

## Questions

What does it need to run?

An n8n account, plus your own Gmail, Google Sheets, MySQL, Notion and Slack accounts, and a key for Gemini and OpenAI. 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 and OpenAI. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Take your time. At 24 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 24 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%2Fn8n-cheatsheet-for-data-pipeline-with-gemini-and-openai)
- **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)[Notion](https://millionrounds.com/workflows?service=Notion#library)[Slack](https://millionrounds.com/workflows?service=Slack#library)

## Workflows like it

Also crm, with the same services where possible, closest in size first.

- [**Automate AI Video Production Pipeline with OpenAI and Fal.AI** 23 steps · calls a model · Google Sheets, YouTube](https://millionrounds.com/workflow/automate-ai-video-production-pipeline-with-openai-and-fal-ai)
- [**Email follow up system with OpenAI and Gmail** 25 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/email-follow-up-system-with-openai-and-gmail)
- [**Predict customer churn with Google Sheets** 23 steps · calls a model · Email, Google Sheets](https://millionrounds.com/workflow/predict-customer-churn-with-google-sheets)
- [**Send sales forecast charts and answer Q&A on WhatsApp** 23 steps · calls a model · Google Sheets, WhatsApp](https://millionrounds.com/workflow/send-sales-forecast-charts-and-answer-q-and-a-on-whatsapp)
- [**Gmail campaign sender: Bulk-send emails and follow up if no reply** 25 steps · Gmail, Google Sheets](https://millionrounds.com/workflow/gmail-campaign-sender-bulk-send-emails-and-follow-up-if-no-r)
- [**Assess contract risk from Google Drive with Groq** 22 steps · calls a model · Google Drive, Salesforce](https://millionrounds.com/workflow/assess-contract-risk-from-google-drive-with-groq)
