> ## Documentation Index
> Fetch the complete documentation index at: https://docs.waniwani.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Agent traffic

> See which AI agents read your website, check how well agents can use it, and control what they get.

Most AI agents do not run JavaScript. Thus, your web analytics does not see them. Agent traffic gives you these tools for each of your websites:

| Tool | What it does | Setup | Page |
| - | - | - | - |
| Agent readiness | Reads your site as an AI agent and gives it a score from 0 to 100. It shows what stops agents and how to fix it. | None | [Agent readiness](https://docs.waniwani.ai/agent-traffic/readiness.md) |
| Traffic reports | Show each AI agent request to your site: which agents came, which pages they read and which errors they got. | The relay | [Traffic reports](https://docs.waniwani.ai/agent-traffic/reports.md) |
| Agent pages | Serve AI agents a lighter, stored copy of your pages, with your MCP tools at the top. | The relay, with `serveAgentPage` | [Agent pages](https://docs.waniwani.ai/agent-traffic/agent-pages.md) |
| Block agents | Send a `403` to the agents that you block, for each website. | The relay, with `serveAgentPage` | [Block agents](https://docs.waniwani.ai/agent-traffic/blocking.md) |

The relay is a small piece of code in front of your website. It sends each AI agent request to Waniwani. The relay is [`@waniwani/relay`](https://github.com/WaniWani-AI/relay). It is open source under Apache 2.0.

## Add a website

In the dashboard, open **Agent traffic** in the sidebar. If your organization has no website, the **Add website** screen opens. If not, click **+ Add website** at the end of the website list.

The screen has two parts. You can do one part or the two parts.

**1. Scan the website**

Under **Agent readiness**, enter the address of your website and start the scan. You do not have to install code. The scan takes approximately 1 minute. When it starts, the **Readiness** page of the website opens.

**2. Set up the relay**

Under **Agent traffic**, click **Set up** next to the platform that serves your website. The setup screen shows the code with your key and your region. The platform pages show the same steps:

* [Vercel](https://docs.waniwani.ai/agent-traffic/vercel.md)
* [Cloudflare](https://docs.waniwani.ai/agent-traffic/cloudflare.md)
* [AWS CloudFront](https://docs.waniwani.ai/agent-traffic/cloudfront.md)
* [Self-hosted Next.js](https://docs.waniwani.ai/agent-traffic/self-hosted.md)
* [ASP.NET on IIS](https://docs.waniwani.ai/agent-traffic/aspnet.md)

**3. Do the check**

In **Page to check**, enter the address of one of your pages and click **Check now**. Waniwani sends one request to that page as an agent. When the relay records the request, the website shows **Live**.

For a different platform, [contact us](mailto:contact@waniwani.ai).

## The website sections

Each website in the sidebar has these sections:

| Section | Contents |
| - | - |
| **Overview** | The main numbers for the website, the readiness score and the top fix |
| **Traffic** | The agent requests, in the tabs **Overview**, **Agents** and **Events**. The access rules are in **Agents**. |
| **Pages** | Each path that agents read, what agents get from it today, and the paths that get an agent page |
| **Readiness** | The readiness score and the list of checks |
| **Settings** | The status of the relay, agent pages, goals, agent files, protocols, and the control to delete the website |

## Agents in a real browser

Some agents operate a real browser. The relay cannot find the difference between their requests and the requests of a person. On pages that have the Waniwani chat embed, the [chat embed beacon](https://docs.waniwani.ai/sdk/chat/embed.md#agent-traffic-beacon) finds many of these agents. To turn it on, add `data-agent-beacon` to the embed script tag. The setup screen shows this step as **Add the chat embed**.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.