NEWOur agents now make the SEO fixes on your site and check what worked →

n8n SEO Automation: Community Node and Trigger

n8n SEO automation with the SEOmatic community node: read your Search Console data, run SEO audits, track how AI assistants mention your brand, order articles, and approve the changes SEOmatic's SEO agent proposes, in workflows or as tools for n8n AI agents. A trigger starts a workflow when something happens in SEOmatic.

What you get#

The n8n-nodes-seomatic package (version 2.1.0, open source on GitHub) adds two nodes:

  • SEOmatic: operations on six resources (Search Performance, Site Audit, AI Visibility, Tracked Prompt, SEO Task, Article).
  • SEOmatic Trigger: starts a workflow on fifteen SEOmatic events, delivered signed.

The node installs on self-hosted n8n. On n8n Cloud, use Zapier or Make, or call the REST API from n8n's HTTP Request node.

Requirements#

  • A SEOmatic workspace on the Infrastructure plan (Enterprise includes it too), for every operation and the SEOmatic Trigger.
  • A SEOmatic API key. Read-only by default; operations that change something need a key created with Allow this key to make changes.
  • Self-hosted n8n, and an n8n owner or admin to install a community node.
  • For the trigger only: a public https:// address for n8n.
  • For Search Performance only: Google Search Console connected in SEOmatic.

1. Install the node#

Only an n8n owner or admin can install community nodes. The node installs on self-hosted n8n; on n8n Cloud, use Zapier or Make, or the HTTP Request node with the REST API.

  1. In n8n, open Settings > Community nodes.
  2. Click Install and enter the package name:
npm package
n8n-nodes-seomatic

Tick I understand the risks of installing unverified code from a public source, then click Install.

n8n's own guide covers the install screen and its options: installing community nodes from the n8n editor.

2. Create the credential#

  1. In SEOmatic, open Settings > AI Agents > API Keys and create a key. It starts with smk_ and is shown once.
  2. Leave Allow this key to make changes off for a read-only key. Turn it on only if the workflow approves tasks, runs scans or edits tracked prompts.
  3. In n8n, create a SEOmatic API credential and paste the key. n8n tests it against SEOmatic when you save.

The node sends the key only to https://app.seomatic.ai, as a Bearer token, with a header that identifies the integration:

request headers
Authorization: Bearer smk_...
X-Seomatic-Client: n8n

SEOmatic checks the plan on every call, including the credential test, so a workspace that is not on Infrastructure is told at save time, not when a workflow runs.

3. Your first workflow in 5 minutes#

Pull your top Search Console queries into n8n. This needs Google Search Console connected in SEOmatic.

  1. Add a Manual Trigger node.
  2. Add a SEOmatic node with the settings below.
  3. Click Test workflow.
SEOmatic node
Credential   SEOmatic API
Resource     Search Performance
Operation    Get Queries
Limit        10
Options      Days: 28

The node returns one item per query. Numbers below are examples; click rate and position arrive as strings.

output (one item)
{
  "query": "seo agent for wordpress",
  "clicks": 42,
  "impressions": 1310,
  "ctr": "3.2%",
  "position": "7.4"
}

Next, send the items to Slack or Google Sheets, or swap the Manual Trigger for a Schedule Trigger to run it every Monday.

Operations#

Several read operations have a Simplify switch that trims the output to the fields most workflows map. Operations that spend money or credits say so in their description.

Search Performance

Data from your own Google Search Console property. Needs Search Console connected in SEOmatic.

OperationWhat it doesParameters
Get QueriesThe searches people use to find your site, one item per query (clicks, impressions, click rate, position).Limit (1 to 1000). Options: Days (1 to 90, default 28).
Get PagesYour pages that get the most clicks from Google, one item per page.Limit (1 to 1000). Options: Days (1 to 90, default 28).
Compare PeriodsCompares the latest period with the one right before it and lists the biggest losers and winners by clicks.Options: Compare By (Page or Search Query), Days (7 to 45, default 28), Rows Per Period (10 to 10000, default 500).
Find Competing PagesSearches where two or more of your pages compete and split the clicks.Options: Days (7 to 90), Minimum Impressions (default 100).
Find Low Click Rate PagesPages that get far fewer clicks than their position should earn, with the estimated missed clicks.Options: Days (7 to 90), Minimum Impressions (default 200).
Get Monthly Trend16 months of monthly clicks and impressions with a year-over-year verdict: real drop or seasonal dip.None.
Check IndexingWhether Google has indexed a page, and why not.Page URL, Simplify.

Site Audit

Crawls and scores pages. No Search Console needed.

OperationWhat it doesParameters
RunCrawls up to 30 pages and finds issues across pages: dead pages, broken internal links, duplicate titles and descriptions, missing descriptions, thin content, pages hidden from Google, canonical mismatches, redirects, slow pages.Options: Page URLs (up to 30) or Number of Pages (3 to 30, default 20). Simplify returns a count per issue.
Analyze PageScores one page from 0 to 100 and lists its issues by severity.Page URL, Simplify.

AI Visibility

How AI assistants mention your brand.

OperationWhat it doesParameters
GetReads the latest completed scan: visibility per AI engine, the prompts where your brand was missed, top competitors. Free: never starts a scan.Options: Scan ID. Simplify.
Run ScanStarts a new scan of your site or a competitor and returns a scan ID right away. The scan takes a few minutes. Read it with Get or the AI Visibility Scan Completed trigger event.Options: Competitor Domain.

Tracked Prompt

The questions your AI visibility monitor asks every AI engine.

OperationWhat it doesParameters
CreateAdds a tracked prompt. Limited by your plan.Prompt. Options: Language Code and Location Code (set both, or neither for your main monitor).
Get ManyLists tracked prompts, one item per prompt.Return All, Limit. Options: Language Code, Location Code.
UpdateChanges the wording, pins it, or pauses and resumes it.Tracked Prompt (from list or ID). Update Fields: Prompt, Pinned, Active.
DeleteDeletes a tracked prompt. Past scan results are kept. Returns {"deleted": true}.Tracked Prompt (from list or ID).

SEO Task

The work SEOmatic's SEO agent proposes, runs and measures. Needs the SEO agent turned on in SEOmatic.

OperationWhat it doesParameters
Get ManyLists tasks on the agent's board, highest priority first, one item per task. Up to 20 tasks.Max Tasks (1 to 20). Filters: Status, Type. Simplify.
GetOne task with its reasoning, expected impact and latest activity. The raw output includes stagedReview when the agent held a change for review.Task (from list or ID), Simplify.
ApproveApproves a proposed task so it runs through the agent's safety checks. Tasks that hide a page from Google (noindex) or redirect it also need Confirm Noindex or Redirect.Task. Options: Confirm Noindex or Redirect.
DismissDismisses a proposed task and archives it.Task.
ExecuteRuns an approved task now, or releases a change the agent held for review. Approve already starts most tasks within seconds.Task. Options: Confirm Noindex or Redirect, Review Token.
Roll BackRestores the page as it was before the agent's edit. Refuses if someone edited the page afterwards, unless Overwrite Newer Edits is on. Runs in the background: check the result with Get.Task. Options: Overwrite Newer Edits.

Article

Pay-as-you-go articles, paid from a prepaid balance.

OperationWhat it doesParameters
GenerateOrders one in-depth SEO article ($9 from the prepaid balance). Returns an article_id right away; writing takes a few minutes.Topic.
GetOne article with its status and, once ready, its markdown and HTML. Simplify drops the HTML copy.Article (from list or ID), Simplify.
Get ManyYour 20 most recent articles, one item per article.Return All, Limit.

SEOmatic Trigger#

Pick one or more events. When you activate the workflow, the trigger registers your n8n webhook address with SEOmatic for those events, and removes it when you deactivate the workflow. The trigger runs on SEOmatic webhooks, so it needs the Infrastructure plan (or Enterprise).

EventKeyFires when
SEO Task Awaiting Approvaltask.awaiting_approvalThe SEO agent proposed a task that needs your decision.
SEO Task Approved or Dismissedtask.decidedSomeone approved or dismissed an SEO agent task, and where they decided.
SEO Task Completedtask.completedA task finished running.
Change Live on Your Sitetask.liveSEOmatic saw an agent change on your live page, not just saved in your CMS.
Campaign Completedcampaign.completedEvery task in a campaign has settled.
Page Publishedpage.publishedA page went live on your site.
Page Publish Failedpage.publish_failedSEOmatic could not publish a page.
AI Visibility Scan Completedai_visibility.scan_completedA scan finished, with results per AI engine.
Site Audit Completedsite_audit.completedA deep site audit finished, with the health score and new or fixed problems.
Ranking Droppedranking.droppedA search that brings you clicks, or a search you track in the Rank Tracker, slipped in Google.
Ranking Page Changedranking.page_changedGoogle shows a different page of your site for a search you track: two of your pages compete for it.
New Google Reviewreview.receivedA new review arrived on your Google Business Profile, with the reply SEOmatic drafted for approval.
Weekly Business Profile Callsbusiness_profile.calls_reportEvery Monday: last week's calls, direction requests and website clicks from your Google Business Profile.
Business Profile Update Duebusiness_profile.update_dueThis week's Business Profile update has not been drafted yet: send a job photo and SEOmatic drafts it.
Possible Duplicate Listingbusiness_profile.duplicate_foundAnother Google Maps listing looks like your business; duplicates can get a profile suspended.

Each event arrives as one item:

task.awaiting_approval item
{
  "event": "task.awaiting_approval",
  "workspace_id": "...",
  "created_at": "2026-09-24T10:00:00.000Z",
  "data": {
    "task_id": "...",
    "type": "ctr_fix",
    "title": "Rewrite the title of /pricing",
    "target": "https://example.com/pricing",
    "approve_in_app": "https://app.seomatic.ai/dashboard/agents"
  }
}

Every delivery is signed. The trigger checks the X-Seomatic-Signature header (HMAC-SHA256 of the timestamp and body, with the secret SEOmatic returned when the webhook was registered), refuses deliveries older than five minutes, and ignores anything that does not match. The Webhooks page documents every event's payload fields.

SEOmatic does not send events to http:// or private addresses, so "Listen for test event" on localhost fails with "SEOmatic can only send events to an https:// address". On self-hosted n8n, set your public address:

n8n environment
WEBHOOK_URL=https://n8n.example.com/

A workspace can have up to 25 webhook endpoints. Each active trigger, and each "Listen for test event" while it listens, registers one. Past 25, activation fails with a 409 error; remove an endpoint to free a slot.

See n8n's guide to configuring the webhook URL.

n8n SEO workflow templates#

Seven SEO workflows you can build with the SEOmatic node and n8n's own nodes, node by node. Each one only uses the operations and events documented on this page.

WorkflowNodes
Approve SEO fixes from SlackSEOmatic Trigger (SEO Task Awaiting Approval) > Slack (Send and Wait for Response, approval buttons) > IF approved > SEOmatic (SEO Task > Approve or Dismiss, task ID from the trigger).
Weekly SEO reportSchedule Trigger (Monday 8:00) > SEOmatic (Search Performance > Compare Periods) > SEOmatic (Search Performance > Find Low Click Rate Pages) > Gmail or Slack.
Real traffic drop alarmSchedule Trigger (daily) > SEOmatic (Search Performance > Get Monthly Trend) > IF (yoy.verdict starts with "Real decline") > Slack.
Indexing watch for new pagesSEOmatic Trigger (Page Published) > Wait (3 days) > SEOmatic (Search Performance > Check Indexing, Page URL {{ $json.data.url }}) > IF (verdict is not PASS) > email.
AI visibility trackerSEOmatic Trigger (AI Visibility Scan Completed) > SEOmatic (AI Visibility > Get) > Google Sheets (a row per engine).
Unhappy review alertSEOmatic Trigger (New Google Review) > IF ({{ $json.data.stars }} is 3 or fewer) > Slack or SMS to the owner, with the drafted reply waiting in SEOmatic.
Article pipelineGoogle Sheets (topics) > SEOmatic (Article > Generate) > Wait (10 minutes) > SEOmatic (Article > Get) > your CMS.
Site health check after a releaseWebhook or GitHub trigger > SEOmatic (Site Audit > Run with the changed page URLs) > IF (broken internal links > 0) > alert.

n8n SEO agent: SEOmatic as an AI tool#

The SEOmatic node also works as a tool for n8n's AI Agent node. Connect it under the agent's tools and the agent can call its operations while it works: pull the queries that lost clicks, audit the pages behind them, check whether a page is indexed, or read your latest AI visibility scan, then write its summary from real numbers instead of guesses.

n8n AI SEO agent
Schedule Trigger (Monday 8:00)
   ↓
AI Agent   "Find last week's biggest SEO problems and explain them"
   tools:  SEOmatic > Search Performance > Compare Periods
           SEOmatic > Search Performance > Find Low Click Rate Pages
           SEOmatic > Site Audit > Analyze Page
   ↓
Slack      post the agent's answer

If the SEOmatic node does not show up in the agent's tool list on self-hosted n8n, allow community nodes as tools and restart n8n:

n8n environment
N8N_COMMUNITY_PACKAGES_ALLOW_TOOL_USAGE=true

Give the agent a read-only key. An agent can be steered by text it reads (prompt injection), and with a read-only key it can read your SEO data but never approve or apply a change. Keep approvals with a person, for example with the approve-from-Slack template above.

Plans and limits#

The n8n node needs the Infrastructure plan, or Enterprise, like the Zapier integration: Launch, Scale and trials do not include it. What each operation needs on top:

OperationsWhat they need
Search Performance, Site Audit, AI Visibility > GetAny API key. Search Performance also needs Google Search Console connected in SEOmatic.
AI Visibility > Run Scan, Tracked Prompt (all), SEO Task (all)A key created with Allow this key to make changes, and the Infrastructure plan. SEO Task operations also need the SEO agent turned on.
Article > GenerateA prepaid article balance ($9 per article). Get and Get Many are free reads.
SEOmatic TriggerThe Infrastructure plan (the trigger runs on SEOmatic webhooks) and a public https:// address for your n8n instance.
  • Workflows never spend prepaid scans. AI Visibility > Run Scan uses the workspace's AI credits. If they cannot cover it, no scan starts and the call is refused with INSUFFICIENT_CREDITS (HTTP 402).
  • One AI visibility scan per hour can be started this way.
  • SEO Task > Approve and Execute start work that uses AI credits. Tracked Prompt > Create is free, but each active prompt adds to the cost of every future scan.
  • Rate limits are per key: 60 tool runs per minute and 1,000 per hour (most operations are one tool run), and 500 requests per minute for other endpoints. See rate limits.

Plans and prices: pricing.

Errors and fixes#

The node explains each error and how to fix it. Turn on Continue On Fail in the node settings to get errors as items with an error field instead of stopping the workflow.

ErrorCauseFix
SEOmatic did not accept the API key (401)The key is wrong, revoked, or was pasted with extra characters.Create a key in Settings > AI Agents > API Keys and update the SEOmatic API credential.
A 402 error with code AUTOMATION_NOT_ENTITLEDThe workspace is not on the Infrastructure plan. The node needs Infrastructure.Upgrade the workspace to Infrastructure; the error description has the link.
A 402 error with code REST_ACT_REQUIRES_INFRAAn operation that makes changes ran on a plan below Infrastructure.Upgrade to Infrastructure, or use a read operation; the error description has the upgrade link.
This operation is not available for this API key (404)The operation isn't available to this key: an operation that makes changes with a read-only key, a Search Performance operation without Search Console connected, or an SEO Task operation with the SEO agent off.The error description says which: use a key created with Allow this key to make changes, connect Search Console, or turn on the SEO agent.
Search Console not connectedA Search Performance operation on a workspace with no Search Console property.Connect it at app.seomatic.ai/connect/gsc, then run the node again.
Empty article balance (Generate)No prepaid articles left.The error gives the price and a top-up link.
Too many requests to SEOmatic in a short time (429)The key passed its rate limit (see Plans and limits).Wait a minute and run again, or turn on Retry On Fail in the node settings.
Tool '...' is still running after 60s. It was not stopped. (504)The operation took longer than 60 seconds. It keeps running in SEOmatic; it was not stopped.Check the outcome (for example SEO Task > Get) before running an operation that makes changes again.
Trigger activation fails with a 402 (code WEBHOOKS_NOT_ENTITLED)The SEOmatic Trigger runs on webhooks, which are on the Infrastructure plan.Upgrade to Infrastructure, or poll with a regular operation on a Schedule Trigger instead.
Activation fails: 'SEOmatic can only send events to an https:// address'n8n's webhook address is http://, localhost or a private address.Set WEBHOOK_URL to a public https:// address, then activate again.

insufficient_credits is not an error. When AI Visibility > Run Scan cannot be covered by the workspace's AI credits, no scan starts and the result arrives as a normal output item with status: "insufficient_credits". Check status before using the result. Add credits, or run the scan from the SEOmatic app; Get still reads the last scan for free.

Security#

  • The key is sent only to https://app.seomatic.ai. The node reads no environment variables or files.
  • With n8n AI agents, use a read-only key. The SEOmatic node works as a tool for n8n AI agents, and an agent can be steered by text it reads (prompt injection). With a read-only key the worst it can do is read your SEO data; it can never approve or apply a change.
  • Trigger deliveries are HMAC-signed and time-checked; forged or replayed events are ignored.
  • Revoke a key any time in Settings > AI Agents > API Keys.

FAQ#

Is the SEOmatic node available on n8n Cloud?

The node installs on self-hosted n8n from npm. On n8n Cloud, use the Zapier or Make integration, or call the SEOmatic REST API from n8n's HTTP Request node with your API key.

Which SEOmatic plan do I need?

The Infrastructure plan, the same rule as the Zapier and Make integrations, for read operations, operations that make changes and the SEOmatic Trigger alike. Enterprise includes it too. On another plan, the credential test fails with a message that says so.

Can a workflow change my site without my approval?

Only through the SEO Task operations, and only with a key created with Allow this key to make changes. Approve is a decision: if a workflow calls it automatically, the workflow is approving for you. Keep a person in the loop, for example with an approve-from-Slack workflow (see n8n SEO workflow templates).

Can I build an AI SEO agent in n8n?

Yes. The SEOmatic node works as a tool for n8n's AI Agent node, so an agent can read your Search Console data, run site audits and check your AI visibility while it works. Give it a read-only key: an agent can be steered by text it reads, and with a read-only key it can never approve or apply a change.

Can n8n run an SEO audit?

Yes. Site Audit > Run crawls up to 30 pages and reports dead pages, broken internal links, duplicate or missing titles and descriptions, thin content, noindex pages, canonical mismatches, redirects and slow pages. Site Audit > Analyze Page scores one page from 0 to 100. Neither needs Search Console.

Do workflows spend my prepaid AI visibility scans?

No. Run Scan uses the workspace's AI credits. If they cannot cover the scan, no scan starts and the call is refused with INSUFFICIENT_CREDITS (HTTP 402). Prepaid scans are only spent from the SEOmatic app or an MCP agent.

I built workflows with version 1.x. What changes in 2.0.0?

2.0.0 replaces the 1.x Tool and Arguments (JSON) fields with typed resources and operations. Open each SEOmatic node and pick the matching operation.

digi-business-uk

Each local area page used to take us half a day to create and optimize.


With SEOmatic, we can create hundreds of pages in the same time, which helps our clients make the best use of their budget.


It's transformed how we deliver scalable SEO solutions.

will-hawkins

Will Hawkins

Marketing Director, Digi-Business UK

Give Your Site an SEO Team

Agents read your Search Console data, do the work, and prove what actually moved. You decide what ships.

  • You decide what ships
  • Verified live
  • One-click rollback

14-Day Trial for $1, credited to your first payment.