← All articles

Draft and adapt business material

How to Write and Test an AI Prompt for a Business Task

Learn a repeatable way to write and test a business prompt, with a complete example and checks for invented owners and conflicting dates.

By Niko Minadze6 min read

Editorial illustration for How to Write and Test an AI Prompt for a Business Task

To write a prompt for recurring business work, define the input and the result someone needs, give the model the relevant source material, and specify what it must not infer. Then test the prompt on several representative inputs, inspect failures against the source, and revise the instruction that failed. A tidy answer to one set of notes is a start, not evidence that the prompt works reliably.

Start with a testable task

Suppose a project coordinator receives meeting notes and needs a table of follow-up actions for colleagues. The input is the notes, the intended reader is someone assigning and tracking work, and the required result is a table with an action, owner, due date and passage from the notes. Success means capturing stated actions without supplying an owner or date the notes do not establish.

This is a narrower task than asking AI to “summarize the meeting.” A summary might sound useful while omitting an assignment. The table gives the coordinator specific things to check before using the result: Is every action present? Can each entry be traced to the notes? Are missing or conflicting details visible rather than quietly resolved?

Build the first prompt

The OpenAI API prompt guidance illustrates separating an instruction from input text by labeling and delimiting it. Anthropic’s prompt-engineering guide also recommends stating the action, audience, constraints and output structure explicitly. Here is a complete first prompt for the hypothetical task:

Task: Extract explicitly stated follow-up actions from the project notes below.
Audience: A project coordinator who will check assignments before sharing the table.

Return only a table with these columns, in this order:
Action | Owner | Due date | Supporting passage

Include one row per stated action. Copy a short, exact passage from the notes that supports the action and any supplied details. Do not infer an owner or due date. Write "unknown" for an unstated owner or due date. If the notes give conflicting due dates for the same action, write "unknown" for its due date and include both relevant passages in the supporting-passage cell. Do not treat a suggestion under discussion as an assigned action.

Project notes:
"""
{paste the project notes here}
"""

The task line says what to extract; the audience explains why traceability matters. The four columns make omissions and formatting mistakes easier to spot. The constraints define how to handle gaps and conflicts rather than leaving the model to make a plausible choice. The Project notes label and quotation marks separate the material to be processed from the instructions. Replace the placeholder with one set of notes for each run.

Test against the notes, not the appearance of the table

Try the first prompt with each of these hypothetical test inputs. The expected checks below are criteria for a reviewer, not results from a model run.

Case Project notes to paste What to check
Clear assignment “Maya will send the draft agenda by 12 June.” One row: send the draft agenda, Maya, 12 June, with that sentence as its supporting passage.
Missing owner “Send the draft agenda by 12 June.” One row with owner unknown, due date 12 June and the sentence as support. A named owner would be invented.
Conflicting dates “Maya will send the draft agenda by 12 June. The deadline for sending the draft agenda is 14 June.” One action, owner Maya, due date unknown, and both date-bearing sentences in the supporting-passage cell.

Compare each output with the input, field by field. Flag unsupported owners or dates, missing actions, extra actions and departures from the four-column format. Do not mark a response correct merely because it contains a table: an invented owner can fit perfectly in a cell. For consequential assignments, a person should check the notes and resolve uncertainty with the relevant colleague before circulating the table as an agreed plan.

Refine the instruction that failed

Imagine the missing-owner case produces Maya as owner even though that name is nowhere in the input. That is a hypothetical failure, not an observed model result. Keep the task and format fixed, then strengthen the owner rule. Replace “Do not infer an owner or due date” with:

Enter a name in Owner only when an exact passage in the supplied project notes explicitly assigns that action to that person. Include that passage in Supporting passage. If no passage explicitly names an owner for the action, enter "unknown" in Owner. Do not use a person's name from another action or from general discussion to fill the gap. Do not infer a due date.

This revision targets the invented-owner failure. It makes the required evidence for a named owner more precise without changing the date or output rules. The passage supporting an action may still contain no owner; in that case, the correct owner value is unknown.

Run the revised prompt against the same three inputs, especially the missing-owner case that prompted the change. Then add a fourth: “The team discussed whether Maya could send the agenda by 12 June; no decision was made.” Under the prompt’s existing rule about suggestions, the expected result is a table with the required headers and no action rows. Check that the new owner rule has not caused the prompt to turn a mentioned person into an assignee, drop a valid action, choose between conflicting dates or lose the requested format. If any of those checks fail, record the failure and make another targeted revision. Do not describe the revision as successful until its outputs have been inspected.

Keep the useful version and its tests

Save the prompt together with the four inputs, their expected checks and any failure that led to a revision. For repeat work, that small set is more useful than a prompt saved without a way to challenge it. Add cases when real notes expose a new ambiguity, particularly one that could change who is expected to do what.

Rerun the cases when the note format, required columns or model changes. Google’s prompt-engineering guidance notes that models may respond better to different prompt formats, and OpenAI’s API guide recommends tests to monitor prompt behavior while iterating or changing model versions. Those are reasons to test the version you intend to use, not guarantees that any particular wording will pass. The usable result is a prompt whose outputs meet the task requirements across the cases you have checked, with a person still responsible for disputed or consequential assignments.

← All articles