Automation library · CRM

Email follow up system with OpenAI and Gmail

Started by a clock, and works across Gmail and Google Sheets. It hands the judgement calls to OpenAI. 25 steps, 2 branches, 6 loops or waits: large, and worth reading before you trust it with anything live.

LargeCalls a model: OpenAI

25 stepsLarge: read it before trusting it with anything live
2Branches: places the flow splits
6Loops or waits
2Services it connects to

The flow

Starts it 3Model 5Logic 9Service 8

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

  1. 1When clicking ‘Execute workflow’Manual triggerStarts it
  2. 2Schedule TriggerSchedule triggerStarts it
  3. 3Gmail TriggerGmail triggerStarts it
  4. 4OpenAI Chat ModelLm Chat Open AiModel
  5. 5ThinkTool ThinkModel
  6. 6Get row(s) in sheetGoogle SheetsService
  7. 7Get row(s) in sheet1Google SheetsService
  8. 8Message a model1Open AiModel
  9. 9AI AgentAgentModel
  10. 10Message a modelOpen AiModel
  11. 11Loop Over Items1Split In BatchesLogic
  12. 12Get row(s) in sheet2Google SheetsService
  13. 13Send a message2GmailService
  14. 14Loop Over ItemsSplit In BatchesLogic
  15. 15Get many messages1GmailService
  16. 16If1IfLogic
  17. 17Loop Over Items2Split In BatchesLogic
  18. 18Send a messageGmailService
  19. 19Edit FieldsSetLogic
  20. 20Wait2WaitLogic
  21. 21Update row in sheet1Google SheetsService
  22. 22IfIfLogic
  23. 23WaitWaitLogic
  24. 24Send a message1GmailService
  25. 25Wait1WaitLogic

How it's built

Starts on
A clock
Steps
25, with 2 branches, 6 loops or waits
Size
Large: read it before trusting it with anything live
Connects to
Gmail, Google Sheets
Model
OpenAI

Questions

What does it need to run?

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

What starts it?

It starts on a clock.

Does it use AI?

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

How long does it take to set up?

Take your time. At 25 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 25 steps before you point it at anything that matters.