LovedByAI
Law Firms GEO

Law firms how to show up when someone asks ChatGPT for a recommendation setup: the 2026 playbook

Learn how to show up when someone asks ChatGPT for a recommendation. This technical GEO guide covers specific entity structuring for law firm WordPress sites.

13 min read
By Jenny Beasley, SEO/GEO Specialist
ChatGPT Legal Playbook
ChatGPT Legal Playbook

When a potential client needs a personal injury lawyer or corporate counsel today, they aren't just scrolling past local pack ads. They are opening ChatGPT, Claude, or Perplexity and asking for a direct recommendation. This is the new reality of client acquisition for law firms.

If your firm does not appear in these AI-generated answers, you are invisible to a massive segment of high-intent searchers. Getting recommended by a Large Language Model (LLM) requires a completely different strategy than traditional SEO. We call this Generative Engine Optimization (GEO).

Your WordPress site might be perfectly optimized for traditional Google crawlers. But AI engines look for something else. They need specific entity signals embedded in your <head> tags, perfectly structured data, and bottom-line-first content to build trust. Without these precise signals, the AI simply guesses and often highlights a competitor instead.

This guide breaks down exactly how to show up when someone asks ChatGPT for a recommendation. We will cover the exact technical changes you must make to your WordPress architecture so AI Search engines confidently cite your firm as the top legal authority in your jurisdiction.

Why isn't my law firm showing up when someone asks ChatGPT for a recommendation?

A potential client opens ChatGPT or Perplexity and types, "Who is the best medical malpractice lawyer in Chicago?" The AI spits out three highly specific recommendations. Your firm is missing. This happens because generative AI does not evaluate web pages the way traditional search engines do. Traditional SEO relies heavily on backlinks and keyword density. Answer engines look for entity confidence. They need to extract pure facts into a context window. According to BrightEdge research, over 58% of informational searches now produce AI Overviews. If your WordPress site is not built for AI extraction, you are invisible to these engines.

Most law firm websites are standard digital brochures. You probably have a beautifully designed WordPress site using a modern theme like Astra or GeneratePress. The problem lies in how large language models read that site. They tokenize content by chunk. A massive wall of text detailing your firm's history dilutes the actual signal. When an LLM scans your homepage, it often sees a generic <div> container full of marketing copy instead of structured facts. It has to guess what you actually do. AI models hate guessing. If they have to work hard to figure out your practice areas or jurisdiction, they will simply cite a competitor whose data is clearer.

This is where On-Page GEO changes the game for legal marketing. You have to establish absolute entity clarity. Every page needs to explicitly state who you are, what legal services you provide, and exactly where you operate. This requires strict, bottom-line-first writing and technical reinforcement. You do this by deploying structured data. Instead of hoping the AI figures it out, you feed it machine-readable JSON-LD. If your site lacks this foundational layer, LovedByAI's Schema Detection can scan your pages and automatically inject the correct nested LegalService markup directly into your <head> section. When you define your firm as a clear entity using the official Schema.org legal definitions, LLMs instantly understand your expertise. They trust the data. They cite your firm.

Lawyers are trained to build arguments layer by layer, culminating in a conclusion. Generative AI needs the exact opposite. You must write bottom-line first to fit neatly into an LLM's context window. If a user asks Claude about the statute of limitations for personal injury in Texas, your page needs to answer that question in the very first sentence. "The statute of limitations for personal injury in Texas is two years from the date of the accident." Boom. Fact extracted. If you bury that answer under three paragraphs of firm history and a generic <p> tag about fighting for your rights, the AI crawler will truncate its scan and pull the answer from a competitor's site instead.

You have to kill the wall of text. LLMs tokenize content in chunks. When you feed an AI engine a massive, 800-word block of dense legalese, it dilutes the primary entity signal. Break complex legal concepts into short, 50-word paragraphs. Each chunk must serve a single, distinct purpose. This is not just theory. Internal tests show that formatting a WordPress post into discrete, easily parsable blocks increases AI citation rates by up to 300%. If your current theme relies on massive text blocks inside a single <div> wrapper, you need to restructure your page templates. Use standard bulleted lists. Cut the fluff.

Finally, fix your headings. Traditional SEO trained marketers to use keyword-stuffed titles like "Chicago Medical Malpractice Lawyer." LLMs do not care about keyword density. They map headings directly to user prompts. Change your <h2> and <h3> tags to exactly match what a panicked client types into Perplexity. Use natural language questions like "How much does a medical malpractice lawyer cost in Chicago?" or "What should I do after a car accident?" If you have hundreds of legacy blog posts with bad structure, LovedByAI's AI-Friendly Headings feature can automatically reformat them to match these natural query patterns. Pair these natural headings with explicit FAQPage schema and you create a near-perfect extraction environment for answer engines.

Stop treating your website like a digital brochure. Generative engines view your domain as a raw data source. If that data is unstructured, the AI moves on to a competitor. You must deploy specific, machine-readable signals to force these models to understand your exact legal entity.

First, define your practice areas using strict Schema.org LegalService definitions. A plain text paragraph about "helping victims" is useless to an AI crawler. You need structured data injected directly into your <head> section. When an LLM parses your page, it looks for a block containing JSON-LD. If you are unsure whether your current WordPress theme supports this, check your site to verify your schema output.

Here is how you inject a basic entity definition using native WordPress functions:

add_action( 'wp_head', function() {
    $schema = [
        "@context" => "https://schema.org",
        "@type" => "LegalService",
        "name" => "Smith Medical Malpractice Law",
        "areaServed" => "Chicago",
        "practiceArea" => "Medical Malpractice"
    ];
    
    echo '';
    echo wp_json_encode( $schema );
    echo '';
});

Next, build extreme E-E-A-T (Experience, Expertise, Authoritativeness, and Trustworthiness). AI models are heavily weighted to prefer verified experts, especially in "Your Money or Your Life" (YMYL) verticals like law. According to recent Semrush data, pages surfaced in AI overviews boast E-E-A-T scores 2.1 times higher than standard ranked pages. Kill the generic "Written by Admin" bylines. Every single blog post needs a detailed author bio, an explicit publication date, and outbound links to actual state statutes or case law. If you use a tool like AIOSEO, configure your author nodes immediately.

Finally, add an llms.txt file to your root directory. This is the new standard for guiding AI bots. Think of it as a sitemap written exclusively for Anthropic, OpenAI, and Perplexity crawlers. Traditional robots.txt files tell search engines where not to go. The llms.txt file actively hands them your firm's core facts, attorney rosters, and specific jurisdiction details in plain markdown. It removes the guesswork. You feed the model exactly what it needs to cite you.

How can I optimize my WordPress site to rank higher in AI answers?

Start with server response times. AI crawlers from Anthropic and OpenAI operate on strict timeout thresholds. If your server takes four seconds to deliver the initial HTML payload, the bot abandons the crawl. It moves on to a faster competitor. You must fix your Time to First Byte (TTFB). Drop bloated page builders immediately. Switch your law firm site to a lightweight theme like GeneratePress or configure aggressive server-level caching. Push your TTFB below 200ms so Claude can ingest your entire practice area library without hitting a timeout wall.

Next, audit your internal link architecture. LLMs follow links to map your firm's topical authority. A generic "click here" or "read more" anchor teaches the model absolutely nothing. If you want Perplexity to trust your firm for corporate litigation, your anchor text must explicitly state the destination's purpose. "Review our corporate litigation defense strategies" feeds the AI exact context before it even parses the target page.

The single highest-ROI task is feeding the AI direct question-and-answer pairs. Generative engines consume FAQ sections like candy. Recent Ahrefs data shows pages with proper schema are 2.7 times more likely to appear in AI-generated answers. You cannot just type questions into a standard <div> block or a generic <ul> list. You need strict nested JSON-LD.

Here is the exact structure your AI-optimized pages require:

{
  "@context": "https://schema.org",
  "@type": "FAQPage",
  "mainEntity": [{
    "@type": "Question",
    "name": "What is the statute of limitations for personal injury in Texas?",
    "acceptedAnswer": {
      "@type": "Answer",
      "text": "The statute of limitations for personal injury in Texas is two years."
    }
  }]
}

If manually writing this code and injecting it into your WordPress site sounds terrible, LovedByAI provides a dedicated Auto FAQ Generation feature. It scans your existing legal guides, generates AI-friendly natural language questions, and automatically injects the correct FAQPage schema right into your <head> tag. You remove the technical friction entirely. Ensure every practice area page feeds these distinct, pre-formatted facts directly to the answer engines.

How to Set Up LegalService Schema in WordPress for AI Crawlers

When Large Language Models (like ChatGPT and Claude) crawl a law firm's website, they look for clearly defined entities. If you rely on a generic Organization or LocalBusiness tag, you dilute your topical authority. To help AI Search engines confidently cite your practice, you need to deploy precise structured data.

Here is how to implement it correctly.

Step 1: Identify your core entity details Before writing any code, gather your exact firm name, specific legal category, physical address, and verified contact information. AI engines map these exact text strings to their knowledge graphs. Mismatched addresses across the web will break their confidence in your brand.

Step 2: Generate the proper JSON-LD schema code You must format your data as a LegalService entity. AI bots tokenize and parse this specific Schema.org LegalService vocabulary to understand your practice areas.

{ "@context": "https://schema.org", "@type": "LegalService", "name": "Smith & Associates Law Firm", "address": { "@type": "PostalAddress", "streetAddress": "123 Legal Way", "addressLocality": "Miami", "addressRegion": "FL", "postalCode": "33101" }, "telephone": "+1-555-0198" }

Step 3: Inject the schema into the header of your WordPress site You can manually insert this into your child theme's functions.php file so it loads in the <head> section. Notice that we use the WordPress-native wp_json_encode() function to safely handle character formatting.

add_action('wp_head', 'inject_legalservice_schema'); function inject_legalservice_schema() { if (is_front_page()) { $schema = array( '@context' => 'https://schema.org', '@type' => 'LegalService', 'name' => 'Smith & Associates Law Firm', 'telephone' => '+1-555-0198' ); echo ''; echo wp_json_encode($schema); echo ''; } }

If you prefer not to edit core PHP files, LovedByAI automatically scans your pages for missing entity data and auto-injects the correct nested JSON-LD schema without requiring developer resources.

Step 4: Test your implementation Always validate your markup. You can use the Google Rich Results Test to verify the code syntax, or check your site to see if your law firm is fully optimized for AI Visibility.

Warning: Watch out for aggressive caching plugins like WP Rocket or Autoptimize. If misconfigured, they will strip out inline tags, leaving the AI crawler completely blind to your newly added schema.

Conclusion

Getting ChatGPT and other AI Search engines to recommend your law firm is no longer a futuristic experiment. It requires a fundamental shift in how you structure your digital presence. You must move away from walls of text that confuse large language models. Instead, feed them exactly what they need. Clear entity definitions, robust schema markup, and direct answers to client questions are your new foundation. When you build your site for answer engines, you build trust with the algorithms that dictate modern discovery. Traditional optimization alone simply will not cut it for the 2026 landscape. Implement bottom-line first writing. Fix your technical structure. You have a massive opportunity to outpace competing firms who are still playing by the old rules.

For a complete guide to GEO/AEO strategies for Law Firms, check out our Law Firms GEO/AEO landing page.

Jenny Beasley

Jenny Beasley is an SEO and GEO specialist focused on helping businesses improve their visibility across traditional search and AI-driven platforms.

Frequently asked questions

No, you cannot pay OpenAI, Claude, or Google's AI Overviews for direct recommendations or placements. AI models do not have traditional advertising platforms where you can buy a top spot. Instead, they recommend law firms based on trust signals, factual accuracy, and how well your website's data is structured for their crawlers. To get recommended, you need to focus on generative engine optimization by building out clear entity data and answering legal questions directly so the AI views you as the definitive, authoritative source.
No, traditional SEO is not dead, but it is evolving rapidly into answer engine optimization. Foundational practices like acquiring quality backlinks and maintaining fast page speeds are still essential because AI models use these as trust signals. However, relying purely on keyword stuffing or writing long, fluffy legal articles no longer works. As noted by Search Engine Land, you must now optimize for Large Language Models by providing direct answers, using structured data, and demonstrating clear real-world expertise to secure citations.
It typically takes anywhere from a few days to a few weeks for AI search engines to process and reflect your website changes. AI bots crawl the web continuously, but they prioritize sites with fast load times and clear structure. If your law firm's site has a well-organized `llms.txt` file and error-free Schema.org structured data, you can speed up this discovery significantly. Using a tool like LovedByAI to auto-inject correct nested JSON-LD schema ensures crawlers understand your new content almost immediately after they scan.
You do not need to rewrite everything from scratch, but you should reformat your top-performing legal posts for AI readability. Focus on your highest-traffic pages first. Add a bottom-line summary at the top of the article, break long walls of text into short paragraphs, and convert your subheadings into natural language questions. Finally, add a clear FAQ section at the bottom of the post marked up with `FAQPage` structured data. This simple restructuring makes it vastly easier for an AI to extract your expertise. You can check your site to see which posts need this the most.

Ready to optimize your site for AI search?

Discover how AI engines see your website and get actionable recommendations to improve your visibility.