Learn how to create a ChatGPT product feed from scratch—data format, required fields, validation, upload steps, and common pitfalls.
Introduction
ChatGPT has become a powerful tool for e‑commerce platforms thanks to its ability to query product catalogs in natural language and generate recommendations. To unlock this potential, you must prepare a product feed—a structured data set—in the correct format. In this article we answer the question How to Prepare a ChatGPT Product Feed? by covering the data schema, mandatory fields, publishing steps, and frequent mistakes. By following this guide, readers can transfer product data to ChatGPT smoothly and achieve the highest efficiency from intelligent recommendation systems.
Expert Tip:Ensure your feed file is saved in UTF‑8 encoding; this is critical for the correct display of Turkish characters.
Core Concepts
# What Is a Product Feed?
A product feed aggregates the essential attributes of your items (title, description, price, stock status, etc.) into a single file that follows a defined schema. ChatGPT analyzes this feed to generate product suggestions, comparison tables, and dynamic content.
# Data Schema Required for ChatGPT
ChatGPT expects a JSON‑LD schema that is tailored for the gpt‑4o‑mini model. At a minimum, the feed should contain the following fields:
product_id– Unique product identifiertitle– Product titledescription– Short and long descriptionprice– Current price (including currency)currency– ISO 4217 code (e.g., TRY)availability– Stock status (in_stock,out_of_stock)image_url– Link to the product imagecategory– Hierarchical product category
# Commonly Used File Formats
| Format | Advantage | Disadvantage | Most Popular Platform |
|---|---|---|---|
| CSV | Easy to edit, widespread Excel support | Limited hierarchical data | Small‑scale stores |
| JSON | Supports hierarchy, API‑friendly | More complex editing | Modern e‑commerce APIs |
| XML | Standardized, broad support | Verbose and harder to read | Large retailers |
Step‑by‑Step Guide
# 1. Identify the Data Source
Determine whether your product information resides in a database, ERP system, or CSV file. Verify that all required fields are present and complete.
# 2. Create the Schema File
The example below shows a product feed JSON structure that ChatGPT can understand. Save this file with a .json extension.
{
"products": [
{
"product_id": "SKU12345",
"title": "Men's Leather Bag",
"description": "Water‑proof, high‑quality leather, 30 cm wide.",
"price": "1499.99",
"currency": "TRY",
"availability": "in_stock",
"image_url": "https://example.com/images/leather-bag.jpg",
"category": ["Fashion", "Bags", "Men"]
},
{
"product_id": "SKU67890",
"title": "Bluetooth Headphones",
"description": "Active noise cancellation, 20 hour battery life.",
"price": "799.00",
"currency": "TRY",
"availability": "out_of_stock",
"image_url": "https://example.com/images/headphones.jpg",
"category": ["Electronics", "Audio Systems", "Headphones"]
}
]
}
Important Note:Pay attention to trailing commas in your JSON; an invalid JSON will prevent ChatGPT from reading the feed.
# 3. Verify File Encoding
Save the file as UTF‑8 (without BOM). In editors like Notepad++ or VS Code, check Encoding → UTF‑8.
# 4. Test with Validation Tools
Use online validators such as JSONLint to confirm the file’s validity.
Send a sample query to the OpenAI Playground using the
gpt‑4o‑minimodel to ensure the feed is interpreted correctly.
# 5. Upload via the API
The ChatGPT API accepts feed files through the files.upload endpoint. Example Python snippet:
import openai
openai.File.create(
file=open("product_feed.json", "rb"),
purpose="fine-tune"
)
# 6. Manage Updates and Versioning
When product data changes, upload a new feed with a version number(e.g., product_feed_v2.json). This prevents the model from responding based on outdated information.
Tips & Common Mistakes
-Tip:Keep product descriptions between 150 – 200 characters; overly long text can increase response latency.
-Tip:Ensure image URLs are publicly accessible (no 404 errors).
-Mistake:Using boolean values (true/false) for stock status instead of fixed strings like in_stock / out_of_stock.
-Mistake:Storing the price as a string rather than a numeric value; this leads to calculation errors.
-Mistake:Defining the category hierarchy as a flat list instead of a multi‑level array, which degrades recommendation quality.
Frequently Asked Questions
# How Large Should the Feed Be?
The feed file should not exceed 10 MB. For extensive catalogs, use a batch upload approach.
# How Do I Convert CSV to JSON?
In Python, you can read a CSV with the pandas library and convert it using to_json(orient="records") for a quick transformation.
# Is the Updated Feed Available Immediately?
Once a new file is uploaded via the API, the model will use the fresh data on the next query. However, a cache period of 5 – 10 minutes may apply.
Conclusion
The product feed is the foundational data source that enables ChatGPT to generate product recommendations.
A JSON‑LD schema, hierarchical structure, and UTF‑8 encoding are mandatory.
-Validation steps (JSONLint, Playground) ensure a flawless integration.
-Updates should be managed with version numbers, and the file size must stay under 10 MB.
- Avoiding common errors (incorrect data types, missing fields) preserves model performance and improves recommendation quality.
By following this guide step by step, you can integrate ChatGPT with your product catalogs and deliver smarter, more personalized shopping experiences to your customers.
Rüstem Güney
• E-Ticaret İçerik UzmanıWeb sitesi kurulumu, web tasarım, özel yazılım çözümleri, domain ve hosting hizmetleri üzerine SEO uyumlu içerikler üretiyorum.
Want to Build a High-Converting Landing Page?
Start scaling your digital sales today with our conversion-focused single-product store architecture.