Written by David Rodgers

Quality and Operations Perspective

Written by David Rodgers, Lean Six Sigma Black Belt and ASQ-certified quality leader. This guide applies quality and process-improvement methods to AI in operations from a quality and operations perspective. The author is not a machine learning engineer, data scientist, or lawyer.

Last editorial review: September 24, 2026. Educational content only: not medical, legal, or regulatory advice. Follow your organization's policies and the requirements that apply to you, and have subject-matter experts review any change to a live process.

  • Lean Six Sigma Black Belt
  • ASQ CQE
  • ASQ CMQ/OE
  • Quality systems and process improvement

A prompt is a set of instructions for a task. Writing a good one is like writing a good work instruction: say who does what, with which inputs, to what standard, and how to check it. People who write clear procedures usually write good prompts.

This guide covers the seven parts of a good operations prompt, useful patterns (summarize with quotes, extract to a table, compare with a standard, brainstorm then rank, critique, rewrite, checklist), three worked prompts you can adapt, how to verify output, how to test a prompt on real cases with an interval, how to manage a prompt library, and data safety including prompt injection. A worked example compares two versions of an SOP summary prompt on 20 cases.

It does not cover programming. Tools change quickly, so the guide describes habits that apply to any assistant.

Open the AI Prompt Builder Get the Prompt Library

Before You Start

Educational content. This guide applies quality and operations methods to the use of AI in organizations. It does not cover how to build or program AI systems, and it is not legal, regulatory, security, or professional advice. AI products, standards, and laws change quickly, so check current requirements and have qualified people review any use that affects safety, quality, people, or regulated data. The worked example is illustrative.

Prompting Is an Operations Skill

A prompt is a set of instructions for a task. Writing a good one is much like writing a good work instruction: say who does what, with which inputs, to what standard, and how to check it. People who write clear procedures usually write good prompts, and those who do not usually find that AI output is vague or unreliable.

Clear Instructions Get Better Work

Vague requests get vague answers. A clear task, source, rules, and format get usable output.

Ground It in Your Documents

Tell the AI to use only the text you give it, and to quote it. That reduces invented facts.

Check the Result

A prompt does not guarantee truth. Build in checks, and have a person verify what matters.

Treat Prompts as Controlled Documents

Good prompts are worth saving, testing, owning, and improving.

The Parts of a Good Prompt

Role and goal Who the AI acts as and what you want doneExample: You are helping a quality engineer write a first draft of an 8D summary. Context The process, the audience, and what is knownExample: A weld defect on line 3 found on 14 October; the audience is the plant manager. Source material The text the AI must use, marked clearlyExample: Use only the notes between the triple quotes below. Task steps What to do, in orderExample: List the facts, then possible causes, then what to check first. Rules What to avoid and what to say when unsureExample: Do not invent numbers. Write NOT STATED if a fact is missing. Output format The shape of the answerExample: A table with three columns: fact, source line, confidence. Checks What the AI must verify before it answersExample: Quote the source line for every fact.
Seven parts. Short tasks need only a few; important tasks need all seven.

Order and wording matter less than completeness and clarity. Put the source material in clearly marked blocks, such as between triple quotes, so that the AI does not confuse it with your instructions, and so that text in the source is treated as data and not as commands.

Useful Patterns for Operations Work

PatternHow to askExample use
Summarize with quotes“Summarize the text and quote the line for every point.”Incident notes, audit reports, supplier emails
Extract to a table“List X, Y, Z from the text in a table. Write NOT STATED if missing.”Pulling dates, quantities, and defects from reports
Compare with a standard“Compare text A with requirement B. List gaps and quote both.”Checking an SOP against a standard
Brainstorm, then rank“List possible causes. Then rank by what the facts support and say what to check.”RCA and FMEA brainstorming
Critique“Find unclear or missing steps in this procedure. Do not rewrite it.”Reviewing instructions
Rewrite for an audience“Rewrite for operators at an eighth-grade reading level. Keep every step.”Training material, safety messages
Make a checklist“Turn this procedure into a checklist with one action per line.”Audit and start-up checklists
Ask what is missing“What information would you need to answer this well?”Starting a new kind of task

Three Worked Prompts

Each is a template. Replace the bracketed text, and keep the structure.

An 8D first draft

You are helping a quality engineer write a first draft of an 8D summary for the plant manager.

Context: a weld defect was found on line 3. The audience reads quickly and needs facts.

Source material (use ONLY this):
"""
[paste the incident notes here]
"""

Task:
1. List the facts stated in the notes, one per line.
2. List possible causes that the facts support. Mark each as "supported by notes" or "needs checking".
3. List the first three things to check.

Rules:
- Do not invent numbers, dates, or names. If something is not in the notes, write NOT STATED.
- Do not say which cause is the root cause. That is decided by the team with evidence.

Format: a table with columns Fact, Source line, Confidence (high, medium, low).
Before you answer, check that every row quotes the source line it came from.

An SOP gap check

You are reviewing a work instruction for a machining operator.

Compare the SOP text between the first pair of triple quotes with the standard requirement between the second pair.

SOP:
"""
[paste the SOP here]
"""

Requirement:
"""
[paste the requirement here]
"""

List each place where the SOP is missing, unclear, or in conflict with the requirement. For each, quote both texts and say what is wrong in one sentence.
If you find no gaps, say so. Do not suggest wording changes. Do not mention requirements that are not in the text above.

Meeting minutes with actions

Turn the meeting notes below into minutes.

Notes:
"""
[paste the notes here]
"""

Output three sections:
1. Decisions made (one line each).
2. Actions: a table with Action, Owner, Due date. If an owner or date is not in the notes, write NOT STATED. Do not guess.
3. Open questions.

Use only the notes. Keep each line under 20 words.

The AI Prompt Builder assembles prompts like these from the parts, with a data-safety checklist, and the Operations Prompt Library keeps them with owners, versions, and test results.

Verifying the Output

  • Ask for the evidence. A quoted source line for every fact lets you check quickly.
  • Spot-check numbers and names against the source. Language models can change a digit or merge two items.
  • Do not use it as a calculator. Use a spreadsheet or a calculator for numbers.
  • Beware of confident answers about standards, laws, and specifications. Check them against the real document.
  • Look for what is missing, not just what is wrong. A summary can leave out the one critical fact.
  • Keep a person accountable for anything that is sent, recorded, or acted on.

Testing a Prompt

A prompt you use often deserves a test, as any method does. Build a small set of real cases with known good answers, run the prompt on all of them, and score the results against a checklist.

  1. Collect 20 or more real cases, including awkward ones: missing information, contradictions, and long or messy text. Remove confidential data.
  2. Write the checklist for a good output: every fact correct, nothing invented, required sections present, format followed.
  3. Score each output pass or fail, ideally by someone who did not write the prompt.
  4. Change one thing at a time and re-run the same cases.
  5. Report the pass rate with an interval. With 20 cases, the interval is wide.
  6. Re-test when the tool or the model changes.

Worked Example: Improving an SOP Summary Prompt at Riverside Plant

Riverside Plant, an illustrative 140-employee metal fabrication and assembly plant, wanted a prompt that summarizes SOP revisions for operators. It tested two versions on 20 real revisions, scoring each summary as fully correct only if every statement matched the SOP and nothing was invented. Figures are illustrative.

VersionWhat it saidFully correct
1“Summarize the changes in this SOP revision for operators.”14 of 20 (70%)
2Added: use only the text between triple quotes; quote the changed line for each change; write NOT STATED if unsure; list unchanged steps separately19 of 20 (95%)
30% 40% 50% 60% 70% 80% 90% 100% Prompt version 114 of 20 summaries fully correct 70.0%45.788.1 Prompt version 219 of 20 summaries fully correct 95.0%75.199.9
Pass rates with exact 95% intervals. The intervals overlap, so 20 cases are suggestive, not conclusive.

Reading it. Version 2 looks better (19 correct against 14), and the changes are the kind that should help: grounding and quoting. But with 20 cases the intervals (46% to 88% and 75% to 99.9%) overlap, so the team did not call it proven. It adopted version 2, ran 30 more cases in the first month, and kept a reviewer on every summary until it had enough evidence to sample.

Managing a Prompt Library

  • Record for each prompt: title, purpose, owner, version, the data class it may be used with, the tool it was tested on, the test results, and the review date.
  • Keep the test cases with the prompt so anyone can re-run them.
  • Control changes like any document: a new version, a re-test, and a note of what changed.
  • Retire prompts that fail tests or are no longer used.
  • Share the good ones. A library saves everyone the effort of starting from nothing.

Data and Safety

  • Follow the data rules. Do not put confidential, personal, or restricted data into any tool not approved for that class. See the acceptable-use policy template.
  • Remove names and identifiers before using text from records, where possible.
  • Treat pasted content as data. Text copied from emails or web pages can contain instructions that change what the AI does (prompt injection). Mark it clearly and do not let it act without review.
  • Do not rely on it for safety-critical or legal decisions. Use it to prepare, and have a qualified person decide.

Common Mistakes

Vague Requests

“Make this better” with no standard.

No Source Text

Letting the AI answer from memory about your process or a standard.

No Check on the Output

Using the first answer without verifying it.

Confidential Data in Public Tools

Pasting restricted records into a tool not approved for them.

Tuning on One Example

A prompt that works on one case and fails on the next.

Prompts Nobody Owns

No owner, version, or test, so nobody trusts them.

Self-Assessment Questions

  • Do our prompts name the source text, the rules, the output format, and a check?
  • Do we verify facts, numbers, and standards against the original?
  • Have we tested our most-used prompts on real cases and recorded the pass rate?
  • Is there a library with an owner and version for each prompt?
  • Do people know what data they must not paste into which tool?

Prompting for Operations Work: Frequently Asked Questions

What makes a good prompt for operations work?

A clear role and goal, the context, the source material in a marked block, the steps to follow, rules about what to avoid and what to say when unsure, the output format, and a check. Telling the AI to use only the text you provide and to quote it reduces invented facts.

How do I stop an AI from making things up?

You cannot stop it entirely, but you can reduce it. Provide the source text, tell it to use only that text, ask it to quote the line for every fact and to write NOT STATED when information is missing, and verify the output against the source. Never rely on it for facts about standards, laws, or specifications without checking the original.

How should I test a prompt?

Collect 20 or more real cases, including awkward ones, write a checklist for a good output, score each output pass or fail (ideally by someone who did not write the prompt), change one thing at a time, and report the pass rate with an interval. Re-test when the tool or model changes.

What data can I put into an AI tool?

Only the data classes your organization has approved for that tool. Do not paste confidential, personal, or restricted data into tools not approved for it. Remove names and identifiers where you can, and follow your acceptable-use policy.

Why keep a prompt library?

Good prompts take effort to make and test. A library with an owner, version, data rules, and test results lets people reuse them, improve them with control, and retire the ones that fail.

Sources and Further Reading

  • National Institute of Standards and Technology, Generative AI Profile, NIST AI 600-1 (2024), on risks such as confabulation and prompt injection.
  • OWASP, Top 10 for Large Language Model Applications, on prompt injection (check the current version).
  • Anthropic, Prompt engineering overview and OpenAI, Prompt engineering guide, for vendor guidance on clear instructions and structured prompts; practices change, so check current documentation.
  • Clopper, C. J. and Pearson, E. S., “The use of confidence or fiducial limits illustrated in the case of the binomial,” Biometrika 26, 1934, for the intervals on pass rates.
  • ISO 9001:2015, clause 7.5, on documented information, for the idea of controlled documents (check current edition).