Overview
Build an n8n workflow that runs each morning, reads your site's search performance export, has an AI Agent node pick a topic and draft an article or a refresh of an older post, and saves it as a draft for an editor.
Problem or Objective
- Which agents research and draft articles, newsletters or posts for a person to edit?
- Which agents can upload ads, research keywords and pull marketing numbers for you?
More in Sales, Marketing and Support
AI Agents and Models
Tools and Integrations
- Tools
- n8n
- Prerequisites
- An n8n instance (cloud or self-hosted), a chat model API key, access to your site's search performance data and a content system that accepts drafts; check both systems' APIs yourself.
How It Works
In n8n, add a Schedule Trigger that runs once a day in your timezone. Add a step that fetches the last few weeks of search performance for your site from your search analytics tool, through an n8n integration or an HTTP request if one exists (check this side; it was not verified). Pass the rows to an AI Agent node with a chat model and tools that can read your list of published posts. Ask it to choose either one new topic with clear demand or one older post whose clicks are falling, and to write a draft or a refresh with a short note explaining the choice and the figures it used. Save the result as a draft in your content system, not as a published post, and send the editor a link. The editor checks facts, edits and publishes. Save and publish the n8n workflow so the schedule runs.
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: n8n.
- Check the prerequisitesAn n8n instance (cloud or self-hosted), a chat model API key, access to your site's search performance data and a content system that accepts drafts; check both systems' APIs yourself.
- Gather your detailsCollect what the prompt asks for: Site name, Period of search data, Who the articles are for.
- 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: Choose and draft today's article
Fill the fields to adapt the prompt. Empty fields stay as visible [placeholders].
You receive search performance rows for [Site name] from the last [Period of search data]: query, page, clicks, impressions and position. Using the tool that lists our published posts, choose one of two actions: draft a new article on a topic with clear demand that we have not covered, or refresh one older post whose clicks have dropped. Write for [Who the articles are for] in our house style. Return the draft as a draft only, plus a note naming the rows that led to the choice. Do not publish; an editor reviews and publishes every draft.The workflow saves drafts only. An editor checks facts against the cited figures and publishes each draft 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. n8n's docs show a Schedule Trigger that runs workflows at fixed intervals and times, and an AI Agent node that connects a chat model to tools and decides which to call. The README lists many integrations. The cited pages do not cover any particular search analytics or content system, so the data and draft steps need checking in your own setup.
Limitations and Considerations
A schedule only runs once the workflow is saved and published, and it follows the workflow or instance timezone. Keep a person between the draft and the live site: generated articles can contain wrong facts, and large volumes of thin pages can hurt a site, so check your search engine's guidance on automated content. Check the API limits and terms of your analytics and content systems, and store their keys in n8n credentials. 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
- The Schedule Trigger node runs workflows at fixed intervals and times, similar to the Cron utility.
- If a workflow uses the Schedule node as a trigger, you must save and publish the workflow, and the node relies on the workflow or instance timezone setting.
- 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
- The AI Agent node connects a chat model and one or more tools, and the agent decides which tools to call to complete a task; at least one tool sub-node must be connected.
- n8n-io/n8n README (opens in a new tab)
Project documentation · github.com · Undated · Source checked 25 Nov 2026, 11:59 UTC
What this source supports
- n8n combines a visual canvas with custom code, runs self-hosted or in the cloud, and connects to 1500+ integrations.

