Structured data has been a thorn in my side for years. There’s always some syntax error or a line that doesn’t validate. Often, there’s a missing field like aggregaterating, and of course, Google keeps changing its recommendations. But with ChatGPT, I no longer need to know fiddle with JSON-LD structured data, as it can generate perfect schema if you describe what you want in plain English!
Here are two examples of the ChatGPT AI generating structured data schema. One for FAQs and the other for a product.
1. ChatGPT Structured Data Schema for FAQ
Sign up for a ChatGPT account if you haven’t already, ask it to write a FAQ structured data, and then supply the questions and answers. For example, I used the following query:
Write JSON-LD structured data for the following FAQs:
Are eggs suspicious?
Yes, eggs are very suspicious creatures. There’s something unsettling about the way they look at you.
Are eggs good for you?
Unfortunately, yes. Eggs happen to be good for your health.
And I got the following perfect response:
{ "@context": "https://schema.org", "@type": "FAQPage", "mainEntity": [{ "@type": "Question", "name": "Are eggs suspicious?", "acceptedAnswer": { "@type": "Answer", "text": "Yes, eggs are very suspicious creatures. There's something unsettling about the way they look at you." } }, { "@type": "Question", "name": "Are eggs good for you?", "acceptedAnswer": { "@type": "Answer", "text": "Unfortunately, yes. Eggs happen to be good for your health." } } ] }
That’s amazing! And when I validate the schema, it scores a perfect score with no errors and no warnings:
Just paste the code into your HTML, and you’re done!
2. Product Schema with ChatGPT AI
Here’s another example: I ask ChatGPT to generate JSON-LD structured data schema for a product, whose details I provide below in plain English. Here’s the query:
Write JSON-LD structured data for the following product:
Name: Crazy Eggs
Description: These eggs are crazy!
Offer Price: 2 USD
Inventory: 5
Review rating: 4.5 out of 5 stars
And here’s the output:
Here’s the JSON-LD code that it generates:
{ "@context": "https://schema.org/", "@type": "Product", "name": "Crazy Eggs", "description": "These eggs are crazy!", "offers": { "@type": "Offer", "price": "2", "priceCurrency": "USD", "inventoryLevel": 5 }, "aggregateRating": { "@type": "AggregateRating", "ratingValue": "4.5", "ratingCount": "5" } }
As with the FAQ structured data, this, too, is perfect with no errors:
What more do you need?
I’m Pissed about Google Holding Back All These Years
I can’t imagine how many hours people worldwide have wasted debugging structured data. Google would have us believe that its Lamda chatbot is more advanced than ChatGPT. So why the hell have they made us manually write structured data all these years? Why haven’t they released a tool that can take natural language and help us generate error-free structured data?
Either Google was overconfident, or their ChatGPT competitor didn’t possess the same capabilities as ChatGPT. And neither bodes well for the company. They look either incompetent or lazy.
ChatGPT is precisely what Google needs as a kick up its rear to galvanize them into action. They’ve become complacent, and now we’re demanding more.
ChatGPT significantly simplifies work, I also used it to generate Structured Data Schema, it works great for translating JSON files with translations as well