The method
Use this prompt in ChatGPT to generate schema markup code for an e-commerce product page. Paste the product details, like name, description, price, availability, and images, into the prompt for accurate schema generation. Copy the outputted code into the HTML of the product page.
The prompts
Prompt 1
I need you to act as an SEO specialist with expertise in schema markup. I will provide you with details about a product sold on my e-commerce website, and you will generate the appropriate schema markup code in JSON-LD format. The product name is: [Product Name]. The product description is: [Product Description]. The product price is: [Product Price]. The product availability is: [Product Availability - e.g., InStock, OutOfStock]. The product image URL is: [Product Image URL]. Please ensure the schema is valid and includes all relevant properties for optimal search engine indexing. Also please generate schema markup code for aggregateRating. The aggregateRating is: [number]. The ratingCount is: [number].
Prompt 2
I want you to create schema markup for an e-commerce product page to improve its visibility on Google and other search engines. Please generate valid JSON-LD schema based on the following product information. Product Name: [Product Name], Product Description: [Product Description], Product Category: [Product Category], Brand: [Brand Name], Price: [Product Price] (include currency), Availability: [InStock/OutOfStock/LimitedAvailability], Image URL: [Product Image URL], SKU: [Product SKU], Product ID: [Product ID]. Ensure the schema includes all necessary properties and is optimized for e-commerce products. Add also the property color : [color], size: [size], material: [material].