A homeowner asks ChatGPT for an electrician in your county. The AI looks for structured data to confirm which businesses are real, where they are, and what they do. If your website has LocalBusiness schema, the AI reads that data directly. If it does not, the AI has to guess. Guessing is not how businesses get recommended.
Schema markup is a piece of code on your website that labels information in a way search engines and AI engines can read with certainty. It tells the AI: this text is the business name, this number is the phone, this address is where the business is located, this list is the services offered. Without schema, the AI has to interpret your page like a human reading a webpage. With schema, the AI reads a structured file that leaves nothing to interpretation.
Adding LocalBusiness schema takes about 20 minutes. No paid tools required. No coding background needed beyond copy, paste, and fill in the blanks.
What LocalBusiness Schema Tells AI Search Engines
Schema.org is a vocabulary that Google, Microsoft, and Yahoo maintain jointly. It gives every piece of business information a specific label. The AI does not have to figure out what a phone number is by looking at where it appears on the page. The schema says outright: this is the telephone number, this is the opening hours specification, this is the geographic area served.
For a trades business, the most useful fields are:
- name. The legal or DBA business name, exactly as it appears on your Google Business Profile.
- telephone. The phone number customers call. Use the same number on every listing.
- address. The physical address of the business, including street, city, state, and zip.
- areaServed. The counties or towns the business travels to for jobs. This field is how AI engines know your service radius without having to guess from your address alone.
- openingHoursSpecification. The days and hours the business is open.
- knowsAbout. The services the business offers. Drain cleaning, panel upgrades, HVAC installation, roof replacement, pest control. This is where you list what you actually do.
Each field maps to a question a homeowner might ask an AI engine. "Is this plumber in my area?" maps to areaServed. "What services does this electrician offer?" maps to knowsAbout. "How do I call them?" maps to telephone. Schema answers these questions before the AI has to ask.
Which Schema Type to Use for Your Trade
schema.org has specific types for trades businesses that inherit all the fields of LocalBusiness and add a few of their own:
| Trade | Schema Type | |---|---| | Plumber | Plumber | | Electrician | Electrician | | HVAC | HVACBusiness | | Roofing | RoofingContractor | | General contractor | GeneralContractor | | Landscaping | LandscapingService | | Pest control | PestControl | | Cleaning | CleaningService |
Using the specific type is better than using the generic LocalBusiness. A page tagged as Plumber tells the AI exactly what the business does. A page tagged as LocalBusiness tells the AI only that the business is a local business of some kind. The specific type reduces ambiguity, and reducing ambiguity is the entire point of schema.
If your trade is not listed above, use LocalBusiness as the type and fill in knowsAbout with your services. The schema.org type list is extensive but not exhaustive for every specialty trade.
How to Add LocalBusiness Schema (Step by Step)
Step 1: Copy the Template
Here is a complete LocalBusiness schema template for a plumbing business. Copy it, change the values, and you are most of the way done.
Replace every value with your own business information. The name should match your Google Business Profile exactly. The phone number should be the number you publish everywhere. The address should be the one you operate from, or the one listed on your Google Business Profile if you are a service-area business. For more on how service-area businesses handle their address in AI search, see how service-area businesses stay visible in AI search.
Step 2: Add the Code to Your Website
The schema goes in the HTML of your website, inside a script tag. Place it in the head section of your home page or in the body just before the closing tag. The exact method depends on your website platform.
If your site uses WordPress: Install the free "Rank Math SEO" or "Yoast SEO" plugin. Both have a schema editor where you select LocalBusiness, fill in the fields, and the plugin generates the code automatically. No manual JSON needed.
If your site uses Squarespace, Wix, or a website builder: Most modern builders have a schema or SEO section in their page settings. Look for "structured data" or "schema markup" in the page settings menu. If the builder does not support it, you can add the code through a custom code injection block.
If your site is custom HTML or uses a CMS with code access: Paste the JSON inside a script tag in the head of your home page:
The script tag tells the browser and AI crawlers that what follows is structured data, not visible page content. The AI reads it. The human visitor never sees it.
Step 3: Test the Schema
Google provides a free tool called the Rich Results Test. Paste your page URL into the tool at search.google.com/test/rich-results. The tool tells you whether the schema is valid, whether any fields are missing, and whether Google can read it.
Run the test after you add the schema. A common mistake is adding schema with a typo in the JSON that breaks the entire block. The test catches that before the AI crawlers do. Fix any errors the test reports, re-run it, and confirm a clean pass.
Schema.org also has a validator at validator.schema.org that checks against the full schema vocabulary, not just the fields Google supports. Run both if you want to be thorough.
Step 4: Match Your Other Listings
Schema works best when it agrees with your other listings. If your schema says the business name is "Bergen Plumbing & Heating" but your Google Business Profile says "Bergen Plumbing," the AI sees a mismatch. Mismatches reduce the AI's confidence that both listings refer to the same business. Use the exact same name, address, and phone number on your schema, your Google Business Profile, your Bing Places listing, and every directory. This consistency is called NAP consistency, and it is one of the signals AI engines use to verify that a business is legitimate. For a full breakdown of what AI engines look for, see how AI search engines decide if a trades business is trustworthy.
Which Fields Matter Most for AI Visibility
Not every field carries the same weight. If you have 20 minutes and need to prioritize, fill in these fields first:
- name, telephone, and address. These are the core identity fields. Without them, the AI cannot confirm the business exists at a specific location. Every other field is secondary.
- areaServed. This is the field that tells the AI where the business travels for jobs. A plumber in Hackensack who serves all of Bergen County needs areaServed to communicate that. Without it, the AI assumes the business only serves its immediate address.
- knowsAbout. This is where you list services. The AI matches homeowner queries to specific services. "Emergency plumber near me" matches a business whose knowsAbout includes "Emergency plumbing repair." A business without knowsAbout is harder to match to specific queries.
- openingHoursSpecification. The AI uses hours to filter results. A business that is closed on Sunday will not appear in Sunday emergency queries. Accurate hours prevent the AI from recommending a business that cannot answer the call.
The remaining fields (image, priceRange, url) are useful but not critical for the first pass. Add them if you have time. Come back to them later if you do not.
Common Mistakes That Break Schema
Using the wrong type. If you tag a roofing business as Plumber, the AI reads the page as a plumbing business. Use the type that matches the trade.
Leaving the template values in. If you copy the template above and forget to change "Bergen Plumbing & Heating" to your business name, your schema publishes another company's name on your website. The test will not catch this because the JSON is valid. Read through every field before you publish.
Adding schema to the wrong page. Put the schema on the page that best represents the business. For most trades businesses, that is the home page. If the schema is on a buried subpage, the AI may not crawl it as the primary business identifier.
Using outdated schema syntax. Schema.org updates its vocabulary periodically. Use the current syntax from the site, not a template from a 2021 blog post. The Rich Results Test will flag deprecated fields.
Publishing schema that does not match the visible page. If your schema says you offer "Roof replacement" but your home page does not mention roof replacement anywhere in the visible text, Google may flag this as a mismatch. The visible content and the schema should tell the same story.
FAQ
What is LocalBusiness schema and why does a trades business need it?
LocalBusiness schema is a piece of structured data code on a website that labels business information (name, address, phone, services, hours) in a format that AI search engines can read with certainty. A trades business needs it because AI engines like ChatGPT and Gemini use it to confirm which businesses are real and what they do, which affects whether the business appears in AI answers.
Do I need to know how to code to add LocalBusiness schema?
No. WordPress plugins like Rank Math and Yoast generate schema automatically through a form interface. Website builders like Squarespace and Wix have schema fields in their page settings. The manual JSON method requires copy, paste, and fill-in-the-blanks, not programming.
How long does it take for AI search engines to read the schema?
Google typically crawls and processes schema within days to a few weeks, depending on how often the site is crawled. ChatGPT pulls from Bing, which crawls on its own schedule. Expect 2 to 4 weeks for the schema to be fully indexed across AI engines. You can speed this up by keeping your Google Business Profile active and submitting the page through Google Search Console.
Can a trades business show up in AI search without schema?
Yes. A business can appear in AI answers based on its Google Business Profile and directory listings alone. But without schema on the website, the AI has less structured data to work with, which makes it harder to be recommended for specific services. Schema is the difference between being mentioned generically and being recommended for a specific job. See can a trades business show up in AI search without a website for details.
Is LocalBusiness schema the same as Google Business Profile?
No. Google Business Profile is a listing on Google's platform. LocalBusiness schema is code on your own website. They serve different purposes. The Google Business Profile feeds data to Google's ecosystem directly. The schema on your website feeds data to any AI engine that crawls the site. Both matter, and the information on both should match. For help with the Google Business Profile side, see the Google Business Profile description guide for AI visibility.
Run your free AI visibility audit at firstcallvisibility.com to see whether your website has schema markup and what to fix first. FirstCall checks your structured data across ChatGPT, Gemini, Perplexity, and Google AI Overviews and gives you a scorecard with the fields that matter most.