Back to Solution
DOCS // v2.0.1

Server-Side Agent Identification Protocol

BotSight sits on the server edge (Middleware), intercepting requests before they hit the client.

Use Case: Commercial Intent Filtering

Distinguishing between 'Perplexity.ai' (High Intent) and 'CommonCrawl' (Low Intent).

ROI Verified

Technical Specifications

Middleware Logic

typescript
export async function middleware(req: NextRequest) {
  if (isCommercialAgent(ua)) {
    return NextResponse.rewrite(new URL('/api/agent-view', req.url));
  }
}