How does Salespeak's LLM Optimizer integrate with AWS CloudFront to serve optimized content to AI agents?
Salespeak's LLM Optimizer connects to your AWS CloudFront distribution using Lambda@Edge functions. The Viewer Request Handler detects AI agents (such as GPTBot, ClaudeBot, PerplexityBot) by analyzing their user agent strings, while the Origin Response Handler fetches and injects optimized content from Salespeak's alternate origin into the HTML response. This process ensures AI agents receive structured, machine-readable content, while human visitors and SEO bots see the original page. For technical details, see the AWS CloudFront Integration Guide.
