# Get Gmail alerts for dropped top 10 keyword rankings: n8n workflow

> Started by a clock, and works across Gmail and Google Sheets. 43 steps, 2 branches, 3 loops or waits: large, and worth reading before you trust it with...

Source: https://millionrounds.com/workflow/get-gmail-alerts-for-dropped-top-10-keyword-rankings (Millionrounds; every figure on the page links to its filing or article)

[Automation library](https://millionrounds.com/workflows) · [Alerts and monitoring](https://millionrounds.com/workflows?category=Alerts+and+monitoring#library)

# Get Gmail alerts for dropped top 10 keyword rankings

Started by a clock, and works across Gmail and Google Sheets. 43 steps, 2 branches, 3 loops or waits: large, and worth reading before you trust it with anything live.

Large

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fget-gmail-alerts-for-dropped-top-10-keyword-rankings)

**43 steps** Large: read it before trusting it with anything live

**2** Branches: places the flow splits

**3** Loops or waits

**2** Services it connects to

## The flow

Starts it 1 Logic 34 Service 8

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

- 1 **Schedule Trigger** Schedule trigger *Starts it*
- 2 **Get previous keywords** Google Sheets *Service*
- 3 **Aggregate** Aggregate *Logic*
- 4 **Clear sheet (previous keywords)** Google Sheets *Service*
- 5 **Initialize "items" field** Set *Logic*
- 6 **Set "items" field** Set *Logic*
- 7 **Get ranked keywords** Data For Seo Labs Api *Service*
- 8 **Merge "items" with DFS response** Set *Logic*
- 9 **Has more pages?** If *Logic*
- 10 **Merge "items" with last response** Set *Logic*
- 11 **Split out (items)** Split Out *Logic*
- 12 **Filter items with rank > 10** Filter *Logic*
- 13 **Append row in sheet** Google Sheets *Service*
- 14 **Set Top 1, Top 3, Top 10** Set *Logic*
- 15 **Aggregate1** Aggregate *Logic*
- 16 **Filter (data for comparing is not empty)** Filter *Logic*
- 17 **Filter Top 1, Top 2, Top 3** Set *Logic*
- 18 **Split out (previous keywords)** Split Out *Logic*
- 19 **Switch** Switch *Logic*
- 20 **Filter (dropped from Top 1)** Filter *Logic*
- 21 **Filter (dropped from Top 3)** Filter *Logic*
- 22 **Filter (dropped from Top 10)** Filter *Logic*
- 23 **Loop Over Top 1 Items** Split In Batches *Logic*
- 24 **Loop Over Top 2 Items** Split In Batches *Logic*
- 25 **Loop Over Top 3 Items** Split In Batches *Logic*
- 26 **Merge** Merge *Logic*
- 27 **Get live google organic SERP regular** Data For Seo Serp Api *Service*
- 28 **Get live google organic SERP regular1** Data For Seo Serp Api *Service*
- 29 **Get live google organic SERP regular2** Data For Seo Serp Api *Service*
- 30 **Aggregate5** Aggregate *Logic*
- 31 **Split out (SERP results)** Split Out *Logic*
- 32 **Split out (SERP results)1** Split Out *Logic*
- 33 **Split out (SERP results)2** Split Out *Logic*
- 34 **Send a message** Gmail *Service*
- 35 **Prepare email content** Set *Logic*
- 36 **Prepare email content2** Set *Logic*
- 37 **Prepare email content4** Set *Logic*
- 38 **Aggregate2** Aggregate *Logic*
- 39 **Aggregate3** Aggregate *Logic*
- 40 **Aggregate4** Aggregate *Logic*
- 41 **Prepare email content1** Set *Logic*
- 42 **Prepare email content3** Set *Logic*
- 43 **Prepare email content5** Set *Logic*

## How it's built

- **Starts on:** A clock
- **Steps:** 43, with 2 branches, 3 loops or waits
- **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 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 43 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 43 steps before you point it at anything that matters.

## Run it in n8n

- **Create your n8n account** Free to start. n8n is where the workflow runs. [Create an n8n account ↗](https://millionrounds.com/n8n)
- **Download the workflow** Free with a Millionrounds account. [Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fget-gmail-alerts-for-dropped-top-10-keyword-rankings)
- **Paste it into n8n** Open a new workflow in n8n and paste. Then connect your own accounts.

Stored with the author's traces removed: canvas notes, instance identifiers, saved credential names and any live document they had left behind.

## Connects to

Each opens the other workflows that use it.

[Gmail](https://millionrounds.com/workflows?service=Gmail#library)[Google Sheets](https://millionrounds.com/workflows?service=Google+Sheets#library)

## Workflows like it

Also alerts and monitoring, with the same services where possible, closest in size first.

- [**AI-powered Facebook comment management: Auto-reply, delete, ban** 44 steps · calls a model · Google Sheets](https://millionrounds.com/workflow/ai-powered-facebook-comment-management-auto-reply-delete-ban)
- [**Generate a YouTube bedtime story with OpenAI** 41 steps · Google Cloud Storage, Google Sheets](https://millionrounds.com/workflow/generate-a-youtube-bedtime-story-with-openai)
- [**Synchronize Slack status updates with Pinecone** 39 steps · calls a model · Google Drive, Google Sheets](https://millionrounds.com/workflow/synchronize-slack-status-updates-with-pinecone)
- [**Plex to Discord and google sheet with Google Sheets** 48 steps · Discord, Google Sheets](https://millionrounds.com/workflow/plex-to-discord-and-google-sheet-with-google-sheets)
- [**Sync HubSpot contacts with LinkedIn URLs** 36 steps · Gmail, Google Sheets](https://millionrounds.com/workflow/sync-hubspot-contacts-with-linkedin-urls)
- [**Manage on-campus event attendance with Google Sheets** 35 steps · Gmail, Google Sheets](https://millionrounds.com/workflow/manage-on-campus-event-attendance-with-google-sheets)
