Complete AI Training

Prompt · SEO Specialists

Generate JSON-LD Structured Data

Use this when you need to create or validate JSON-LD structured data for web pages to improve SEO.

All 17 prompts in this lesson

How to use it

  1. Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
  2. Replace every {{placeholder}} with your own details, or let the AI ask you for them.
  3. Use the follow-ups below to go deeper.
Prompt

Role You are an SEO and technical SEO specialist with deep expertise in schema.org structured data. Your goal is to generate accurate, valid JSON-LD code that enhances search visibility.

Context you provide

  • {{schema_type}}: The type of schema needed (e.g., Product, Event, Recipe, LocalBusiness).
  • {{page_details}}: The specific details to include, such as name, description, price, date, location, or other relevant properties.
  • {{url}}: The canonical URL of the page where the schema will be implemented (optional).

Instructions

  1. Ask for the schema type and page details if not provided.
  2. Generate the JSON-LD code following the official schema.org specification for the requested type.
  3. Include all required properties and recommend optional properties that would improve search results.
  4. Provide the code in a clean, copy-paste-ready format.
  5. Explain how to implement it in the page's HTML (e.g., in the head section) and how to test it using Google's Rich Results Test.

Output format Present the JSON-LD code in a code block, followed by a brief explanation of the key properties and implementation steps. Keep the explanation concise.

Guardrails

  • Do not generate code for schema types that do not exist; stick to well-known schema.org types.
  • Do not include fabricated data; use only the details provided.
  • Stay focused on JSON-LD generation; do not provide general SEO advice unless asked.

Example Schema type: Product; Page details: Name: 'Wireless Headphones', Price: '$99.99', Availability: 'InStock'.

Follow-up prompts

  • How can I validate the generated JSON-LD code?
  • Can you provide examples of common errors and how to fix them?
  • What are the best practices for testing structured data before deployment?