Track organic SEO market share with DataForSEO, OpenAI and Google Docs
Ready for 3.0What this workflow does
This AI workflow has 24 nodes and runs on a schedule (every week at 07:00). Along the way it connects Google Sheets, OpenAI Chat Model, Google Docs and Gmail. It also calls api.dataforseo.com over HTTP.
How it runs
Trigger: On a schedule (every week at 07:00).
- Settings (Edit Fields (Set)): sets 9 fields: your_domain, pinned_rivals, rivals…
- Find Who You Compete With (HTTP Request): calls api.dataforseo.com (POST)
- Read Last Month's Numbers (Google Sheets): uses Google Sheets
- Read The Peer Set (Code): runs custom JavaScript code
- Wait For Both (Merge): merges the data from its input branches
- Measure The Whole Set (HTTP Request): calls api.dataforseo.com (POST)
- Work Out The Shares (Code): runs custom JavaScript code
- What Happened To Each One? (Switch): routes items into 3 branches
- Find What They Published (HTTP Request): calls api.dataforseo.com (POST)
- Profile The Newcomer (HTTP Request): calls api.dataforseo.com (POST)
…plus 11 more steps. See the full node list below.
Services it uses
Other Google Sheets + Gmail templates (2,102) · Other OpenAI + Google Sheets templates (2,011) · Other OpenAI + Gmail templates (1,623)
HTTP calls to: api.dataforseo.com
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (12)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Edit Fields (Set)
n8n-nodes-base.set - HTTP Request
n8n-nodes-base.httpRequest - Code
n8n-nodes-base.code - Google Sheets
n8n-nodes-base.googleSheets - Merge
n8n-nodes-base.merge - Switch
n8n-nodes-base.switch - No Operation, do nothing
n8n-nodes-base.noOp - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Google Docs
n8n-nodes-base.googleDocs - Gmail
n8n-nodes-base.gmail
From the author
Quick overview This workflow runs weekly to identify your organic search competitors with DataForSEO, estimate traffic and market share for each domain, and compare results to prior runs stored in Google Sheets. It uses OpenAI to draft a narrative report,…