Prompt optimizer showing an evaluation issue

How to Build a Test Set for AI Marketing Prompts

An AI prompt writes a good product blurb in a demo. A week later, the same prompt adds a warranty that the shop does not offer. The first blurb was fine, but one good run could not tell you how the prompt would handle gaps in the product notes. A small set of test cases can catch that fault before text goes on sale pages.

Prompt testing means giving two versions of a prompt the same work and checking the results against a rule you chose first. You can do it with a sheet, a few source notes, and the tool you already use for draft copy. Start with a task that has a clear end, like writing a short product blurb from a fact sheet.

Evaluation setup in the OpenAI dashboard
Evaluation setup in the OpenAI dashboard. A platform example from npaka.

Pick one task and say what a good draft must do

Start with a job your team does each week. A lamp shop might ask an AI tool to write a 60-word product blurb. The draft should name the lamp, state how it mounts, and say which facts need a check. The shop should also ask the tool to leave out any claim that the notes do not support. A draft is easier to judge when it has a clear job and a small set of rules.

Find out where the work goes next. A blurb that goes to a writer for review can flag a gap. A tool that sends copy straight to the store may leave no one to check the flag. For a first test, keep the review step in place. Ask the writer what would help them spot a false claim and add that to the rules.

Separate useful copy from safe claims

A blurb can sound smooth and still get a key fact wrong. Use one rule for claims and another for style. A wrong wattage or mount type should fail the claim check. A dull first line may be easy to fix. If you put both into a single score, a nice tone can mask a fault that matters to buyers.

Keep the checks short. Use pass or fail for facts and a clear choice for style. You could ask a reviewer which draft would take less work to post. Give them a tie option when both read as well or need the same amount of work. The OpenAI evaluation guide describes using task-specific checks and comparing outputs against clear criteria.

Example of a failed evaluation case
Example of a failed evaluation case. A platform example from OpenAI Cookbook.

Make a test set with real gaps

Pull a few fact sheets from work your team has already done. Use only material you have permission to submit to the AI tool. Remove customer details and any notes the tool does not need. Put one sheet in each row with the facts the writer can use. Keep the expected claims and flags in a separate column for the reviewer.

Include a clean set of notes, a set with a gap, and a set with two notes that do not agree. For example, one lamp sheet says the mount fits desks up to six centimetres thick. A second sheet has no mount limit. A third has a six-centimetre value in the supplier table and a four-centimetre value in a draft brief. The good output uses the first fact, leaves out the second, and asks for a check on the third.

  • Save a normal case with all the main facts.
  • Add a case with a missing fact you would never want the tool to guess.
  • Add a case with conflicting notes, an odd unit, or a name that resembles another product.
  • Set aside one or two fresh cases for the final check.

Where you can, add one real mistake from a past draft. A case that took a writer fifteen minutes to fix is a better test than a trick you never see at work. Keep a copy of the source so a new reviewer can tell why the old answer was wrong.

Evaluation results for individual test cases
Evaluation results for individual test cases. A platform example from OpenAI Cookbook.

Run both prompts on the same work

Save the prompt you use today as version A. Copy it for version B and change one part. For the lamp shop, add a rule that says to put any claims that need a check on a new line below the draft. Keep the fact sheets, tool, and other settings the same where you can. Start fresh for each case so an earlier chat cannot give one run facts that the other version did not see.

Put both results next to the source notes. When you can, hide which version wrote each one until the reviewer makes a choice. Read the claims first. Then check the length and tone. Record the exact line that failed and what made it fail. “Wrong” is hard to act on. “Claims a five-year warranty absent from the sheet” gives the next writer a clear place to start.

Check whether the change holds up

AI tools can give more than one answer to the same task. Rerun a case that is costly to get wrong and a case that sits close to the line. If a prompt passes once and fails on the next run, keep that in your notes. For higher-risk claims, ask for a second check by a person even if the prompt passed every run in a small test.

Evaluation dashboard showing the results of a run
Evaluation dashboard showing the results of a run. A platform example from OpenAI Cookbook.

Choose a version and keep a way back

Do a short handoff test before the team switches. Give a writer a fresh product sheet and ask them to use the chosen prompt without help. Check whether they can find the right version, spot any flags, and tell which claims still need a source. If they paste an old prompt from a chat, make the approved copy easier to find. If they miss a flag tucked into the blurb, ask the tool to put flags under a clear label. Measure the time from the first draft to the final edit so you can tell whether the prompt has saved work overall or moved it to another part of the review.

Suppose version A gets eight of ten claim checks right and version B gets nine. These numbers are an example. If B’s one failure invents a safety rating, you still have a problem to solve. Look at which cases failed, how hard the faults are to spot, and how much time the new draft saves. A count helps you find a pattern. The actual fault tells you what it could cost.

Try the better version on the fresh cases you held out. If the new rule helps, give that version a date and keep the old one. Tell writers when to use it and where to put a new failure case. Link the test sheet from your team’s marketing prompt framework so the next edit starts with the same source and rules.

As new products arrive, add cases that reflect how the work has changed. If the team starts to write for a new market, test local terms and units with a reviewer who knows them. If the tool changes, rerun the cases that used to fail. Use the human editing checklist during the trial so a draft still gets checked at the point where the shop is ready to put it in front of buyers.

Featured visual credit: OpenAI Cookbook.

Leave a Reply

Your email address will not be published. Required fields are marked *