Overview
An n8n workflow uses an AI Agent node with a search tool to gather references, outline and draft a technical blog post, then saves the draft to a Notion review database for an editor.
Problem or Objective
- Which agents research and draft articles, newsletters or posts for a person to edit?
- Which agents investigate a question and report back?
More in Content and Media
AI Agents and Models
Tools and Integrations
- Tools
- n8n · Notion · SerpApi
- Prerequisites
- An n8n instance, a chat model API key, a search API account for the search tool, and a Notion integration with access to a review database.
How It Works
In n8n, start the workflow with the post topic, the intended reader and any links you already trust. Add an AI Agent node with a chat model and a web search tool connected (the SerpApi (Google Search) tool or, from n8n 2.35.0, the SerpApi Official community node the docs point to). In its system message, ask it to collect references with their URLs, propose an outline, then write a draft that follows the outline, marks every code example as untested and ends with a references list. Send the output to a Notion node that creates a page in an editorial review database, using your Notion credentials. An editor then reads the draft, runs every code example, opens each reference and checks the claims, and publishes the post by hand only after that review.
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, Notion, SerpApi.
- Check the prerequisitesAn n8n instance, a chat model API key, a search API account for the search tool, and a Notion integration with access to a review database.
- Gather your detailsCollect what the prompt asks for: What the post is about, Who the post is for, Links you already trust, Target length.
- 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: Research and draft a technical blog post for review
Fill the fields to adapt the prompt. Empty fields stay as visible [placeholders].
You are the drafting agent in an n8n workflow. Topic: [What the post is about]. Reader: [Who the post is for]. Start from these links: [Links you already trust]. Use the search tool to find further references and keep the URL of each. Propose an outline, then write a draft of about [Target length] words that follows it. Mark every code example as untested and end with a references list. The workflow saves the draft to the Notion review database; an editor tests the code and checks the references before anything is published.Drafts land in a Notion review database only. An editor runs each code example, opens every reference and publishes the post by hand after approving it.
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 support an AI Agent node that calls connected tools, a search tool that lets an agent call Google search, and a Notion node that creates pages. They do not say how accurate the drafts or code examples will be, how much time the workflow saves, or whether Markdown formatting carries over into Notion pages, so test one post end to end first.
Limitations and Considerations
An AI Agent node must have at least one tool sub-node connected. The SerpApi (Google Search) node is deprecated from n8n 2.35.0, so check which search node your version supports and what each search costs. Generated code and technical claims can be wrong: a person runs the examples and checks every reference before anything is published. Check that the Notion integration can reach only the review database. Model and search calls cost money on most providers. 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
- 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.
- You must connect at least one tool sub-node to an AI Agent node.
- SerpApi (Google Search) | Nodes | n8n Docs (opens in a new tab)
Project documentation · docs.n8n.io · Undated · Source checked 27 Nov 2026, 14:22 UTC
What this source supports
- The SerpAPI node allows an agent in your workflow to call Google's Search API.
- The SerpApi (Google Search) node is deprecated from n8n 2.35.0.
- Notion | Nodes | n8n Docs (opens in a new tab)
Project documentation · docs.n8n.io · Undated · Source checked 26 Nov 2026, 23:44 UTC
What this source supports
- n8n has built-in support for a wide range of Notion features, including getting and searching databases, creating pages, and getting users.

