Automation library · Alerts and monitoring

Email cleaner with Gmail and WhatsApp

Started by a clock, and works across Gmail and WhatsApp. 28 steps, 4 branches: large, and worth reading before you trust it with anything live.

Large

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

The flow

Starts it 1Logic 18Service 9

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

  1. 1Schedule TriggerSchedule triggerStarts it
  2. 2Get Spam EmailsGmailService
  3. 3Get Promotional EmailsGmailService
  4. 4Get Social EmailsGmailService
  5. 5Get Trash EmailsGmailService
  6. 6Process SpamCodeLogic
  7. 7Process PromotionsCodeLogic
  8. 8Process SocialCodeLogic
  9. 9Process TrashCodeLogic
  10. 10Has Spam to Delete?IfLogic
  11. 11Has Promotions to Delete?IfLogic
  12. 12Has Social to Delete?IfLogic
  13. 13Has Trash to Delete?IfLogic
  14. 14Spam CompleteSetLogic
  15. 15Bulk Delete SpamCodeLogic
  16. 16Promotions CompleteSetLogic
  17. 17Bulk Delete PromotionsCodeLogic
  18. 18Social CompleteSetLogic
  19. 19Bulk Delete SocialCodeLogic
  20. 20Trash CompleteSetLogic
  21. 21Bulk Delete TrashCodeLogic
  22. 22Combine All ResultsMergeLogic
  23. 23Delete Spam EmailsGmailService
  24. 24Delete Promotional EmailsGmailService
  25. 25Delete Social EmailsGmailService
  26. 26Delete Trash EmailsGmailService
  27. 27Create Summary ReportCodeLogic
  28. 28Send messageWhats AppService

How it's built

Starts on
A clock
Steps
28, with 4 branches
Size
Large: read it before trusting it with anything live
Connects to
Gmail, WhatsApp
Model
None. This is plumbing, not judgement

Questions

What does it need to run?

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

What starts it?

It starts on a clock.

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 28 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 28 steps before you point it at anything that matters.