Category: Automations › SEO, Analytics & Reporting · Best for: Websites chasing Google rankings · Platform: n8n · Steps: 20
What it does
It checks your web pages and tells you how to rank better on Google.
A workflow powered by DataForSEO and Google Search Analytics API that generate a comprehensive content audit report for any website up to 1000 pages, 100% customized to your brand's colors.
Works with: n8n only, no other apps needed
What you get
- The n8n workflow file (
workflow.json), ready to import - This setup guide
- The list of fields to change for your own accounts (see Install below)
- Email support if you get stuck
Before you start
-
An n8n account. Easiest: n8n Cloud (free trial). Self-host for free with Docker:
docker run -it --rm -p 5678:5678 -v n8n_data:/home/node/.n8n docker.n8n.io/n8nio/n8n, then open http://localhost:5678. -
Accounts and API keys for these services:
- None. This workflow only uses built-in n8n nodes and public URLs.
Install
- In n8n, click Create workflow (top right).
- Click the ⋯ menu → Import from file and choose
workflow.json. Or open the file, copy everything and paste it onto the empty canvas with Ctrl/Cmd + V. - Open each node with a red warning triangle and pick or create the matching credential from the list above.
- Click Save.
Test it
- Click Test workflow (or Execute workflow). When clicking ‘Start’ starts it. Trigger it once with real sample data.
- Click each node to check its output. A green tick means the step worked.
- Fix any red node: it's almost always a credential or a field that still points at a sheet or chat that isn't yours.
Go live
Toggle Active (top right). From now on it runs on its own. Check Executions in the left sidebar to see every run.
How it works, step by step
- When clicking ‘Start’ starts the workflow (Manual).
- Set Fields reshapes the data for the next step.
- Create Task calls an external API (https://api.dataforseo.com/v3/on_page/task_post).
- Check Task Status calls an external API (=https://api.dataforseo.com/v3/on_page/summary/{{ $json.task).
- If checks a condition and routes items accordingly.
- Get RAW Audit Data calls an external API (https://api.dataforseo.com/v3/on_page/pages).
- Wait pauses before continuing.
- Extract URLs reshapes the data for the next step.
- Loop Over Items uses Split In Batches.
- Merge GSC Data with RAW Data reshapes the data for the next step.
- Query GSC API calls an external API (={{ $('Set Fields').first().json.gsc_property_type === 'd).
- Extract 404 & 301 reshapes the data for the next step.
- Wait1 pauses before continuing.
- Loop Over Items1 uses Split In Batches.
- Map GSC Data to URL reshapes the data for the next step.
- Build Report Structure reshapes the data for the next step.
- Get Source URLs Data calls an external API (https://api.dataforseo.com/v3/on_page/links).
- Generate HTML Report reshapes the data for the next step.
- Map URLs Data reshapes the data for the next step.
- Download Report uses Convert To File to toText.
Extra setup notes
These notes are also on the canvas as yellow sticky notes:
Content SEO Audit Report
A workflow powered by DataForSEO and Google Search Analytics API that generate a comprehensive content audit report for any website up to 1000 pages, 100% customized to your brand's colors.
Set up instructions:
- Add a new credential "Basic Auth" by following this guide. You can get your DataForSEO API credentials here. DataForSEO offer a free $1 credit when you register, which is plenty enough to test the workflow as the cost is about ~$0.20 per 500-page report. Finally, assign your Basic Auth account to the node "Create Task", "Check Task Status", "Get Raw Audit Data" and "Get Source URLs Data".
- Add a new credential "Google OAuth2 API" by following this guide. Assign your Google OAuth2 account to the node "Query GSC API".
- Update the "Set Fields" node with the following information:
- dfs_domain: The website domain you want to crawl.
- company_name: Your company name (Will be displayed on the final report)
- company_website: Your company website URL (Will be displayed on the final report)
- company_logo_url: Your company logo URL (Will be displayed on the final report)
- brand_primary_color: Your primary brand color. (Will be used to customize the final report to your brand's colors)
- brand_secondary_color: Your secondary brand color. (Will be used to customize the final report to your brand's colors)
- gsc_property_type: Set to "domain" or "url" depending of the property type set in your Google Search Console account for the target website (dfs_domain).
- Start the workflow. Once done, download the HTML file in the last node "Download Report".
Voilà! You have a comprehensive content audit report ready to be sent to your client via email, customized to your own branding.
Note: The workflow take approximately 20 minutes to run for ~500 pages. If you want to customize this workflow for your own need, feel free to contact us.
Troubleshooting
- "Credentials not found": open the node and select your credential again.
- Google "access blocked": in Google Cloud, add your email as a test user on the OAuth consent screen.
- Webhook not firing: copy the node's Production URL (not Test URL) into the other app, and make sure the workflow is Active.
- AI node errors: check your API key has billing enabled and the model name exists on your plan.
- Nothing happens on schedule: the workflow must be Active, and self-hosted n8n must stay running.
Need help?
Reply to your Morning Method order email and we'll help you get it running.
© Morning Method