Track daily Google Trends spikes with Apify, Google Sheets, Slack and Gmail
UnknownWhat this workflow does
This workflow has 12 nodes and runs on a schedule (every day at 09:00) (plus 1 other trigger). Along the way it connects Google Sheets, Slack, Gmail and Apify (community).
How it runs
Trigger: On a schedule (every day at 09:00) (plus 1 other trigger).
- Workflow settings (Edit Fields (Set)): sets 5 fields: countries, trendingHours, topN…
- Post the error to Slack (Slack): post (message)
- Get new Google Trends (Apify): run actor and get dataset (actors)
- Keep trend items only (Filter): keeps only the items that match a condition
- Append trends to Google Sheet (Google Sheets): append
- Rank trends and build digest (Code): runs custom JavaScript code
- Anything new today? (If): checks a condition and branches into true / false
- Send digest to Slack (Slack): post (message)
- Big spike found? (If): checks a condition and branches into true / false
- Email the spike alert (Gmail): uses Gmail
Services it uses
Other Google Sheets + Gmail templates (2,102) · Other Google Sheets + Slack templates (1,314) · Other Gmail + Slack templates (957)
Before you upgrade to n8n 3.0
We can't fully verify this one: it relies on 1 community package, and n8n 3.0 turns unverified community packages off by default (N8N_UNVERIFIED_PACKAGES_ENABLED=false).
- Check that @apify/n8n-nodes-apify is verified or supports 3.0 (used in Get new Google Trends).
Nodes used (10)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Edit Fields (Set)
n8n-nodes-base.set - Apify
@apify/n8n-nodes-apify.apify - Filter
n8n-nodes-base.filter - Google Sheets
n8n-nodes-base.googleSheets - Code
n8n-nodes-base.code - If
n8n-nodes-base.if - Slack
n8n-nodes-base.slack - Gmail
n8n-nodes-base.gmail - Error Trigger
n8n-nodes-base.errorTrigger
From the author
Quick overview Runs the Google Trends Scraper Actor on Apify once a day, appends every newly spiking Google search (with estimated search volume, category, start and end time and duration) to Google Sheets, and posts a top 10 digest to Slack. No duplicates…