AI Bot Monitor is a high-performance middleware solution that tracks AI bot visits to your Vercel-deployed website. Discover exactly what prompts led users to your site with non-blocking logging that maintains optimal performance.
Add AI Bot Monitor to your Vercel project through the marketplace integration.
Choose your preferred storage option:
The middleware automatically starts tracking AI bot visits upon deployment.
// middleware.ts
import { createAIBotMonitor } from '@getaiso/ai-bot-monitor';
const monitor = createAIBotMonitor({
storage: {
type: 'mongodb', // or 'kv', 'webhook', 'console'
mongodb: {
database: 'botlogs',
collections: {
requests: 'all_requests',
botVisits: 'visits'
}
}
},
logging: {
logAllRequests: true,
botDetection: true,
excludePaths: ['/api', '/_next']
}
});
export default monitor.middleware;Retrieve AI bot visit analytics
Get comprehensive request logs
Analyze traffic patterns and trends
AI Bot Monitor automatically detects the following AI bots:
AI Bot Monitor is designed for maximum performance:
Need help? Check out our support resources: