Package Information
Available Nodes
Documentation generating…
Documentation
n8n-nodes-theseoagent
n8n community node for The SEO Agent. Run keyword research with real search data, deep SEO audits, fact-checked article generation and native CMS publishing as n8n operations over the public REST API.
The package ships one node, The SEO Agent, and one credential, The SEO Agent API. The node is marked usableAsTool, so an n8n AI Agent can call it as a tool.
API reference: theseoagent.ai/docs/api
Install
n8n GUI (self-hosted): Settings > Community Nodes > Install, enter n8n-nodes-theseoagent, tick the risk box, Install.
Self-hosted via npm:
cd ~/.n8n/nodes
npm install n8n-nodes-theseoagent
Restart n8n afterwards. Requires Node.js 20 or later.
n8n Cloud: community nodes appear on Cloud only after n8n verifies them. Until then, use a self-hosted instance or the built-in HTTP Request node with the same API key.
Credentials
- You need an account on the paid plan: $1 for a 3-day trial, then $99/mo. Start at theseoagent.ai/subscribe.
- Mint an API key (org admin only) at theseoagent.ai/settings/api-keys. The
sk_live_...key is shown once, so copy it then. - In n8n, create a credential of type The SEO Agent API and paste the key. Leave the Base URL at the default
https://www.theseoagent.ai/api/v1.
The credential test calls GET /projects, so a green check means auth works end to end. That test needs the projects:read scope, so a key without it fails the test even if it is otherwise valid.
Operations
Each operation needs the API-key scope listed below. The simplest setup is a key minted with all scopes; a narrowly scoped key gets 403 insufficient_scope on anything outside its grant.
| Resource | Operation | Endpoint | Scope | Notes |
|---|---|---|---|---|
| Project | Get Many | GET /projects |
projects:read |
Lists the projects (sites) on your account. Start here to get a project_id. Also used by the credential test. |
| Article | Get Many | GET /articles |
articles:read |
Filters: Project ID, Status. Cursor pagination (see below). |
| Article | Get | GET /articles/{id} |
articles:read |
Full article body: content_markdown, content_html, meta description, tags. |
| Article | Generate | POST /agents/generate |
articles:write |
Async, returns 202 with job_id + poll_url. Cap: 1 article per project per day. |
| Article | Publish | POST /agents/publish |
articles:publish |
Synchronous. Pushes the article to the connected CMS (WordPress, Webflow, Shopify, Wix, Ghost or webhook). |
| Keyword Research | Run | POST /agents/keyword-research |
keywords:run |
Async, returns 202 with job_id. Cap: 10 runs per day. The project must have a domain set. |
| Audit | Run | POST /agents/audit |
audit:run |
Async, returns 202 with job_id + report_url. Cap: 5 runs per day. |
| Job | Get | GET /jobs/{id} |
articles:read |
Polls any async job. Needs articles:read regardless of job type, including audit and keyword research jobs. |
Example: generate an article and wait for it
Generate, Keyword Research Run and Audit Run do not block. They return straight away with a body like:
{
"data": {
"job_id": "0b9e...",
"status": "queued",
"poll_url": "/api/v1/jobs/0b9e..."
},
"request_id": "..."
}
Poll with Job > Get plus a Wait node:
- The SEO Agent node: Article > Generate (or Audit > Run, Keyword Research > Run).
- Wait node: 60 seconds.
- The SEO Agent node: Job > Get, with Job ID set to
{{ $('The SEO Agent').item.json.data.job_id }}. - If node: check
{{ $json.data.job.status }}. Loop back to the Wait node until the status is terminal:succeeded,failedorcanceled. Anything else (pending,queued,running) means the job is still running.queuedonly appears in the202response itself; the poll endpoint reports a job that has not been picked up yet aspending. - When it succeeds, add Article > Get to read the body, or Article > Publish to push it to your CMS.
Generation usually takes several minutes, audits 1 to 2 minutes, keyword research 2 to 6 minutes.
Example: start a workflow when an article is published
A dedicated trigger node is planned. Today you can do the same with n8n's built-in Webhook node:
- Add a Webhook node (POST) and copy its production URL.
- In The SEO Agent, open Settings > Webhooks, create a webhook, paste the URL and pick
article.publishedand/oraudit.completed. - Deliveries carry an
x-seobot-signatureheader (HMAC-SHA256 overtimestamp.body). The verification steps are in the API docs.
Pagination
Article > Get Many returns up to Limit items (max 100) plus a next_cursor. Pass that value back into the Cursor field to fetch the next page; null means the end of the list.
Rate limits
- Per key: 60 requests per minute, 1000 per day.
- Keyword Research Run: 10 per day (per key and per org).
- Audit Run: 5 per day (per key and per org).
- Article Generate: 1 per project per day.
429 responses carry a Retry-After header and a retry_after_seconds field.
Errors
Every response is wrapped in an envelope: { "data": ..., "request_id": "..." } on success, { "error": { "code", "message" }, "request_id": "..." } on failure. Useful codes: subscription_required (402), insufficient_scope (403), not_found (404), audit_already_running / bootstrap_already_running / queue_full (409), rate_limited / daily_limit_reached (429). The audit 409 (audit_already_running) includes the running job_id + poll_url, so you can poll the existing job instead of failing. The keyword research 409s do not carry a job_id; retry once the current run finishes.
Compatibility
- Built and linted with
@n8n/node-cliagainstn8n-workflow2.x. - Using the node as a tool from an n8n AI Agent (
usableAsTool) needs an n8n version with community-node tool support; on self-hosted versions where it is gated, setN8N_COMMUNITY_PACKAGES_ALLOW_TOOL_USAGE=true. - Node.js 20 or later.
Development
npm ci --ignore-scripts
npm run lint # n8n-node lint (the rules n8n's verification scan uses)
npm run build # n8n-node build
npm run smoke # offline checks against the built node
npm run dev # loads the node into a local n8n
Releases are published from GitHub Actions with npm provenance (see .github/workflows/publish.yml).
Resources
Version history
See CHANGELOG.md.