Overview
A scheduled n8n workflow pulls Google Analytics reports and keyword data from your SEO provider, then has an AI Agent node suggest which pages to refresh in a weekly report.
Problem or Objective
- Which agents can upload ads, research keywords and pull marketing numbers for you?
- Which agents run multi-step workflows across your apps?
- Which agents can draft a document section by section and save it in a reusable, structured format?
More in Sales, Marketing and Support
AI Agents and Models
Tools and Integrations
- Tools
- Google Analytics
- Prerequisites
- An n8n instance, Google Analytics credentials, a chat model credential, and API access to a rank-tracking or keyword tool.
How It Works
In n8n, start with a Schedule Trigger set to run once a week, and set the workflow time zone. Add the Google Analytics node with your Google credentials and use its Report operation to fetch page traffic for the last few weeks. Add an HTTP Request node that calls the API of the rank-tracking or keyword tool you already pay for to get positions and competing keywords for your main pages (check that your provider offers an API and what each call costs). Pass both results to an AI Agent node and ask it for a short report: pages losing traffic or position, likely reasons, and a suggested change for each. Send the report to yourself. An editor reads it and decides what to change; the workflow never edits published pages.
Implementation Workflow
Steps assembled from the agents, tools and prompt of this entry. Adapt them to your own setup.
- Choose the agentSet up n8n.
- Connect the toolsConnect the tools this workflow relies on: Google Analytics.
- Check the prerequisitesAn n8n instance, Google Analytics credentials, a chat model credential, and API access to a rank-tracking or keyword tool.
- Gather your detailsCollect what the prompt asks for: Website, Weeks of data, Keyword data provider, Maximum report items.
- Run the starter promptPaste the starter prompt below into n8n and adapt it to your case.
- Check against the documentationCompare what you get with the documentation at docs.n8n.io before you rely on it.
Practical Starter Prompt: Write the weekly content refresh report
Fill the fields to adapt the prompt. Empty fields stay as visible [placeholders].
You receive Google Analytics page traffic for [Website] over the last [Weeks of data] weeks and keyword positions from [Keyword data provider]. Find the pages losing traffic or position. For each, give the page, the change in numbers, the most likely reason from the data, and one suggested edit. Rank the list by expected impact, keep it under [Maximum report items] items, and do not suggest edits for pages without data. This is a report for an editor; do not change any page.Use this as the AI Agent instructions. The report goes to you; an editor decides which suggestions to apply and makes the changes by hand.
Expected Results and Benefits
This is a suggested workflow, not a reported result. The points below are what the cited documentation says the tools can do.
This is a suggested workflow, not a reported outcome. The n8n docs describe a Schedule Trigger for runs at fixed intervals, a Google Analytics node that returns reports, an HTTP Request node that can query any service with a REST API, and an AI Agent node that works with a chat model and tools. Your SEO data provider was not checked, and no cited page measures whether the suggested changes help traffic.
Limitations and Considerations
Keep content changes manual: the report is advice for an editor, and overwriting live pages automatically can undo careful work. The schedule only runs once the workflow is saved and published, and it follows the workflow or instance time zone. Check the terms and API limits of your SEO data provider, and check a search engine's terms before collecting its result pages any other way.Results depend on your setup and were not independently reproduced by Top 200 Repos.
GitHub Repositories
AI Agent Repository
Source code of the agent that does the work.
Related Videos
About n8n-io/n8n
Give Your Agent Tools (n8n Agents Course 5/7) (opens in a new tab)
Walkthrough of n8n by n8n: it is on the project’s own channel.
Watch on YouTube (opens in a new tab)About n8n-io/n8n
n8n AI Nodes: Connect OpenAI, Claude, and Local Models (opens in a new tab)
Walkthrough of n8n by AI Daily Lab: its description links the GitHub repository.
Watch on YouTube (opens in a new tab)Independent creators. Listing a video implies no endorsement, sponsorship or partnership.
Sources
- Schedule Trigger | Nodes | n8n Docs (opens in a new tab)
Project documentation · docs.n8n.io · Undated · Source checked 25 Nov 2026, 12:10 UTC
What this source supports
- Use the Schedule Trigger node to run workflows at fixed intervals and times.
- If a workflow uses the Schedule node as a trigger, make sure that you save and publish the workflow.
- Google Analytics | Nodes | n8n Docs (opens in a new tab)
Project documentation · docs.n8n.io · Undated · Source checked 27 Nov 2026, 09:30 UTC
What this source supports
- n8n has built-in support for a wide range of Google Analytics features, including returning reports and user activities.
- HTTP Request | Nodes | n8n Docs (opens in a new tab)
Project documentation · docs.n8n.io · Undated · Source checked 26 Nov 2026, 17:35 UTC
What this source supports
- The HTTP Request node allows you to make HTTP requests to query data from any app or service with a REST API.
- AI Agent | Nodes | n8n Docs (opens in a new tab)
Project documentation · docs.n8n.io · Undated · Source checked 26 Nov 2026, 17:27 UTC
What this source supports
- Connect a chat model and one or more tools, and the agent decides which tools to call to complete a task.

