# Add business schema to your site

> Researched. Small business · Intermediate · Content. Updated 2026-10-31.

Canonical page: https://www.aisetupsthatwork.com/setups/add-business-schema-so-ai-can-find-you/

## What it does
Write LocalBusiness JSON-LD from your real name, address and hours, add it to your site, and test it with Google's Rich Results Test.

## Who it's for
Owners of a local business website with a physical address and set hours. Use only details that are true and shown on your site. Skip it if you cannot edit your page's code or ask your site manager.

## Tools
- ChatGPT or Claude to draft the code
- Your business name, address, phone number and opening hours
- Google's Rich Results Test
- Someone who can paste code into your site

## Steps
1. Write down your real details exactly as they appear on your site: business name, full address, phone, hours.
2. Ask the assistant to draft JSON-LD with the prompt below. Google's page lists name and address as required for LocalBusiness and hours as recommended.
3. Compare the draft with Google's example on its LocalBusiness page. Check every value against your own details.
4. Test the code before it goes live. Google says the Rich Results Test can check a code snippet, and supports JSON-LD, RDFa and Microdata.
5. Remove any comments from the JSON-LD before you publish. Google's help says the test ignores them but they can cause errors on a live page.
6. Add the code to your page, run the test on the live URL, and fix errors first and warnings second.
7. Google also recommends submitting a sitemap so it learns about changes. AI assistants using this markup: Not stated in sources.

## Copy-paste prompt
Adapt bracketed fields to your situation.
```text
Write LocalBusiness JSON-LD for my website. Use only the details below. Leave out any field I do not give you.

Business name: [NAME]
Business type: [for example: Plumber, Dentist, Restaurant]
Street: [STREET]
City: [CITY]
State or region: [STATE]
Postal code: [ZIP]
Country: [COUNTRY]
Phone: [PHONE]
Website: [URL]
Hours: [DAYS AND TIMES]

Rules:
- Output one JSON-LD script block and nothing else.
- Do not add reviews, ratings, prices, awards or geo coordinates unless I give them.
- No comments inside the code.
- After the code, list each field and the detail it came from.
```

## Guardrails
- What it touches: Chat input you provide (ChatGPT or Claude to draft the code; Your business name, address, phone number and opening hours).
- Needs your OK: Send, pay, publish, and account changes stay with you. Treat agent output as drafts first.
- Safety level: Drafts for you
- Adding review or rating fields the page does not show. Leave them out.
- Hours that differ from the page text or your listings. Make them match.
- Pasting code that never got tested. Run the Rich Results Test first.

## Tips
- Google says LocalBusiness is a subtype of Organization and suggests following the Organization fields too.
- Fix errors first. Google says fixing warnings can help quality but is not required.
- Update the code when your hours or address change.

## Estimates (labeled, not measured)
- Time saved: About 30 minutes.
- Money saved: Not stated in sources.
- Tool cost: Google's Rich Results Test is free to use per its help page. Prices for hosting or plugins: Not stated in sources.

## Sources
Summaries use the public sources below, not independent verification.
- Google: https://developers.google.com/search/docs/appearance/structured-data/local-business (LocalBusiness structured data: required name and address, recommended properties, JSON-LD example, test with the Rich Results Test, sitemap (read 2026-10-31 through a page fetch tool, not a direct browser open))
- Google: https://support.google.com/webmasters/answer/7445569 (Rich Results Test: test a URL or code snippet, JSON-LD, RDFa and Microdata supported, remove comments from JSON-LD (read 2026-10-31 through a page fetch tool, not a direct browser open))

## Get the free starter pack
Five beginner copy-paste AI setups, free by email: https://www.aisetupsthatwork.com/starter-pack/?utm_source=ai-agent&utm_medium=markdown&utm_campaign=setup-add-business-schema-so-ai-can-find-you

Related:
- [Make your website readable by AI](https://www.aisetupsthatwork.com/setups/make-your-website-readable-by-ai-agents/index.md)
- [Optimize your Google Business Profile to show up locally](https://www.aisetupsthatwork.com/setups/optimize-your-google-business-profile/index.md)
- [Build a lead-gen site with an AI bot](https://www.aisetupsthatwork.com/setups/build-a-lead-gen-site-with-an-ai-bot/index.md)
