Automation library · Alerts and monitoring

Run A/B-tested email campaigns with Gmail and Google Sheets

Started by another system calling it, and works across Gmail, Google Sheets and Slack. 26 steps, 1 branch, 2 loops or waits: large, and worth reading before you trust it with anything live.

Large

26 stepsLarge: read it before trusting it with anything live
1Branch: places the flow splits
2Loops or waits
3Services it connects to

The flow

Starts it 4Logic 11Service 11

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

  1. 1Manual TriggerManual triggerStarts it
  2. 2Scheduled TriggerSchedule triggerStarts it
  3. 3Webhook TriggerWebhookStarts it
  4. 4Error TriggerError triggerStarts it
  5. 5Configure CampaignCodeLogic
  6. 6Format ErrorCodeLogic
  7. 7Read ContactsGoogle SheetsService
  8. 8Slack - Error AlertSlackService
  9. 9Filter and ValidateCodeLogic
  10. 10Log Campaign StartGoogle SheetsService
  11. 11Slack - Campaign StartedSlackService
  12. 12Has Contacts?IfLogic
  13. 13Extract ContactsCodeLogic
  14. 14Calculate ResultsCodeLogic
  15. 15Process in BatchesSplit In BatchesLogic
  16. 16Final SummaryCodeLogic
  17. 17Prepare EmailCodeLogic
  18. 18Update CampaignGoogle SheetsService
  19. 19Send EmailGmailService
  20. 20Slack - Campaign CompletedSlackService
  21. 21Mark as SentGoogle SheetsService
  22. 22Mark as ErrorGoogle SheetsService
  23. 23DoneNo OpLogic
  24. 24Log SuccessGoogle SheetsService
  25. 25Log ErrorGoogle SheetsService
  26. 26Anti-Spam DelayWaitLogic

How it's built

Starts on
Another system calling it
Steps
26, with 1 branch, 2 loops or waits
Size
Large: read it before trusting it with anything live
Connects to
Gmail, Google Sheets, Slack
Model
None. This is plumbing, not judgement

Questions

What does it need to run?

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

What starts it?

It starts on another system calling it.

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?

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