AI Agent · 42 tools · Open Source

SEO Agent

A fully autonomous SEO agent that audits your site, tracks keywords, optimizes content, monitors competitors, and fixes issues by opening GitHub PRs — all without human intervention. Runs daily, weekly, and monthly on cron. Reports everything via Discord.

AI SDK v6Claude Sonnet 4 + Gemini 2.5Next.jsGoogle Search ConsoleGA4DiscordGitHub APIDataForSEOVercel Workflow
Tools: 42
Schedules: Daily / Weekly / Monthly
Notifications: Discord, Slack, Email

Capabilities

What it does for you

1

Full technical audit in minutes

Meta tags, headings, schema, Core Web Vitals, security headers, hreflang, sitemap validation — the agent runs a comprehensive audit across your entire site autonomously.

2

Content strategy on autopilot

Keyword research, content gap analysis, topic cluster mapping, content decay detection, and content calendar planning. The agent identifies opportunities you'd miss manually.

3

Automated fixes via GitHub PRs

When the agent finds fixable issues — missing alt texts, broken schema, thin content — it generates the code fix and opens a pull request. You just review and merge.

4

Competitor intelligence

Monitors competitor sites for changes, tracks their content strategy, scrapes sitemaps, and analyzes SERP positioning. Weekly digest delivered to Discord.

5

Link building at scale

Deep backlink analysis, high-value target identification, unlinked mention detection, and personalized outreach email drafting. Everything except pressing send.

6

Reports & closed-loop feedback

Structured Markdown audit reports, visual dashboards, and Discord notifications. Tracks every recommendation and measures impact over time. Daily keyword alerts, weekly full audits, monthly strategic reviews.

Architecture

How it works

Next.js App

Chat UI

useChat

/api/chat

Route Handler

ToolLoopAgent

Claude Sonnet 4

Vercel Workflow

Durable execution

GSC

5 tools

Audit

4 tools

Content

5 tools

Monitor

3 tools

Actions

9 tools

Google APIs

Target Website

Vercel AI Gateway

Competitor Sites

GitHub + Discord

The agent uses Vercel AI SDK’s ToolLoopAgent pattern. Given a prompt, the LLM autonomously decides which tools to call and in what order. A full audit triggers all 42 tools. A focused check runs only the relevant subset.

Two-model strategy: Gemini 2.5 Pro handles heavy analysis (content audits, competitor deep-dives) while Gemini 2.5 Flash runs lighter tasks at lower cost.

42 Tools

Complete tool inventory

Google Search Console (4)

querySearchConsoleQuery GSC for keywords, pages, and performance data
inspectUrlCheck indexing status and crawl info for any URL
checkSitemapStatusVerify sitemap submission and coverage
queryBacklinksAnalyze external links pointing to the domain

Performance (1)

measureCoreWebVitalsMeasure LCP, FID, CLS, TTFB via PageSpeed Insights

Audit (4)

deepAuditPageFull page audit — meta, headings, images, schema, links, content
crawlSiteDiscover all pages via sitemap.xml or HTML crawl
auditSecurityHeadersCheck HTTPS, CSP, HSTS, and security headers
crossPageHreflangAuditValidate hreflang implementation across locales

Analysis (6)

detectCannibalizationFind pages competing for the same keywords
analyzeContentGapsIdentify missing topics vs. competitors
analyzeCompetitorSERPAnalyze top SERP results for target keywords
researchKeywordsFind keyword opportunities with volume and difficulty
detectContentDecayIdentify pages losing traffic over time
identifyContentToPruneFlag thin or underperforming content for removal

Content Optimization (5)

optimizePageContentAI-powered content improvement suggestions
generateMissingContentDraft content for identified gaps
suggestInternalLinksFind internal linking opportunities
planContentCreate content calendar based on keyword research
optimizeForSERPFeaturesOptimize for featured snippets and rich results

Quality & E-E-A-T (2)

auditEEATEvaluate Experience, Expertise, Authority, Trust signals
generateAltTextsGenerate SEO-optimized alt text for images

Monitoring (3)

monitorCompetitorChangesTrack competitor site changes and new content
trendingTopicsIdentify trending topics in the industry
scrapeCompetitorSitemapsMap competitor site structure and content

Off-page & Link Building (4)

deepBacklinkAnalysisAnalyze backlink profile quality and distribution
findLinkBuildingTargetsIdentify high-value link building opportunities
findUnlinkedMentionsFind brand mentions without backlinks
draftOutreachGenerate personalized outreach emails for link building

Strategy (1)

buildTopicClusterMapCreate pillar-cluster content strategy

Analytics (1)

queryAnalyticsQuery GA4 for traffic, conversions, and user behavior

Execution & Actions (5)

generateCodeFixGenerate code fixes for technical SEO issues
createGitHubPRCreate pull requests with automated fixes
writeReportGenerate structured Markdown audit reports
generateDashboardCreate visual SEO performance dashboards
autoRefreshDecayingContentAutomatically update declining content

Notifications & Verification (2)

notifyTeamSend alerts and reports via Discord webhooks
verifyDeployedFixVerify that deployed fixes actually work

Feedback & Tracking (4)

readRepoContextRead repository context for informed decisions
submitToIndexingSubmit URLs to Google for indexing
trackRecommendationsTrack past recommendations and measure their impact
manageActionsManage and prioritize action items across audits

Autonomous Workflow

Runs on cron, reports via Discord

Daily · 6:00 UTC

Keyword Monitoring

Checks keyword rankings, detects position changes, analyzes emerging trends, follows up on past recommendations, and sends Discord alert with gains/losses summary.

Weekly · Monday 8:00 UTC

Full Audit + Auto-Fix

Comprehensive technical audit via Vercel Workflow for durable execution. Content decay detection, automated GitHub PRs for fixable issues, closed-loop feedback on past fixes, and detailed Discord report with action items.

Monthly · 1st, 9:00 UTC

Strategic Review

Full strategic analysis via Vercel Workflow including competitor monitoring, content gap analysis, topic cluster review, content planning for next month, and trend identification.

Bi-monthly · 1st & 22nd, 8:00 UTC

Deploy Verification

Automated verification of deployed fixes with JSON-LD validation, schema checking, and impact measurement against baseline metrics.

Discord Integration

SEO Agent

Weekly Audit Report — cyrcid.com

Score: 72/100 | 3 critical | 8 warnings | 2 PRs created

Critical: Missing meta descriptions on /en/pricing, /en/features
Fixed: Alt texts added (PR #47), schema markup updated (PR #48)
Action needed: "digital product passport" — 0 impressions, content too thin

Get Started

Deploy your own in 5 steps

The full source code is on GitHub. Clone it, add your API keys, deploy to Vercel, and you have a production SEO agent running on your domain.

1

Clone the repo

git clone https://github.com/jamnyjakub700-cloud/seo-agent — then npm install. The README covers everything.

2

Connect Google Search Console

Verify your domain in GSC, create OAuth credentials in Google Cloud Console. The agent needs read access to search analytics and URL inspection.

3

Add your API keys

Anthropic API key for the AI engine. Optionally: DataForSEO for keyword data, Google Custom Search for SERP tracking. All configured via environment variables.

4

Choose your notification channel

Discord webhook, Slack webhook, or email — pick what works for your team. The agent sends daily keyword alerts, weekly audit reports, and monthly strategy reviews.

5

Deploy to Vercel

Connect the repo to Vercel, add environment variables, deploy. Cron jobs are pre-configured — daily at 6:00 UTC, weekly Monday 8:00, monthly 1st 9:00. That’s it.

Contact

Let’s talk.

Currently open to

  • Founding roles at early-stage B2B SaaS (Europe, remote)
  • Fixed-scope AI agent sprints (4 to 8 weeks)
  • Advisory for non-technical founders building with AI

or email jakub.jamny@cyrcid.com