You’ve probably heard a lot of talk about schema markup and how it can improve your website’s ability to rank well on the search engine results page (SERP). But identifying – and especially writing – schema markup isn’t an easy task. One misplaced comma, a missing bracket, or stylized quotation marks will invalidate your schema, rendering it useless.
With the advent of ChatGPT, simple coding mistakes in schema markup are a thing of the past.
In this blog, we’ll discuss how to use ChatGPT to identify potential schema markup opportunities, how to use it to write schema markup for you, and what to be aware of when utilizing this powerful AI tool.
Schema markup is a type of code that you can add to your website's HTML to help search engines understand the content on your pages. It informs search engines about what your content is trying to convey on a web page and converts unstructured data into structured data. The most widely used and supported schema markup encoding language is JSON-LD, which is what we will be using in our examples.
Schema markup also can enhance the appearance of your web pages in search results. Not all types of schema markup will result in a rich snippet, but there are certain types of schema markup that can.
Adding schema markup to your website doesn’t have a direct impact on your ranking. In other words, it isn’t part of Google’s ranking algorithm – yet. However, adding schema markup does have an indirect impact on the ranking ability of web pages, because it provides search engines like Google with better semantic meaning of your website’s content and helps improve crawlability.
Before you can use ChatGPT to write schema markup, you have to know what types would be appropriate for your website. It’s important to note that ChatGPT can provide guidance on this, but that you should always consult an SEO expert to verify the validity and accuracy of ChatGPT’s choices.
For example, ChatGPT might recommend a type of schema markup that is outdated or not widely used anymore. For example, it could recommend that you use Professional Service schema markup, which has been deprecated by Google, but will never be removed from Schema.org’s library.
An SEO expert keeps up with the most current and correct information and would know that the correct and most current type of schema for marking up a service page is Service schema markup.
That being said, let’s go through the steps for using ChatGPT to identify the best types of schema markup for a website:
As you can see, ChatGPT was able to identify the most appropriate types of schema markup to use on our old website. As an SEO expert, I completely agree with these suggestions. But one downfall is that ChatGPT didn’t recommend adding Service schema markup, which would have been a great suggestion, as Sagepath does offer a handful of services.
ChatGPT might not always provide a complete list, and could potentially provide schema types that are outdated, so it’s always best to consult with an SEO expert to get their final approval and identify any types of schema opportunities that the AI tool might have missed. For a full list of available schema types, visit https://schema.org
Now that we have our list schema markup list, it’s time to start the real fun – asking ChatGPT to write the markup for us.
Before we dive in, there are a few things to consider that require an SEO expert’s evaluation:
As we mentioned earlier, JSON-LD is the most widely accepted encoding language – and ChatGPT knows this! However, there can be some instances where it doesn’t write schema in JSON-LD, so it’s important to specify to write the script in JSON-LD to be sure.
Using the example above, we asked ChatGPT to write Organization schema markup. Since AI can learn from previous prompts, it’s important to continue your “conversation” with ChatGPT in the same window.
As you can see from the screen shot above, ChatGPT generated an example of Organization Schema Markup that can be used on the website.
But there are some issues.
ChatGPT didn’t pull in the correct data that clearly appears on the website. Here are the fields that it provided incorrect information for:
Because of issues like this, it’s important to use ChatGPT to write a basic template that you can use to then populate the fields with the correct information. You should never rely on it to add the correct information.
The next step is to copy the code and run it through two different structured data testing tools. In your open conversation with ChatGPT, locate the “Copy Code” button in the top right corner. Click it to copy the code so it’s ready to paste into the structured data testing tools.
Despite the use of placeholders by ChatGPT, the schema validates properly when tested through both the Schema Markup Validator and Rich Results Test tools.
Using ChatGPT to write schema can be incredibly helpful for people who don’t know how to code in JSON-LD. It makes it easy to identify specific types of structured data to use on your website, and to generate a usable template that passes validation.
However, it’s always best to consult a Search Engine Optimization expert to help you understand where to place the code, how to properly implement it, ensure the data provided aligns with the information available on your website, and to identify any structured data opportunities it might have missed.
Do you need help writing, validating and implementing schema markup on your website? The SEO experts at Sagepath Reply can help! Contact us today to discuss the best opportunities for your website to help increase organic visibility, drive more organic traffic and increase click-through rates.
Dylan Goldman, SEO & Web Content Manager | Sagepath Reply
Dylan is a search engine optimization and web content expert with over 15 years of experience successfully optimizing websites to increase their organic visibility and drive organic traffic. Dylan has extensive experience writing and implementing schema for businesses across multiple industries, including ecommerce, financial institutions, software and tech companies, retailers, and more.