A catalogue rewrite pipeline from spreadsheet to review queue

APIFreeDeepSeekKey · Updated 2026-11-22 · 9 min read

Shop shelves with neatly arranged kitchen goods
Product catalogues are structured and repetitive, which suits scripted drafting.

Shops accumulate weak product copy: manufacturer text pasted unchanged, descriptions written in a hurry years ago, near-identical paragraphs for products that differ only in size or colour. Rewriting it all by hand takes weeks. A script that sends each product to a language model and saves the result can produce a first pass in an afternoon, and that pass is a genuine head start for an editor, as long as the pipeline is built to avoid invented specifications and copy that reads the same on every page.

This guide is for shop owners, e-commerce managers and agencies with a catalogue of a few hundred to a few thousand items. It walks through the whole pipeline step by step: preparing a clean spreadsheet, writing a strict prompt, running the batch at a safe pace, checking for invented facts and repetitive phrasing, and handing results to a person for approval.

The code uses the free keyless endpoint on this site, which runs free-ai, an independent open-weight model. This site is not affiliated with DeepSeek; if you prefer DeepSeek's models for this job, change the base URL, key and model name to theirs and keep everything else.

Frequently asked questions

What is a catalogue rewrite pipeline?

A repeatable process that reads product data from a file, asks a model for a description per product with the same rules, checks the results automatically, and stores them for review. The point is consistency and traceability, not just speed.

Why do AI product descriptions all sound the same?

Because the prompt, the structure and the vocabulary are identical for every item, and products in one category share most attributes. Varying the angle per product, feeding real differentiators and checking similarity between outputs all reduce sameness.

How does rewriting differ from writing from scratch?

Rewriting starts from existing text and keeps its facts while changing wording and structure. Writing from scratch starts from attributes only. Rewriting is safer for facts but more likely to copy the original's weaknesses; writing from attributes gives fresher text but needs good data.

Can a model invent product specifications?

Yes, and it is the most damaging failure in product copy. Models fill gaps with plausible numbers, materials and features. A strict rule to use only provided attributes, plus an automatic check for numbers not in the input, catches most cases.

Which is better for product copy, a small free model or a large paid one?

For short descriptions with clear attributes, a smaller model often does well enough after editing. For premium products, technical items or brand-defining copy, a larger commercial model usually writes better and needs less correction.

How long does a batch of 500 products take on the free endpoint?

At one request per second, with typical response times of a few seconds, a single worker processes a few hundred products per hour. A batch of 500 fits comfortably inside the daily allowance of 10,000 requests.

Should the original descriptions be sent to the model?

Send them if they contain accurate facts you want kept. Leave them out if they are poor, copied from a manufacturer, or likely to be echoed back too closely. In that case, extract the facts into attributes first.

Do rewritten descriptions need human review?

Yes. Every description goes live under your shop's name, and a wrong size, material or compatibility claim leads to returns and complaints. A person should approve each one, even if most need only a glance.

Step by step

  1. Prepare a clean product sheet — Export products to CSV with an ID, name, category, key attributes and, optionally, the current description. Remove HTML, fix obvious data errors and add one real differentiator per product.
  2. Write a strict description prompt — Fix length, tone, structure and language, and forbid any specification not present in the attributes. Test it on ten varied products and adjust until most outputs need only light edits.
  3. Run the batch at a safe pace — Process one product per second with a resumable script that writes each result to an output file and skips finished IDs on restart.
  4. Check facts and similarity automatically — Flag outputs that contain numbers not present in the input and outputs that are too similar to another description in the same category.
  5. Review and import — Give editors a sheet with original, draft and flags side by side. Import only approved rows into the shop, and keep the old text for rollback.

Why catalogues are a good fit for scripted drafting

Product copy is structured, repetitive and short. Each item has attributes, a category and a purpose, and the description has a predictable job: explain what it is, who it is for and why it differs from the next item. That makes it one of the tasks where a model saves the most time per word.

It is also a task where errors are costly. A wrong dimension or an invented feature becomes a promise to a customer. The pipeline below is therefore built around one principle: the model writes prose, the data provides every fact.

Start with your weakest pages

Pick categories where the current copy is poorest or most duplicated. Improvements there are most visible, and editors learn the workflow on pages where any reasonable draft is an upgrade.

Leave hero products to people

Best-sellers and flagship items deserve hand-written copy, perhaps starting from a draft. They carry the brand voice and are read most often, so the extra care pays back.

Preparing input data that keeps facts straight

The quality of the output is set mostly by the quality of the spreadsheet. Columns should be clean and unambiguous: dimensions with units, materials named consistently, compatibility listed explicitly. If two columns disagree, the model will pick one, and you will not know which.

Add a short differentiator column written by someone who knows the products: what makes this item worth choosing over its neighbours. Even a few words, such as "lightest in the range" or "for small balconies", give each description its own angle and are the most effective fix for sameness.

  • One row per product with a stable ID
  • Units included in every measurement
  • No HTML or formatting in attribute cells
  • A differentiator written by a person
  • The current description in its own column, if it has accurate facts
Printed table with highlighted rows and a ruler
Clean attributes with units are what keep facts straight in the drafts.

Writing a prompt that forbids invented specs

The system prompt should be short, explicit and testable. State the length range, the structure (for example, one opening sentence, two short paragraphs and no bullet list), the tone, and the hard rule: use only the attributes given; if a detail is missing, do not mention it. Add a list of phrases to avoid, especially the clichés your current copy overuses.

Test the prompt on ten products from different categories, including awkward ones with few attributes. Products with sparse data are where models invent the most, so make sure the prompt holds there.

Say what to do with missing data

Models fill silence. A rule such as "if no material is listed, do not mention material" works better than a general instruction not to invent, because it names the exact behaviour you want.

Keep the angle in the user message

Put fixed rules in the system prompt and the differentiator in the user message for each product. The model then treats the angle as specific to this item, which helps variety across the catalogue.

Normalise before you send

Spelling the same material three ways, such as stainless, s/steel and stainless steel, makes the model treat them as different facts and invites inconsistency across the catalogue. A quick pass that standardises attribute values before the batch runs produces cleaner, more uniform descriptions and makes later fact checks far easier to automate.

The batch script

The script reads the CSV, sends one request per product, and appends results to an output CSV. It skips IDs already in the output, so you can stop and restart freely. Requests are paced at one per second to stay inside the free endpoint's per-IP limits, with a short wait on busy responses.

Why append and flush

Writing each row as soon as it arrives, and flushing the file, means a crash loses at most one product. A script that collects everything in memory and writes at the end can lose hours of work to a single error.

import csv, os, time
from openai import OpenAI, APIStatusError

client = OpenAI(base_url="https://api.apifreedeepseekkey.com/v1", api_key="free")
SYSTEM = ("You write product descriptions for an online shop in plain British English. "
          "60-90 words, two short paragraphs, no bullet points, no headings, no greeting. "
          "Use only the attributes given. If a detail is not listed, do not mention it. "
          "Avoid: 'perfect for', 'elevate', 'must-have', 'look no further'.")

done = set()
if os.path.exists("drafts.csv"):
    with open("drafts.csv", newline="", encoding="utf-8") as f:
        done = {row["id"] for row in csv.DictReader(f)}

with open("products.csv", newline="", encoding="utf-8") as src, \
     open("drafts.csv", "a", newline="", encoding="utf-8") as dst:
    out = csv.DictWriter(dst, fieldnames=["id", "draft"])
    if not done:
        out.writeheader()
    for p in csv.DictReader(src):
        if p["id"] in done:
            continue
        user = (f"Product: {p['name']}\nCategory: {p['category']}\n"
                f"Attributes: {p['attributes']}\nWhat makes it different: {p['differentiator']}")
        for attempt in range(4):
            try:
                r = client.chat.completions.create(
                    model="free-ai", max_tokens=300, temperature=0.6,
                    messages=[{"role": "system", "content": SYSTEM},
                              {"role": "user", "content": user}])
                out.writerow({"id": p["id"], "draft": r.choices[0].message.content.strip()})
                dst.flush()
                break
            except APIStatusError as e:
                if e.status_code not in (429, 503):
                    raise
                time.sleep(int(e.response.headers.get("retry-after", "3")))
        time.sleep(1)
Cardboard boxes moving along a conveyor belt
A paced, resumable batch turns the spreadsheet into drafts one row at a time.

Automatic checks for invented numbers

The simplest useful fact check compares numbers. Extract every number from the draft and every number from the input attributes. Any number in the draft that does not appear in the input is suspicious: a made-up weight, a capacity, a warranty period. Flag the row for closer review.

The same idea works for a short list of risky words. If the attributes do not mention waterproof, dishwasher-safe, organic or a certification, those words in the draft deserve a flag. Build the list from the claims that would cause returns in your categories.

False positives are acceptable

The check will sometimes flag harmless numbers, such as "two short paragraphs" written as a digit. That is fine. A flag only means a person looks; the cost of a quick look is far lower than the cost of a wrong claim slipping through.

Build the number check in a few lines

Extract digits with a regular expression from both the attribute string and the draft, then compare the two sets. Any value present only in the draft goes into a flag column. It is crude, fast and catches the most common invented specifications, such as weights, capacities and warranty periods.

Detecting copy that reads the same everywhere

Within a category, compare each new description with the others using a simple word-overlap measure. Pairs that share a large share of their word sequences should be flagged. The usual fix is to strengthen the differentiator for those products and regenerate, rather than asking the model to "be more original", which tends to produce flowery language.

Check opening sentences separately. Even when bodies differ, models often begin every description in a category the same way, and openings are what shoppers see in listings and search snippets.

Vary structure on purpose

Prepare two or three structure templates, such as starting with use case, with the main feature or with a customer problem, and assign them in rotation. It is a cheap, effective way to break up uniformity across a large catalogue.

Row of similar bottles with one pulled forward
Similarity checks find descriptions that read the same across a category.

Pricing changes and provider choice

Model prices have moved a lot. Providers have cut prices sharply in competitive phases and raised them at other times, and some analysts expect pricing to drift towards paying per completed task rather than per token. For a catalogue job, the practical lesson is to keep the pipeline provider-agnostic: base URL, key and model name in config, nothing provider-specific in the logic.

That makes it easy to run a pilot on the free endpoint, compare with a paid model on the same twenty products, and choose based on the editing time each needs. The article on cost per finished piece explains how to make that comparison fairly.

Do not chase each price headline

Rerunning your whole pipeline on a new provider each time a price changes is tempting but costly in testing and editing. Re-measure on a small sample, and only switch when the saving per finished description is clear after editing time is included.

Review, import and rollback

Give editors a sheet with four columns: product ID, current description, draft and flags. Most rows should need a quick read and an approval. Flagged rows need a fact check against the product data. Rejected rows go back with a note, which often reveals a data problem rather than a prompt problem.

Import only approved rows, and keep the previous text in a separate column or backup. If a batch turns out to have a systematic issue, you can roll back a category in minutes. For a deeper automated pre-check, see building an AI review pass; for timing large runs, see scheduling overnight batches.

Track edit distance

Measuring how much editors change each draft, even roughly, tells you which categories the prompt handles well and which need a better template or more data. Over a few batches it turns into a clear map of where the pipeline works.

Two paper stacks on a desk with a stamp pad
Every rewritten description is approved by a person before import.
Try the free API

Send a short brief to the keyless endpoint on the home page and see what kind of first draft comes back, no account needed.

Read also