Automation library · CRM

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.

LargeCalls a model: Gemini, OpenAI

24 stepsLarge: read it before trusting it with anything live
0Branches: places the flow splits
0Loops or waits
5Services it connects to

The flow

Starts it 4Model 3Logic 6Service 11

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

  1. 1When clicking ‘Execute workflow’Manual triggerStarts it
  2. 2Edit FieldsSetLogic
  3. 3Split OutSplit OutLogic
  4. 4AggregateAggregateLogic
  5. 5FilterFilterLogic
  6. 6SummarizeSummarizeService
  7. 7Remove DuplicatesRemove DuplicatesLogic
  8. 8CodeCodeLogic
  9. 9Convert to FileConvert To FileService
  10. 10Append row in sheetGoogle SheetsService
  11. 11HTTP RequestHttp RequestService
  12. 12Execute a SQL queryMy SqlService
  13. 13Extract from FileExtract From FileService
  14. 14Get a databaseNotionService
  15. 15Get row(s) in sheetGoogle SheetsService
  16. 16Append a blockNotionService
  17. 17Send a messageGmailService
  18. 18Send a message1SlackService
  19. 19Schedule TriggerSchedule triggerStarts it
  20. 20WebhookWebhookStarts it
  21. 21On form submissionForm triggerStarts it
  22. 22Message a modelAnthropicModel
  23. 23Generate a videoGoogle GeminiModel
  24. 24Generate audioOpen AiModel

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.