---
description: A repeatable test for AI agents on your website: write buyer tasks, run them with real agents, log each failure and its cause, and fix from the log.
title: Test Your Website With an AI Agent
image: https://cdn.prod.website-files.com/6b00ac6e3b04f0fd00321496/6b04b9d9ea2ff1b849f2215c_og-content-academy.png
canonical_url: https://momenticmarketing.com/content-academy/testing-your-website-with-ai-agents
last_updated: 2026-11-30T12:00:00.000Z
---

> Index of this website for AI agents: [/llms.txt](/llms.txt)

[Skip to main content](#main)

Content Academy31 lessons

What you'll be able to do

For content leads, web managers and QA leads who want evidence before they change pages for AI agents.

* Write five buyer tasks with known answers.
* Run them with two kinds of agent, several times each.
* Keep a failure log that names the page, the element and the cause of each failure.
* Turn the log into fixes with owners and retest dates.

To find out what AI agents can do on your website, give two of them a buyer's tasks, run each task several times, and log each failure with its page and cause. An audit lists what might go wrong, and a task test records what went wrong on your pages with the agents your buyers use. An AI agent is software that reads websites and completes tasks for a person. Agent experience optimization (AXO) is the work of fixing what such a test finds, so agents can read and use your pages.

## Momentic's method

Momentic runs a task test, in which real agents attempt buyer tasks and we log each failure, alongside an agent operability audit. The audit walks one flow (an enquiry, a booking, a checkout) in a Playwright-controlled browser and scores 24 checks from 0 to 2\. Two rules from the audit apply to any test. Capture the accessibility tree twice, once when the page loads and once after it settles, because a fast agent reads the first one. End the walk one step before anything with a real effect, such as a lead, an order or a payment, and say so in the report. Our own contact form scored 25 of 44 on September 11, 2026, with 0 of 6 for validation messages an agent can read.

## Write the tasks

A task is something a buyer would ask an agent to do, in the buyer's words, with an answer you can check. Write five:

* A fact task: "What does yourbrand's Pro plan cost per month if we pay annually?"
* A comparison task: "Does yourbrand support float pool staffing and shift swaps? Which plan includes them?"
* A fit task: "Does yourbrand work with Epic for a 300-bed hospital?"
* A contact task: "How do I request a demo, and how soon will they reply?"
* An action task: "Fill in the demo request form for me with these details, and stop before sending."

For each task, write the correct answer and the page it comes from before you run anything.

## Choose the agents

Use at least two agents of different kinds, because they read pages differently (the lesson [How AI agents read a web page](/content-academy/how-ai-agents-read-websites) explains the difference):

* An assistant that fetches pages: ChatGPT with search, Claude with web search, Perplexity or Microsoft Copilot.
* A browser agent that clicks and types: an agent mode in ChatGPT, Claude in Chrome, or another agent your buyers use.

Run each task at least twice per agent, in new chats, and three times before you decide on a fix. Agents give different answers to the same task from one run to the next.

For safety, tell the agent to stop before it sends any form, and run action tasks on a test page or with test details your team can recognize. Do not let a test agent create real orders, bookings or leads without telling the team that receives them.

## Log each run

Use one row per run:

| Column          | What to write                                        |
| --------------- | ---------------------------------------------------- |
| Task            | The task number and text                             |
| Agent and mode  | For example "Claude, web search" or "ChatGPT agent"  |
| Date and run    | Date, and run 1, 2 or 3                              |
| Result          | Completed, wrong answer, partial, or failed          |
| Answer given    | The agent's answer, copied                           |
| Pages it used   | The URLs it says it read                             |
| Where it failed | The page and the element: a link, a field, a section |
| Cause           | One cause from the list below                        |
| Fix and owner   | What to change, and who changes it                   |
| Retest date     | When you will run the task again                     |

Causes to choose from:

* Fact not in the page text (in an image, a script or a closed tab).
* Fact on a page the agent did not open (no link, unclear link text, or a 404).
* Facts that disagree across pages.
* Link or button name that does not say what it does.
* Form field without a label, or a form the agent could not send.
* Blocked by a bot check, a login or a firewall rule.
* The agent made up an answer the pages do not support.

## Momentic's own test

On November 27, 2026, we ran three tasks on Momentic's live website and on the new website's staging copy, with a research agent: Claude Haiku in Claude Code, reading pages only with its WebFetch tool, up to 8 pages per run, no forms sent. Each task was run twice on each website.

| Run                | Starting prices                                                          | How to book an intro call                         | Email and phone                          |
| ------------------ | ------------------------------------------------------------------------ | ------------------------------------------------- | ---------------------------------------- |
| Live, run 1        | Failed: FAQ question with no answer; /pricing and /services returned 404 | Completed: footer form on Home, "within 24 hours" | Phone completed; email only from JSON-LD |
| Live, run 2        | Failed: same; it also noted the JSON-LD priceRange of "$" and "$$"       | Completed: footer form on Home                    | Phone completed; email only from JSON-LD |
| New website, run 1 | Completed: "Projects start at $5,000" and "$3,000 per month"             | Completed: /contact, "within one business day"    | Phone completed; email only from JSON-LD |
| New website, run 2 | Completed: same quotes                                                   | Completed: /contact                               | Phone completed; email only from JSON-LD |

On November 30, 2026, the new website replaced the old one on momenticmarketing.com. That night we ran the same three tasks on the live website with the same agent and the same limits. Each task was run twice.

| Run                      | Starting prices                                                                                                                                                             | How to book an intro call                                                       | Email and phone                                                                |
| ------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------ |
| Live after launch, run 1 | Completed: /services, "Projects start at $5,000, monthly work starts at $3,000 per month, and consulting is hourly." The agent read the same prices on Home and in llms.txt | Completed: /contact, "we'll email you within one business day to set up a call" | Completed: email and phone in the text of /contact                             |
| Live after launch, run 2 | Completed: Home, "Projects start at $5,000\. Monthly SEO, AI search and content work starts at $3,000 per month."                                                           | Completed: /contact, "within one business day"                                  | Completed: email and phone in the text of /contact; phone also in the Home FAQ |

Run 1 fetched 4 pages and run 2 fetched 3, out of the 8 allowed. The email address, which the four November 27 runs read only from JSON-LD, was in the text of /contact in both runs. WebFetch returns a model's reading of each page, so we checked each quoted sentence against the page's HTML afterward, and each one matched.

We also loaded both contact pages in headless Chrome with Playwright, a browser automation tool that coding agents use, and read the accessibility tree. The live footer form's fields were named by their placeholders ("Justin", "Time", "aigoals.org"). The new contact form's fields were named by their labels, and its Send button was disabled with the message "The spam check has not finished in this browser."

From those runs, the failure log had four rows: a missing price (fixed on the new website), a 404 for /pricing linked from [llms.txt](/content-academy/llms-txt-and-agent-files), an email address hidden by Cloudflare's email obfuscation, and a spam check that blocks an automated browser from sending the contact form. Hiding the email reduces spam, and the spam check blocks automated form submissions, including ones an agent sends for a real buyer, so the owner of each setting decides whether to keep it.

The test was small: 4 runs with one agent and one model. A larger test would add a browser agent and more runs per task.

## Turn the log into fixes

Sort the log by cause. Content causes (missing facts, unclear links, facts that disagree) go to the content team. Template causes (labels, duplicate text, script-only content) go to the web team. Access causes (bot checks, firewall, login) go to whoever owns security, with the business trade-off written down. Retest each fixed task with the same agents and the same wording, and keep the old rows so you can compare.

## What this means for AI answers

The fact tasks in this test are close to the prompts you track for AI answers, and they vary from run to run in the same way. The lesson [Measuring mentions, citations and share of citations](/content-academy/measuring-ai-mentions-citations) shows how many runs to trust and how to tell noise from change.

## Worked example

yourbrand.com ran the five tasks above with Claude (web search) and ChatGPT (agent mode), three runs each (task 5 in agent mode only), 27 runs in total.

| Task                               | Completed                | Main cause of failures                                                   | Fix                                    |
| ---------------------------------- | ------------------------ | ------------------------------------------------------------------------ | -------------------------------------- |
| Pro plan annual price              | 2 of 6                   | Annual price appears only after a toggle click                           | Annual price in the pricing table text |
| Float pool and shift swaps by plan | 5 of 6                   | One run used a 2024 blog post with the old plan names                    | Update the post, link it to /pricing   |
| Epic, 300-bed hospital             | 0 of 6                   | No page says which EHR systems yourbrand connects to                     | New integrations page                  |
| Request a demo, reply time         | 6 of 6                   | None                                                                     | None                                   |
| Fill in the demo form              | 1 of 3 (agent mode only) | Fields named by placeholders; "Hospital" field read as "e.g. St. Mary's" | Connected labels                       |

The team fixed the pricing table and the labels in one sprint and wrote the integrations page in the next, then reran all five tasks.

## Test your own website (about 30 minutes)

1. Write three tasks from the list above with their correct answers and source pages (10 minutes).
2. Run each task twice with one assistant that fetches pages, in new chats, and paste the answers into the log (10 minutes).
3. Run the contact task once with a browser agent, telling it to stop before sending (5 minutes).
4. Fill in Result, Where it failed and Cause for each row, and write one fix per failure (5 minutes).

## Check your page

* Each task has a correct answer and a source page written before the test.
* Each task ran at least twice per agent, in new chats.
* Each failure names a page, an element and a cause.
* No test sent a real form without the receiving team knowing.
* Each fix has an owner and a retest date.

Clear checks

## What to do next

Next, count how often agents request your pages and files, in [Measuring AI agent traffic](/content-academy/measuring-ai-agent-traffic). Momentic runs agent task tests on client websites and fixes what fails as part of [agent experience optimization](/capabilities/axo).

## Questions about this lesson

How do I test whether an AI agent can use my website?

Write buyer tasks with known answers, run each one at least twice with two kinds of agent, and log each failure with the page, the element and the cause.

Is it safe to let an AI agent fill in my forms during a test?

Tell the agent to stop before sending, use a test page or test details, and tell the team that receives form submissions before you start.

## What changed

Last updated November 2026

![](https://cdn.prod.website-files.com/6b00bc449c8cb14f592e05e8/6b04a19d21e0d2bbf114b068_6b04a17c48a95257ee7df0a5_tamara-hellgren-portrait-900.webp)

Written by

## Tamara Hellgren

Head of Content Strategy

Tamara Hellgren is Head of Content Strategy at Momentic. She has worked in SEO since 2016.

[Read the author's profile](/team/tamara-hellgren)

![](https://cdn.prod.website-files.com/6b00ac6e3b04f0fd00321496/6b00b7e2cb70ab46675d0bfd_momo-momentic-mascot.webp)

## More lessons from the Content Academy

[See all lessons](/content-academy)

```json
{
  "@context": "https://schema.org",
  "@graph": [
    {
      "@type": "Organization",
      "@id": "https://momenticmarketing.com/#organization",
      "name": "Momentic",
      "legalName": "Momentic LLC",
      "alternateName": [
        "Momentic LLC",
        "Momentic®",
        "Momentic™"
      ],
      "url": "https://momenticmarketing.com/",
      "logo": {
        "@type": "ImageObject",
        "url": "https://cdn.prod.website-files.com/6b00ac6e3b04f0fd00321496/6b00b7e274cd0b435ba8b505_momentic-logo.svg"
      },
      "sameAs": [
        "https://www.linkedin.com/company/momentic-seo",
        "https://www.facebook.com/MomenticSEO/",
        "https://twitter.com/MomenticSEO",
        "https://www.instagram.com/momenticseo/",
        "https://www.crunchbase.com/organization/momentic-677e",
        "https://clutch.co/profile/momentic"
      ]
    },
    {
      "@type": "WebSite",
      "@id": "https://momenticmarketing.com/#website",
      "name": "Momentic",
      "url": "https://momenticmarketing.com/",
      "publisher": {
        "@id": "https://momenticmarketing.com/#organization"
      }
    },
    {
      "@type": "Article",
      "@id": "https://momenticmarketing.com/content-academy/testing-your-website-with-ai-agents#article",
      "headline": "Testing your website with an AI agent",
      "description": "A repeatable test for AI agents on your website: write buyer tasks, run them with real agents, log each failure and its cause, and fix from the log.",
      "image": [
        ""
      ],
      "wordCount": "1635",
      "url": "https://momenticmarketing.com/content-academy/testing-your-website-with-ai-agents",
      "datePublished": "2026-11-27T12:00:00.000Z",
      "dateModified": "2026-11-30T12:00:00.000Z",
      "author": {
        "@type": "Person",
        "@id": "https://momenticmarketing.com/team/tamara-hellgren#person",
        "name": "Tamara Hellgren",
        "url": "https://momenticmarketing.com/team/tamara-hellgren"
      },
      "publisher": {
        "@id": "https://momenticmarketing.com/#organization"
      },
      "isPartOf": {
        "@id": "https://momenticmarketing.com/content-academy#course"
      },
      "inLanguage": "en-US"
    },
    {
      "@type": "LearningResource",
      "@id": "https://momenticmarketing.com/content-academy/testing-your-website-with-ai-agents#lesson",
      "name": "Testing your website with an AI agent",
      "url": "https://momenticmarketing.com/content-academy/testing-your-website-with-ai-agents",
      "description": "A repeatable test for AI agents on your website: write buyer tasks, run them with real agents, log each failure and its cause, and fix from the log.",
      "learningResourceType": "Lesson",
      "position": "26",
      "educationalLevel": "Beginner",
      "teaches": "Writing agent tasks; running them with fetch-based and browser agents; logging failures with causes; turning the log into fixes",
      "timeRequired": "PT30M",
      "inLanguage": "en-US",
      "author": {
        "@id": "https://momenticmarketing.com/team/tamara-hellgren#person"
      },
      "publisher": {
        "@id": "https://momenticmarketing.com/#organization"
      },
      "isPartOf": {
        "@type": "Course",
        "@id": "https://momenticmarketing.com/content-academy#course",
        "name": "Content Academy",
        "url": "https://momenticmarketing.com/content-academy",
        "provider": {
          "@id": "https://momenticmarketing.com/#organization"
        }
      }
    },
    {
      "@type": "BreadcrumbList",
      "itemListElement": [
        {
          "@type": "ListItem",
          "position": 1,
          "name": "Home",
          "item": "https://momenticmarketing.com/"
        },
        {
          "@type": "ListItem",
          "position": 2,
          "name": "Content Academy",
          "item": "https://momenticmarketing.com/content-academy"
        },
        {
          "@type": "ListItem",
          "position": 3,
          "name": "Testing your website with an AI agent",
          "item": "https://momenticmarketing.com/content-academy/testing-your-website-with-ai-agents"
        }
      ]
    }
  ]
}
```
