When ChatGPT, Perplexity, Claude, or Google AI Overview answers a user's question by citing a web page, the content they extract almost always comes from the opening section. Research consistently shows that AI models cite the first 30% of a page's content 44% of the time. The top of the page is where citations happen.
Answer capsules exploit this behaviour deliberately. By placing a direct, factual, self-contained answer at the very top of every content page, you maximise the probability that AI models will cite your content when answering related questions. You also increase your chances of appearing in Google featured snippets, which pull from exactly the same position.
This guide covers what answer capsules are, the research behind why they work, the HTML implementation, examples across different page types, how they integrate with AI referral welcome banners, and the broader principles of Generative Engine Optimization (GEO). Use the AgentReady scanner to check whether your pages have answer capsules implemented.
What is an Answer Capsule?
An answer capsule is a visually distinct block of text at the top of a content page that directly answers the core question the page addresses. It is typically 1-2 sentences long, wrapped in a <div class="answer-capsule">, and styled to stand out from the surrounding content.
Here is a simple example. For a page titled "How much does it cost to build a mobile app in the UK?", the answer capsule would be:
<div class="answer-capsule">
<p>Building a mobile app in the UK typically costs between
£15,000 and £150,000 depending on complexity,
with simple apps starting at £15,000-£30,000
and complex platforms reaching £80,000-£150,000.
Most businesses should budget 3-6 months of development time.</p>
</div>
The capsule is not a summary of the page. It is the answer. Everything else on the page supports, expands, and provides evidence for the claim made in the capsule. The capsule is what an AI model extracts and quotes. The rest of the page is what gives the model confidence that the answer is correct and authoritative.
The difference between a capsule and an introduction
A traditional blog post introduction sets up the topic: "In this article, we will explore the costs associated with mobile app development in the UK market..." This tells the reader what the article is about but does not answer the question.
An answer capsule is the opposite. It leads with the answer and skips the preamble. An AI model processing the page does not need to know what the article will explore. It needs the answer. If the answer is "15,000 to 150,000 pounds," that should be the first thing on the page.
The Research: Why Position Matters for AI Citations
The statistical evidence for front-loading answers is compelling across multiple studies and AI models.
The 30/44 rule
Analysis of AI citation patterns shows that the first 30% of a page's content accounts for 44% of all citations. This is not because AI models are lazy. It is a consequence of how retrieval-augmented generation (RAG) works and how attention mechanisms weight early tokens in a context window.
When an AI model retrieves a web page to answer a question, it processes the text sequentially. The attention mechanism gives higher weight to content that appears first. If the answer to the user's question appears in the opening paragraph, the model extracts it with high confidence. If the answer is buried on paragraph 15, the model may not reach it at all, or may give it lower confidence compared to competing sources that lead with the answer.
Google featured snippets follow the same pattern
Google's featured snippet algorithm operates on similar principles. When Google selects content for "position zero" (the featured snippet box above organic results), it overwhelmingly pulls from the first substantive paragraph on the page. Pages that lead with a direct answer are significantly more likely to win featured snippets than pages that bury the answer beneath introductory material.
LLM context window behaviour
Large language models exhibit a "lost in the middle" effect. When processing long documents, they attend most strongly to content at the beginning and end, with reduced attention to content in the middle. By placing your answer at the very top, you position it in the zone of maximum attention. This applies to GPT-4, Claude, Gemini, and every other major model architecture.
Adobe's AI referral conversion data
Adobe's 2025 analytics data shows that visitors arriving from AI referrals convert at 4.4x the rate of organic search visitors and have a 45% lower bounce rate. These visitors arrive with high intent: they asked a specific question, received an AI response citing your page, and clicked through to verify or act on the information. The answer capsule is the content they were sent to see. If it matches what the AI told them, trust is immediate.
HTML Implementation
The HTML markup for an answer capsule is deliberately simple. The answer-capsule class name is important because it serves as a hook for multiple systems: AI referral welcome banners, content scanning tools, and the AgentReady scanner.
Basic markup
<div class="answer-capsule">
<p>Your direct answer here. One to two sentences
that completely answer the page's core question
with specific facts, numbers, or actionable information.</p>
</div>
Recommended styling
Style the capsule to visually distinguish it from the rest of the content. A subtle background colour and left border work well:
<div class="answer-capsule"
style="background: #f0f9ff;
border-left: 4px solid #2563eb;
padding: 1.25rem 1.5rem;
border-radius: 0.5rem;
margin-bottom: 2rem;">
<p style="margin: 0;
font-weight: 400;
color: #1e3a5f;">
Your direct answer here.
</p>
</div>
Tailwind CSS version
<div class="answer-capsule bg-blue-50 border-l-4
border-blue-600 p-5 rounded-lg mb-8">
<p class="m-0 font-normal text-blue-900">
Your direct answer here.
</p>
</div>
Next.js React component
For Next.js projects, create a reusable component:
export function AnswerCapsule({ children }: { children: React.ReactNode }) {
return (
<div
className="answer-capsule"
style={{
background: "#f0f9ff",
borderLeft: "4px solid #2563eb",
padding: "1.25rem 1.5rem",
borderRadius: "0.5rem",
marginBottom: "2rem",
}}
>
<p style={{ margin: 0, fontWeight: 400, color: "#1e3a5f" }}>
{children}
</p>
</div>
);
}
Placement rules
The answer capsule must be the first content element on the page, before the H1 heading. This is counter-intuitive for traditional web design, but it is optimal for AI extraction. The AI model reads the page top-down and encounters the answer before anything else.
The correct order is:
- Answer capsule -- the direct answer
- H1 heading -- the page title (which is typically the question)
- Last updated date -- freshness signal
- Introduction -- 100-200 words expanding the answer
- Main body content -- detailed coverage with H2/H3 subheadings
- FAQ section -- related questions with direct answers
Answer Capsule Examples by Page Type
Different page types require different capsule approaches. Here are examples for the most common content formats.
Product page
For a page about a specific product or service:
<div class="answer-capsule">
<p>p0stman is an AI-native product studio that builds
custom AI agents, web applications, and mobile apps for
businesses. Projects start at £3,000 for simple
sites and scale to £20,000+ for complex AI platforms,
with fractional partnerships available from
£2,500/month.</p>
</div>
How-to guide
For a step-by-step instructional page:
<div class="answer-capsule">
<p>To create a robots.txt file for AI crawlers, place a
plain text file at your site root containing User-agent
and Allow directives for GPTBot, ClaudeBot, PerplexityBot,
and other AI bots. The entire process takes under 5 minutes
and immediately makes your content visible to AI search
engines.</p>
</div>
Comparison page
For a page comparing two or more products:
<div class="answer-capsule">
<p>Webflow is better for designers who want visual control
without code, while Next.js is better for developers
building complex, data-driven applications. Webflow
starts at $14/month and requires no programming knowledge.
Next.js is free and open-source but requires JavaScript
and React expertise.</p>
</div>
FAQ page
For a page answering a specific frequently asked question:
<div class="answer-capsule">
<p>Yes, you need to update your robots.txt to include AI
crawlers explicitly. Without specific rules for GPTBot,
ClaudeBot, and PerplexityBot, your site may be invisible
to AI-powered search engines even if traditional search
engines can crawl it.</p>
</div>
Location/service area page
For pages targeting a specific geographic area:
<div class="answer-capsule">
<p>p0stman provides AI development and web application
services to businesses in Manchester, including custom
AI agents, MVP launches, and fractional CTO services.
Projects are delivered remotely with local client meetings
available throughout Greater Manchester.</p>
</div>
Writing Effective Capsules
The quality of your answer capsule directly affects its citation probability. Here are the principles for writing capsules that AI models extract and cite.
Lead with the specific answer
Start with the concrete answer, not context or qualifications. "Mobile apps cost 15,000 to 150,000 pounds" is better than "The cost of mobile app development depends on many factors." The specific answer can be qualified in the body text. The capsule should lead with certainty.
Include numbers, dates, and thresholds
AI models give higher confidence to content with specific data points. "Starting at 3,000 pounds" is more citable than "affordable pricing." "Takes under 5 minutes" is more citable than "quick to implement." Specificity signals authority and gives the AI something concrete to extract.
Make it self-contained
The capsule must make sense in isolation. When an AI model quotes it, the user will not see the rest of the page. If the capsule says "As mentioned above..." or "See below for details..." it is useless as a standalone citation. Every capsule should be a complete, understandable answer on its own.
Match the search intent
The capsule should answer the question someone would type into a search bar to find this page. If the page URL is /how-much-does-a-mobile-app-cost, the capsule should answer "how much does a mobile app cost?" directly. Do not answer a different question than the one the page targets.
Use declarative
Write in a factual, authoritative tone. "Landlords can serve a Section 21 notice after the fixed term ends" is better than "You might want to consider looking into serving a Section 21 notice." Declarative statements are more citable because they state facts rather than suggesting possibilities.
Keep it under 50 words
Aim for 25-50 words. Long enough to provide a complete answer, short enough to be extracted as a single citation. If your capsule is over 50 words, you are probably including supporting detail that belongs in the introduction, not the capsule.
Integration with AI Referral Welcome Banners
The answer capsule serves a dual purpose. For AI models, it is the most citable content on the page. For human visitors arriving from AI referrals, it is the anchor point for the welcome experience.
How the welcome banner works
The AI referral welcome banner script detects visitors arriving from ChatGPT, Perplexity, Claude, Gemini, and Copilot via UTM parameters or referrer headers. When it finds a visitor from an AI source, it looks for a div.answer-capsule on the page, inserts a contextual welcome banner above it, and applies a glow animation to highlight the capsule.
This creates a seamless experience for AI-referred visitors:
- The user asks an AI tool a question
- The AI cites your page and the user clicks through
- The welcome banner says "Found via ChatGPT" (or whichever source)
- The answer capsule is highlighted with a glow effect
- The user immediately sees the answer they were sent to find
- A contextual CTA button offers the next step
The fallback chain
If the welcome banner script cannot find a div.answer-capsule, it falls back to these alternatives in order:
article .article-header-- inserts after the article headermain-- inserts at the top of the main element
The answer capsule is the ideal insertion point because it positions the welcome banner directly above the content the visitor was sent to see. Without it, the banner appears in a less contextually relevant position.
Implementation with the welcome script
No additional configuration is needed. If your page has a div.answer-capsule, the AI referral welcome banner script finds it automatically. The only requirement is that the class name is exactly answer-capsule -- not answer_capsule, not answerCapsule, not answer-box.
Generative Engine Optimization (GEO) Principles
Answer capsules are one component of a broader GEO strategy. Generative Engine Optimization is the practice of optimising content to appear in AI-generated responses. Here are the core GEO principles that answer capsules support.
Front-load the answer
This is the fundamental GEO principle. Put the answer first. Everything else on the page exists to support, evidence, and expand the answer. Traditional SEO content often builds to a conclusion. GEO content leads with the conclusion and then provides the evidence.
Structure content as Q&A pairs
Use question-based headings (H2 and H3 tags) throughout the page. Each heading should be a question that the following section answers. This structure makes it easy for AI models to extract individual Q&A pairs from your page. Your answer capsule is the top-level Q&A pair. The heading-based Q&A pairs are supporting pairs. See our heading hierarchy guide for detailed implementation.
Use specific, factual language
Avoid vague claims. "We provide excellent service" is not citable. "We have completed 150+ projects with a 98% client satisfaction rate" is citable. AI models extract specific facts, not marketing claims.
Include structured data
FAQPage schema, Article schema, and HowTo schema provide additional structured signals that AI models use when extracting content. Every page with an answer capsule should also have FAQPage schema for the FAQ section. This creates multiple citation surfaces: the capsule for the main answer, the FAQ schema for related questions.
Update regularly
AI models weight freshness. A page with "Last updated: March 2026" is more likely to be cited than a page with no date or an old date. Include a visible last-updated date near the top of the page, immediately after the H1 heading.
Auditing Your Pages for Answer Capsules
To check whether your pages have properly implemented answer capsules, you can use several approaches.
AgentReady scanner
The fastest way is to run your site through the AgentReady scanner. It checks every scanned page for the presence of a div.answer-capsule and flags pages that are missing one. It also validates the capsule content length and position.
Manual browser check
Open your page in a browser, right-click, and "View Page Source." Search for answer-capsule. If you find it, verify that it appears before the H1 tag and contains a concise, direct answer.
Automated script
For sites with many pages, write a simple script that fetches each page and checks for the answer capsule:
const urls = [
"https://yourdomain.com/page-1",
"https://yourdomain.com/page-2",
// ... all your content pages
];
for (const url of urls) {
const response = await fetch(url);
const html = await response.text();
const hasCapsule = html.includes('class="answer-capsule"');
console.log(`${url}: ${hasCapsule ? "OK" : "MISSING"}`);
}
Common Mistakes
Writing a summary instead of an answer
"This guide covers everything you need to know about mobile app costs" is a summary, not an answer. The capsule must contain the actual answer: "Mobile apps cost 15,000 to 150,000 pounds."
Making it too long
A capsule that runs to 100+ words is too long. It dilutes the core answer with supporting detail that belongs in the body. Keep it to 1-2 sentences, 25-50 words.
Using vague language
"Costs vary depending on requirements" is not an answer. "Costs range from 15,000 to 150,000 pounds" is an answer. Be specific even when the truth is a range.
Placing it after the heading
The capsule should appear before the H1, not after it. AI models process content top-down. The capsule should be the very first piece of content in the article.
Using the wrong class name
The class must be exactly answer-capsule. Variations like answer_capsule, answerCapsule, or answer-box will not be recognised by the AI referral welcome banner script or scanning tools.
Omitting the capsule on comparison and FAQ pages
Every content page that answers a question needs a capsule, including comparison pages and FAQ pages. "Webflow is better for designers; Next.js is better for developers" is a valid capsule for a comparison page. "Yes, you need AI crawler rules in your robots.txt" is a valid capsule for a FAQ page.
Measuring Capsule Effectiveness
Track these metrics to understand how your answer capsules are performing.
AI referral traffic
Monitor traffic from AI sources (ChatGPT, Perplexity, Claude) to pages with capsules versus pages without. You should see higher AI referral traffic to pages with well-written capsules. Use UTM parameters and referrer analysis to track this.
Featured snippet appearances
Check Google Search Console for pages appearing in featured snippets. Pages with answer capsules should appear in position zero more frequently than pages without.
AI welcome banner impressions
If you have the AI referral welcome banner implemented, track the ai_welcome_shown analytics event. Pages with capsules will have the banner correctly positioned above the answer, while pages without capsules will show the banner in a fallback position.
Bounce rate from AI referrals
Compare bounce rates for AI-referred visitors on pages with and without capsules. Capsules reduce bounce rates because visitors immediately see the answer they were looking for, which builds trust and encourages further engagement.
Frequently Asked Questions
What is an answer capsule?
An answer capsule is a 1-2 sentence direct answer placed at the very top of a content page, wrapped in a <div class="answer-capsule">. It provides an immediate, concise response to the page's core question, optimised for both AI citation and Google featured snippets. The class name serves as a hook for AI referral welcome banners and automated scanning tools like the AgentReady scanner.
Why do AI models cite the first 30% of content more often?
AI models cite the first 30% of a page's content 44% of the time because of how retrieval-augmented generation and attention mechanisms work. LLMs process text sequentially and give higher attention weight to early content. When a model retrieves a page to answer a question, the opening content receives the most processing attention and is most likely to be extracted as a citation. This is reinforced by the "lost in the middle" effect where content in the middle of long documents receives reduced attention.
How long should an answer capsule be?
An answer capsule should be 1-2 sentences, typically 25-50 words. It must be long enough to provide a complete, standalone answer to the page's core question, but short enough that AI models can extract it as a single citation. If your capsule exceeds 50 words, you are likely including supporting detail that belongs in the introduction rather than the capsule itself.
What is the HTML markup for an answer capsule?
Use a div with the class answer-capsule: <div class="answer-capsule">Your direct answer here.</div>. Style it with a subtle background colour (like light blue) and a left border to visually distinguish it. The class name must be exactly answer-capsule because AI referral welcome scripts and scanning tools use it to identify the answer section programmatically.
Should every page on my site have an answer capsule?
Every content page that answers a specific question should have an answer capsule. This includes guides, blog posts, FAQ pages, product pages, comparison pages, and landing pages. Pages that are purely navigational (like a homepage or category index) do not need answer capsules because they do not answer a single specific question. Focus on pages built around a question-based URL slug.
How do answer capsules work with AI referral welcome banners?
The AI referral welcome banner script detects visitors from ChatGPT, Perplexity, Claude, and other AI tools. It searches the page for a div.answer-capsule, inserts a contextual welcome banner directly above it, and highlights the capsule with a glow animation. This draws the visitor's attention to the exact answer they were referred to see. Without the capsule, the banner falls back to less optimal insertion points like the article header or the main element.
What is Generative Engine Optimization (GEO)?
Generative Engine Optimization (GEO) is the practice of optimising content to appear in AI-generated responses from tools like ChatGPT, Perplexity, Claude, and Google AI Overviews. It extends traditional SEO by focusing on how AI models parse, understand, and cite content. Answer capsules are a core GEO technique because they place the most citable content in the position AI models are most likely to extract from. Other GEO techniques include question-based heading structures, FAQPage schema, and structured context endpoints.
Do answer capsules help with traditional Google SEO?
Yes. Answer capsules serve the same function as the content Google extracts for featured snippets (position zero). A concise, direct answer at the top of the page significantly increases your chances of appearing in both Google featured snippets and Google AI Overviews. The same content that AI models cite is the content Google promotes. Pages with answer capsules consistently outperform pages without them in both AI citation rate and traditional search snippet selection.
By Paul Gosnell