Automation library · Data collection

Filter and label Gmail emails with Google Sheets

Started by an arriving email, and works across Gmail and Google Sheets. 21 steps, 3 branches: large, and worth reading before you trust it with anything live.

Large

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

The flow

Starts it 1Logic 9Service 11

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

  1. 1Gmail TriggerGmail triggerStarts it
  2. 2Get a messageGmailService
  3. 3Extract Email DataSetLogic
  4. 4Analyze Email ContentCodeLogic
  5. 5Check If Cold OutreachIfLogic
  6. 6Label as OutreachGmailService
  7. 7Check if Needs_reviewIfLogic
  8. 8Remove from InboxGmailService
  9. 9Label as Needs ReviewGmailService
  10. 10Check if MarketingIfLogic
  11. 11Mark as ReadGmailService
  12. 12Edit Fields (needs review)SetLogic
  13. 13Label as Marketing/AdsGmailService
  14. 14Label as LegitimateGmailService
  15. 15Edit Fields (outreach)SetLogic
  16. 16Log to Spreadsheet (needs review)Google SheetsService
  17. 17Edit Fields (marketing)SetLogic
  18. 18Edit Fields (Legitimate)SetLogic
  19. 19Log to Spreadsheet (outreach)Google SheetsService
  20. 20Log to Spreadsheet (marketing/Ads)Google SheetsService
  21. 21Log to Spreadsheet (legitimate)Google SheetsService

How it's built

Starts on
An arriving email
Steps
21, with 3 branches
Size
Large: read it before trusting it with anything live
Connects to
Gmail, Google Sheets
Model
None. This is plumbing, not judgement

Questions

What does it need to run?

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

What starts it?

It starts on an arriving email.

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