Enriching a Bot Traffic Flag With AI Model Identity and Operator Data Before It Hits Your Warehouse

Classifying sessions at the edge keeps AI traffic from skewing models.

· 8 min read · Updated
Cover illustration for “Enriching a Bot Traffic Flag With AI Model Identity and Operator Data Before It Hits Your Warehouse”
Agent Detection · November 11, 2026 · 8 min read · 1,692 words

To detect AI agents on a website, classify each session at the edge using request headers, source IP verification, and behavioral timing before writing it to the warehouse. Enriching a bot-traffic flag with operator identity, crawler or agent name, declared purpose, and session type gives downstream models usable evidence. A binary flag cannot distinguish content collection, user-directed automation, and a human arriving from an AI answer.

Why a raw bot-traffic flag corrupts every downstream model that relies on it

Corrupted warehouse input makes automated activity look like buyer behavior. A training crawler repeatedly visiting a page can inflate pageview counts and session-based engagement metrics, while an agent navigating a login or payment flow can resemble a person approaching conversion. If those records go into attribution or intent models without classification, the models carry the same confusion forward. The error begins before any model runs. Aggregation then gives fundamentally different actions the same meaning because the input records do not preserve the distinction.

DataDome's 2026 State of Bot & Agent Security Report found 52.7 billion AI agent and LLM crawler requests across its customers between July 2025 and June 2026. Training crawlers collect material, retrieval systems fetch content for queries, and agentic browsers navigate interactive journeys. Their presence does not establish human interest. A training crawler that visits a page thousands of times for every human visitor it refers back is especially poor evidence of demand, despite the apparent engagement its visits generate.

The problem extends beyond public content pages. The same report found that login pages got most of the high-risk endpoint requests in H1 2026, and the number of requests to login pages each month grew sharply over six months. An agent reaching an authenticated flow may therefore look behaviorally closer to a buyer than a bulk crawler does. That resemblance is not a conversion signal. Without a separate classification, downstream scoring treats the location of an action as evidence of human intent while overlooking who performed it.

An attribution model can learn that crawler IP ranges correlate with high-intent page visits, while an intent model rewards accounts that crawlers happen to revisit. Visitor-identification reporting also goes wrong when it counts bot sessions among the sessions used to work out human coverage. These reporting defects share an upstream cause, namely records that reduce session identity and purpose to a field too coarse for the decisions built on it.

What the bot-traffic flag actually collapses into one field

LLM training crawlers collect pages for model development. GPTBot, ClaudeBot, and CCBot belong in this category and identify themselves through the User-Agent. PerplexityBot is a search and citation indexing crawler. This distinction is important even within automated collection because the operator's reason for reading a page determines what that visit can tell a content-performance model.

On-demand RAG scrapers fetch content in response to a specific user query, often arriving in short bursts and reading a single page. They may not send a Referer header, so the absence of a referral source does not establish that the request was unrelated to an AI system. Their activity expresses a different kind of interest. It indicates that a third-party system selected the content for retrieval. Treating that retrieval as buyer intent substitutes the system's content choice for a person's action.

Agentic browsers and user-prompted agents create a further distinction because they load pages dynamically, execute JavaScript, and navigate authenticated flows. They act on behalf of a user. AI-referred human visitors are different again, consisting of people who read an AI answer and click through to the website. Those sessions can show real buying intent and belong in human identity-enrichment pipelines. Grouping them with automated requests under an undifferentiated AI traffic label discards the distinction most relevant to sales and attribution.

A boolean such as is_bot = true cannot preserve this taxonomy. The evidence used to separate its categories includes the User-Agent, source IP range, Referer, Sec-Fetch-Site, and behavioral timing. Operator identity also requires more than a declared name. The DataDome report found that 80% of AI agents do not properly identify themselves, so User-Agent-only classification is not enough. The taxonomy therefore needs both a description of the session's activity and evidence about whether its claimed origin can be trusted.

How can you detect AI agents on your website before writing a warehouse record?

Identity verification belongs at the edge because that is where the live request evidence is available before it is reduced to a warehouse record. Once the pipeline writes only a collapsed flag and discards the underlying signals, later processing cannot reconstruct them. This is an irreversible loss of evidence. A warehouse transformation can rearrange stored values, but it cannot recover an omitted source IP, missing request header, or discarded timing signal from a boolean.

Operator verification connects a declared identity to its source. A request claiming to originate from Anthropic or OpenAI requires a server-side comparison against published IP ranges or verification through reverse DNS. Anthropic publishes a single shared list of IP ranges covering all of its crawlers. That shared list establishes operator context. The declared crawler name and purpose therefore remain separate inputs to classification alongside source verification.

The DataDome report found that AI agent spoofing rose materially between February and July 2026, with Meta-ExternalAgent the most impersonated agent by volume. A familiar name is not sufficient proof. A downstream model that accepts a stored User-Agent without source verification can treat a fabricated identity as an established operator. If the original request evidence was discarded, the warehouse has no basis for resolving the discrepancy.

No other individual signal closes the gap. Referrer-stripping occurs across AI surfaces, and web, iOS app, and desktop clients on the same engine can produce different pass-through rates. Behavioral classification also needs declarative signals to be precise enough to use. A production detector therefore combines the Referer, User-Agent, Sec-Fetch-Site, incoming UTMs, and behavioral timing with maintained per-engine IP and domain lists. Each layer addresses an ambiguity that another leaves unresolved.

Operators can describe a request as training, search, or user-triggered activity, but the intent they declare has not been independently verified. The record must preserve that distinction too. Enrichment before ingestion keeps source verification, declared purpose, and the behavior seen in the session separate. Post-ingestion cleaning cannot reproduce that separation when the pipeline has already compressed the evidence into one flag.

The enrichment fields that turn a flag into a usable record

The enriched record begins with operator identity and verification status as separate fields. Operator identity names the organization behind the request, such as OpenAI, Anthropic, Meta, or Perplexity, while verification status expresses the evidence supporting that association. The status qualifies the name's analytical use. A status is confirmed when there is an IP-range match, probable when there is a User-Agent match without IP verification, and suspect when the request claims a known operator but the IP does not match published ranges.

The crawler or agent name provides a more granular label, such as GPTBot, ClaudeBot, PerplexityBot, Meta-ExternalAgent, or OAI-SearchBot. The DataDome report classified traffic from more than 100 named AI agents and LLM crawlers, which supports a schema that keeps each name instead of putting them all in one broad AI category. Operator and crawler are not interchangeable fields. The former identifies the organization, while the latter distinguishes the named system making the request. Together with verification status, they allow downstream queries to separate claimed traffic from traffic whose source matches the operator.

Declared crawl purpose records training, search, training-and-search, user action, or undeclared. Its role is to preserve the operator's stated reason for the request without presenting that declaration as independently established fact. Endpoint class describes a different dimension of the same activity. Values including general content, login, cart, payment, form, and account creation distinguish content access from automated activity in more sensitive parts of the website. That distinction is immediately available downstream without a separate query to determine which endpoint category was involved.

Session-type classification then assigns the record to a training crawler, RAG scraper, agentic browser, user-prompted agent, or AI-referred human. This field governs how the session is used. It provides the routing distinction between security analysis, intent scoring, content performance, and human identification, rather than forcing each model to interpret a raw bot flag independently. An AI-referred human should leave the bot-enrichment pipeline and move to person-level identification. The classification process may encounter that visitor, but the resulting person record should not remain stored as a bot session.

How the enriched record changes what downstream models can do

Paid-media attribution can use the session-type field to leave out automated activity instead of relying on a manual audit of suspicious visits. UTM data on an AI-referred human session can still be used, while UTM data on a training crawler session should stay out of campaign reporting. The distinction changes what engagement represents. With automated requests removed from human traffic, cost-per-visit and return-on-ad-spend calculations no longer inherit that source of contamination. Otherwise, heavy crawler activity can make channels with little human intent look productive and send budget toward the wrong traffic.

A model scoped to verified human sessions and AI-referred human visitors evaluates buyer behavior instead of rewarding accounts associated with repeated crawler visits. This protects the meaning of the score. An account should not look ready for sales attention just because its IP ranges overlap with those of an operator whose crawlers make many visits.

Including bot sessions in the denominator inflates that denominator and understates actual identification coverage, while accidentally matching bots against an identity graph can overstate coverage through fabricated contacts. The direction depends on where the error enters. Limiting the calculation to verified human sessions protects both the population being measured and the interpretation of successful matches. AI-referred people belong in that population because their arrival through an AI answer does not make them automated visitors.

Classified crawler records can show which pages training crawlers read most, which operators send RAG scrapers to which content, and which AI surfaces send human visitors. Those are distinct measures of content and GEO performance. The warehouse can then support questions about what AI systems read without mistaking that reading for a buyer's visit.

Sources

  1. AI Traffic Is Up 82%. Can You Tell Which Agents to Trust?
Filed underAgent Detection

More in Agent Detection