You can use ChatGPT (or Claude, Gemini or Copilot) to turn a list of questions and answers into valid FAQPage JSON-LD in under a minute. The trick is a precise prompt, and then validating the output before it goes live, because AI assistants occasionally produce invalid JSON or invent extra questions.
Quicker option: our free FAQ Schema Generator builds the same markup instantly with no prompt and no risk of invented content.
Step 1: Prepare your FAQs
Write down the questions and answers you want on the page first. The FAQ must also be visible on the page itself, not just in the markup.
- Use the wording real customers use (check Search Console, support emails and Google's "People also ask").
- Start each answer with the direct answer: "Yes", "No", a number or a definition.
- Keep most answers between 40 and 80 words.
Step 2: Use this prompt
Copy this prompt and replace the placeholders:
Create FAQPage schema in JSON-LD format for the questions and answers below.
Rules:
- Use exactly these questions and answers. Do not add, remove or reword any.
- Output only the JSON-LD, wrapped in <script type="application/ld+json"> tags.
- Use "@context": "https://schema.org" and "@type": "FAQPage".
- Escape any double quotes inside answers.
- No comments, no trailing commas.
1. Question: [Your first question]
Answer: [Your first answer]
2. Question: [Your second question]
Answer: [Your second answer]
The "do not add, remove or reword" line matters. Without it, assistants often "improve" your answers or add questions that aren't on your page, which breaks the rule that markup must match visible content.
Step 3: Check the output
A correct result looks like this:
{
"@context": "https://schema.org",
"@type": "FAQPage",
"mainEntity": [
{
"@type": "Question",
"name": "What is AEO FAQ schema?",
"acceptedAnswer": {
"@type": "Answer",
"text": "AEO FAQ schema is FAQPage structured data that helps search engines and AI answer engines read your FAQs as clear question-and-answer pairs."
}
},
{
"@type": "Question",
"name": "How do I validate FAQ schema?",
"acceptedAnswer": {
"@type": "Answer",
"text": "Paste the code or URL into Google's Rich Results Test or the Schema Markup Validator and fix any errors it reports."
}
}
]
}
Check that every question from your list is present, that the wording matches exactly, and that nothing extra has appeared.
Step 4: Validate the schema
Paste the JSON-LD into our Schema Validator, then test it in Google's Rich Results Test or the Schema Markup Validator. Fix any errors before publishing. The most common problems are unescaped quotes and trailing commas.
Step 5: Add it to your website
Paste the script into the <head> of the page or just before the closing </body> tag. On WordPress you can use a header and footer plugin or your SEO plugin's custom schema field. On a custom PHP site, add it to the page template, ideally generated from the same database rows that render the visible FAQ (see the PHP example in our FAQ schema guide).
Prompt variations that save time
Generate the FAQs too. If you haven't written FAQs yet, ask the assistant to draft them from your page copy, then edit them yourself before generating the schema:
Read the page content below and suggest 6 FAQs a customer would genuinely ask.
Answer each in 40-80 words using only facts stated in the content.
Mark any answer where the content doesn't contain enough information with [CHECK].
Convert an existing FAQ section. Paste the HTML of your FAQ section and ask for FAQPage JSON-LD that mirrors it exactly.
Bulk pages. For many pages, it's faster and safer to generate schema from your CMS or database than to prompt page by page.
Common mistakes with AI-generated schema
- Hallucinated answers: the assistant adds facts that aren't true for your business.
- Mismatched content: markup that doesn't match what's visible on the page.
- Markdown code fences pasted into HTML: remove the triple backticks before pasting.
- Smart quotes (curly quotes) breaking JSON: make sure all JSON quotes are straight.
Frequently asked questions
Can ChatGPT create schema markup?
Yes. ChatGPT and other assistants can write valid JSON-LD for FAQPage, Organization, Product, Article and other types if you give clear instructions. Always validate the output before publishing.
Is AI-generated FAQ schema bad for SEO?
No, as long as the questions and answers are accurate, visible on the page and reviewed by a human. Google's guidance focuses on content quality and accuracy, not on whether a tool helped create it.
Is there a faster way than prompting ChatGPT?
Yes. A dedicated generator such as the free aeotool.com FAQ Schema Generator produces valid markup instantly from your questions and answers, with no risk of the AI changing your wording.