Generate LocalBusiness Schema JSON-LD from Your Real Business Details
Get valid LocalBusiness JSON-LD markup using the most specific schema subtype, with opening hours, geo coordinates, and a checklist of fields to verify before publishing.
You getChosen subtype and reason, field map table and the JSON-LD code block
Prompt
Act as a technical SEO specialist who writes structured data for local businesses.
Your job: create LocalBusiness schema in JSON-LD for my business. Before writing anything, ask me these questions in one numbered message and wait for my answers:
1. Business name, what you do, and website URL.
2. Full street address, phone number, and the page the markup will go on.
3. Opening hours for each day, including closed days.
4. Optional: logo URL, photo URL, price range, social profile links, and latitude/longitude.
Rules:
- Pick the most specific schema.org subtype that fits (for example Dentist or Bakery instead of LocalBusiness) and explain the choice in one line.
- Use only facts I give you. Never invent reviews, ratings, coordinates or hours. If geo is missing, leave it out and tell me how to get it from Google Maps.
- Write hours as openingHoursSpecification with 24-hour times.
- Phone in international format; address split into PostalAddress fields.
- Return valid JSON-LD in a single script tag with no comments inside the code.
Output format:
1. Chosen subtype and reason
2. Field map table: Property | Value | Source (given by me / left out)
3. The JSON-LD code block
4. Verify in Google's Rich Results Test: numbered checklist of fields to check
5. Missing or risky: what I should add or confirm before publishingExample output
Tips and common edits
Why this works
- Asking for real facts first stops the model from guessing hours, coordinates or ratings that would make the markup inaccurate.
- Requiring the most specific subtype, like Bakery or Dentist, gives search engines clearer signals than generic LocalBusiness.
- The field map and verification checklist let you audit each value before it goes live, not just trust the code.
Use when adding structured data to a local business homepage or contact page. Have your address, phone, hours and URLs ready. Works in ChatGPT, Claude or Gemini; paste the result into your page head.
Common edits
- Ask for a version with multiple locations, each with its own address and hours, on separate location pages.
- Add a department or service area section if you travel to customers instead of serving them at a storefront.
Make it repeatable
Keep using this prompt without pasting it in every time.
Prompt details
- By
- Prompts-GPT editors
- Published
Did this prompt work?
Keep exploring
More like this
Generate Valid Article and BreadcrumbList Schema JSON-LD
Get precise, error-free JSON-LD code for Article and BreadcrumbList schema that helps your editorial pages earn rich snippets in Google search results.
Create clean Product schema markup with offers
Turn product details into valid, copy-ready schema.org JSON-LD to qualify for Google rich product snippets.
FAQ Block for Rich Results: 8 Customer Questions and FAQPage JSON-LD
Extracts 8 genuine customer questions with standalone answers from your page and outputs matching FAQPage JSON-LD.
Clean up messy URL slugs before site launch
Turn auto-generated, cluttered URL paths into clean, search-friendly slugs. Use this before launching new pages or publishing blog posts.
Build a Local Citation and NAP Consistency Checklist for Your Business
Get a ranked directory list for your industry and country, a table to record your name, address and phone as listed, and clear rules for fixing mismatches.
Diagnose Why Your Local Business Is Not Showing in the Google Map Pack
Get a ranked diagnosis of why your business is missing from Google's top 3 map results, sorted by relevance, distance and prominence, plus a 30-day DIY fix order.
- Optimize Your Google Business Profile Categories, Description, Services and Photos
- Plan a Month of Google Business Profile Posts for Your Local Business
- Write a City Service-Area Landing Page Built on Real Local Jobs
- Write Replies to Positive and Negative Google Reviews for Your Business
- Audit multi-city landing pages for duplicate copy
- Audit redirect spreadsheets for chains and loops