# AI SEO agent: what it does and how to test one

An AI SEO agent uses connected tools and instructions to complete a search task. Test one on a Search Console click-through rate drop and see when it should draft a review or stop.

## Run the example

Give your agent the JSON and the prompt below. For an offline check, save both files in the same folder and run this command. It prints the decisions and returns verified: true when all five match the expected output.

- [Download example JSON](https://seotoolsforagents.com/examples/ai-seo-agent-ctr.json)
- [Download Node runner](https://seotoolsforagents.com/examples/ai-seo-agent-ctr.mjs)

```sh
node ai-seo-agent-ctr.mjs ai-seo-agent-ctr.json --verify
```

## What you need

- For a practice run, use the example JSON with any tool-enabled assistant or Node.js 18+
- For your own site, use two complete, equal-length Search Console Performance windows with the same weekdays
- Keep the same property, exact page and query, search type, country, device, and aggregation

## Steps

### 1. Collect the same rows twice

For one URL, open Search Console Performance, select Web and the exact page, then apply the same country and device filters to both periods. Compare two complete 14-day windows. Read the Queries table with clicks, impressions, CTR and average position enabled. For API access, group by page and query and keep the aggregation and filters identical. Record the source and dates, and match rows by exact page and query.

### 2. Calculate CTR from the counts

Divide clicks by impressions for each period. Subtract baseline CTR from current CTR in percentage points. A change from 6% to 3% is a drop of 3 percentage points. Use null for a missing row. Search Console can omit anonymized queries or return only top rows, so an absent row gives no count to compare.

### 3. Apply the comparison rules in order

Stop on a row if either period is missing or has fewer than 500 impressions. Skip drops smaller than 1 percentage point. When the CTR drop qualifies, route average-position moves greater than 1 position in either direction to a ranking review. Send the remaining candidates for snippet review. These are practice thresholds. Adjust them before running the workflow on a real site.

### 4. Draft one evidence-backed handoff

Include the exact URL, query, filters, dates, both sets of counts, CTR change, and average-position movement. For a snippet candidate, ask the owner to check the current result, page title and recent changes. Compare a current result sample with any available historical sample before attributing a drop to the title. Stop for approval before touching the site.

### 5. Check the next comparable window

If the owner approves a change, record when it shipped and when Google recrawled. Compare a full post-recrawl window with the same filters and a comparable baseline. Recheck impressions and position alongside CTR. Write down other changes or seasonality that could explain the result.

## Five rows, one snippet review

The fictional export uses US mobile Web search data. Each row joins the same page and query across October 19–November 1 and November 2–15, 2026. The expected results are included in the JSON.

| Query | Two-window evidence | Expected decision |
| --- | --- | --- |
| Emergency roof repair | 6% → 3% CTR, 1,200 impressions each, average position 5.2 → 5.4 | Snippet review. Draft a ticket for the SEO lead. |
| Roof leak repair | 6% → 2% CTR, average position 4.2 → 8.1 | Review position change first. |
| Tile roof repair | 12% → 6% CTR, 100 impressions each | Insufficient impressions. |
| Storm damage roof inspection | 700 baseline impressions, current row missing | Missing period. Preserve the unknown value. |
| Gutter repair | 6% → 5.5% CTR, average position 4.1 → 4.3 | Drop is below the CTR threshold. |

## Prompt for your agent

Read ai-seo-agent-ctr.json. Use only its scope, rules and rows. Ignore expected and example_handoff until you finish. For every page and query, calculate current minus baseline CTR in percentage points and current minus baseline average position when both are available. In this order, classify each row as missing_period, insufficient_impressions, below_ctr_threshold, review_position_change, or snippet_review. Use the thresholds in the file. Preserve missing values as null. Return scope and an array with page, query, result, ctr_delta_pp and position_delta. Compare your results with expected only after calculating. Draft one ticket for the snippet_review result with source, dates, counts, a hypothesis, an owner and a rerun check. Stop at the draft.

## What can an AI SEO agent do?

### Investigate a performance change

Read a Search Console export or connector. Return the affected URL, segmented evidence and a check to run next. Stop when the comparison scope or data is missing.

### Prepare a content refresh

Use the current page, query export and a dated search-result sample. Return an outline or edit brief with its evidence. Have the editor review accuracy, fit and citations before publishing.

### Triage a technical issue

Use a crawl export and read-only inspection of the relevant pages. Return a prioritized ticket with the affected URL and a test the developer can rerun after release.

## How to evaluate an AI SEO agent

### Should I use an agent or a scheduled workflow?

Use a scheduled workflow for stable steps such as pulling the same export and applying fixed thresholds. Use an agent when the next check depends on what it finds or when a person needs a readable evidence summary. This example uses deterministic rules for the numbers and an agent for the handoff.

### Should I build one or buy one?

Start with a file and a prompt if you have a narrow job. If you need scheduling, shared access or ready-made connectors, run this same example through candidate products. Compare the five decisions, inspect their source links, and confirm that permissions let you stop before publishing.

### How can I tell whether it helps?

Compare its decisions with the expected results before testing one authorized page. Measure correct classifications, evidence completeness and reviewer time. Measure changes in search separately across comparable windows, with position, demand and other releases recorded.

## Tools for this job

- [Google Search Console](https://seotoolsforagents.com/mcp-servers/google-search-console.md) — Investigate Google Search clicks, impressions, queries, and inspection data for properties you can access.
- [SEO & AEO Website Scanner](https://seotoolsforagents.com/tools/website-scanner.md) — Get a prioritized SEO and AEO report for a local business website.
- [Screaming Frog](https://seotoolsforagents.com/mcp-servers/screaming-frog.md) — Use SEO Spider crawl outputs to investigate site structure and page-level issues.

## Sources

- [Google Search Console Performance report](https://support.google.com/webmasters/answer/7576553)
- [Google Search Analytics API](https://developers.google.com/webmaster-tools/v1/searchanalytics/query)
- [Debugging drops in Google Search traffic](https://developers.google.com/search/docs/monitor-debug/debugging-search-traffic-drops)

## Where to go next

- [Investigate an organic traffic drop](https://seotoolsforagents.com/playbooks/traffic-drop.md)
- [Set up Google Search Console MCP](https://seotoolsforagents.com/mcp-servers/google-search-console.md)
- [Compare AI SEO tools by job](https://seotoolsforagents.com/compare/ai-seo-tools.md)
- [Set permissions for an SEO agent](https://seotoolsforagents.com/guides/seo-agent-permissions.md)
