How we built ChatGPT’s novel ad stack for user trust and relevance
# How ChatGPT's Ads Stack Handles Intent Across Conversations OpenAI's ads team built a bespoke ad system for ChatGPT because conversational intent develops across multiple turns and does not map cleanly onto the discrete search or page-view events that traditional ad systems expect. The system centers on a post-trained LLM orchestrator that calls tools for retrieval, filtering, scoring, and auction, running in a stateful session that is kept separate from ChatGPT's answer generation. The authors credit this architecture, along with a self-improvement loop and heavy use of Codex, for reaching over $1 billion in annualized revenue run rate less than 200 days after launch. ## Why Conversational Intent Breaks the Request-Response Model - Traditional ad systems react to a single event, such as a search query or page load, and then retrieve, rank, auction, and show an ad. - ChatGPT conversations often have no clear advertising moment. Users plan trips, choose software, or learn hobbies over several turns, and their goals change as constraints appear. - The authors give an example of a running conversation that starts with general running advice and later turns to shoes. The commercial meaning changes with each message, so acting on the first message could target the wrong intent. ## Stateful Sessions and Architectural Separation - The ads session persists for the duration of an eligible turn, remembering and updating context instead of treating each message as a standalone query. - Ad selection runs in a separate service with its own models and code, so ads cannot influence ChatGPT's organic answers. - ChatGPT has no runtime dependency on the ads system. If ad serving is slow or down, the answer still arrives unaffected. - Returning no ad is a normal outcome. The bar for showing an ad is high, and an ad appears only when it clearly benefits both users and advertisers. ## The Orchestrator and Its Agentic Tool Loop - The orchestrator is a post-trained LLM that runs the full ads flow by calling tools iteratively, deciding which tool to call and when. - It must separate current intent from stale context, recognize hypothetical statements, and avoid treating every product mention as a purchase signal. - If the user opts in to personalization, the orchestrator can also use nonsensitive information from past conversations. - The pipeline runs in stages: - **Query preparation:** The conversation is summarized into one or more commercial-intent queries, which are converted to semantic embeddings. A multi-topic conversation can produce several distinct queries, such as one for hiking shoes and another for travel-appropriate product lines. - **Retrieval:** Multiple indices, each tuned for different constraints (for example, product feeds that account for reviews), use approximate nearest-neighbor search to build a broad candidate pool quickly. - **Filtering:** Candidates are removed based on factors such as campaign status, targeting, policy, budget, pacing, placement compatibility, and per-advertiser deduplication. - **Scoring:** Surviving candidates are evaluated for semantic relevance, predicted engagement, and historical performance, and are checked for safety. - **Auction:** The orchestrator nominates plausible candidates, but the auction system applies admission thresholds, pacing, quality-adjusted ranking, pricing, and final selection. The orchestrator neither chooses the winner nor sets the price. ## Final Checks and Delivery in the Chat - After the auction, an ad can still be blocked if it feels out of place in the conversation, even when the conversation and the ad both pass policy checks. - The ads system must return before the ChatGPT response finishes. Late ads are dropped, and chat responses are never delayed to wait for them. - Each ad bundle includes a short, neutral model-written preamble that explains the connection to the conversation, plus the advertiser's creative (title, description, link, and call to action). This keeps ChatGPT's voice neutral while preserving the advertiser's message. - The frontend displays the ad below the response, labeled as sponsored, only if it arrives in time. A selected ad counts as a delivery only after the placement is shown and acknowledged. ## Measurement, Feedback, and Self-Improvement - Logs record granular outcomes at each stage, such as ineligible turns, sessions without retrieval, empty retrieval, candidates that failed eligibility, and delivered ads that received interactions. This lets each stage be improved independently. - Advertisers can integrate through standard logging and reporting pipelines and use the data to refine their strategies. - A strong, high-reasoning model evaluates system outputs and trains smaller, cheaper models for orchestration and retrieval. - User clicks and hides, surveys, advertiser feedback through Ads Manager, and direct team engagement shape product decisions and carry more weight than model-based feedback. ## Looking Ahead The authors plan to test more dynamic ad formats, such as letting users talk directly with businesses through an ad. They see the combination of strict system boundaries and LLM-driven orchestration as the key to making ads useful without treating every conversation as an ad request.