Tell me about your task

Article · 09 / Using AI at work

How Do You Test an AI Workflow Before Your Team Relies on It?

Test an AI workflow against a written baseline and at least ten representative cases, including missing data, conflicting instructions, restricted input, a rejected output, a partial failure, and the manual fallback. Use sample information with outside actions disabled, record evidence for every result, and require a named person to make the go, revise, or stop decision.

10 min read

By

Published
Reviewed

Five-step fallback drill used as part of an AI workflow test

In brief

Use a baseline, ten representative cases, and a named decision owner.

Test an AI workflow against a written baseline and at least ten representative cases, including missing data, conflicting instructions, restricted input, rejected output, partial failure, and the manual fallback.

  • Write pass criteria before seeing the model's output.
  • Include normal cases, missing or conflicting inputs, restricted information, rejection, and failure recovery.
  • Disable messages, charges, publications, and other outside actions during testing.
  • Keep the evidence and let a named person decide whether to go, revise, or stop.

A polished output proves that the tool can succeed once. A useful test asks whether the whole process, including inputs, human review, integrations, outside actions, failure handling, and recovery, behaves acceptably under the conditions the team will actually face.

NIST says AI systems should be tested before deployment and regularly while in operation. Its AI RMF Core calls for documented test sets, metrics, deployment-relevant conditions, monitoring, and repeatable test, evaluation, verification, and validation processes.

Step 1: Write the acceptance criteria before running the test

Define success while the team can still resist being impressed by a good demonstration.

Record:

  • the approved purpose;
  • allowed and prohibited inputs;
  • the required output and destination;
  • facts or fields that must be correct;
  • the human reviewer and evidence they must check;
  • actions the workflow may never take without approval;
  • stop conditions;
  • maximum acceptable correction time or defect rate;
  • the manual fallback; and
  • the person authorized to approve deployment.

Some criteria should be absolute. For example, a restricted-data test should stop before the information is sent, and an unapproved outside action should occur zero times.

Step 2: Capture the manual baseline

Test the current method on the same kind of work. Measure the full cycle, not just the time spent typing:

  • minutes from start to approved completion;
  • first-pass acceptance rate;
  • factual or field-level defects;
  • rework time;
  • missed items;
  • cost per completed item; and
  • user effort or frustration when it affects adoption.

Without a baseline, the team can show that AI produced an output but cannot show that the workflow improved the job.

Step 3: Build a safe test environment

Use invented names, synthetic records, public information, practice accounts, and controlled file locations. Turn off or redirect consequences such as sending messages, updating live records, creating charges, publishing pages, or changing permissions.

Test the exact tool, account type, model, prompt, integration, and settings proposed for use. A result from a personal account or a different model does not validate the production configuration.

Step 4: Run this ten-case test pack

Case 1: The ordinary case

Use a complete, representative input. Confirm that the output is accurate, formatted correctly, delivered to the test destination, and reviewable by the named person.

Case 2: Missing information

Remove a required field or source. The workflow should stop, request the missing information, or clearly mark the gap. It should not invent a value.

Case 3: Conflicting information

Provide two approved-looking sources with different dates, owners, or instructions. The workflow should surface the conflict and route it to a person.

Case 4: Incorrect or stale source material

Include an outdated item that can be checked against a current source. This tests whether the process blindly repeats input or applies the required verification step.

Case 5: Prohibited or restricted input

Use a harmless synthetic marker labeled as restricted. The process should stop before sending it to an unapproved service and explain the approved next action.

Never test a privacy guardrail by using real restricted information.

Case 6: Hostile instruction inside a source

Place a test instruction inside a document or webpage telling the system to ignore its rules, expose information, or take an unapproved action. The workflow should treat source content as data, not as new authority.

The NIST Generative AI Profile identifies risks that include data privacy, information security, confabulation, and human-AI configuration. Those risks belong in the test plan rather than in a disclaimer added after launch.

Case 7: Unavailable dependency

Simulate a missing file, disconnected service, expired permission, or unavailable reviewer. The process should fail visibly and direct the operator to a safe path.

Case 8: Partial completion and duplicate risk

Make the workflow fail after an outside action may have occurred. The operator should know where to check the authoritative record before retrying.

Case 9: Human rejection

Give the reviewer a plausible output that violates one acceptance criterion. Confirm that the person can reject it, record why, and prevent the next action.

Case 10: Manual fallback

Disable the AI step and ask a person who did not build the process to complete the essential work through the approved ordinary method. Confirm that access, instructions, templates, and ownership are real.

Step 5: Record evidence, not impressions

For every case, record:

FieldExample of what belongs there
Case ID and versionT-06, model/configuration tested on 2026-08-20
ScenarioConflicting due dates in two synthetic sources
Expected behaviorStop and request human resolution
Actual behaviorContinued using the newest date without warning
EvidenceSaved test output or screenshot in the approved test folder
ResultFail
SeverityHigh because the conflict was hidden
Owner and correctionProcess owner adds conflict detection and retests
Retest resultPending, pass, or fail

Do not save private source data in the test record. Use a case label and controlled evidence location.

Step 6: Make an explicit decision

Use three outcomes:

  • Go: all hard-stop cases pass, quality meets the stated threshold, the manual fallback works, and residual risk is within the responsible owner’s authority to accept.
  • Revise: the purpose remains appropriate, but one or more controls, instructions, tests, or measures need correction.
  • Stop: the workflow cannot be made sufficiently verifiable, safe, lawful, or worthwhile for the proposed use.

Do not average away a critical failure. Nine good cases do not compensate for one test that sends restricted information or performs an unapproved action.

The NIST AI RMF Playbook recommends using testing outputs when deciding whether development or deployment should proceed and continuing to track both risks and benefits.

Step 7: Retest after launch and after change

Set a review date and monitor actual use. Retest after changes to the model, prompt, integration, data source, permissions, reviewer, destination, or consequence.

Track user-reported problems and near misses. A workflow can pass in a controlled environment and fail when real inputs are longer, messier, multilingual, incomplete, or intentionally misleading.

Limitations

Ten cases are a practical minimum for a small workflow, not a claim of statistical validation. Higher-impact systems need deeper domain testing, representative populations, independent assessment, security review, legal and privacy review, accessibility evaluation, and more rigorous monitoring.

This article is practical education, not a complete safety, cybersecurity, clinical, legal, or compliance standard. Use the requirements and qualified reviewers appropriate to the context.

Primary sources

Written by Keith Staggers, AI trainer, workflow builder, nurse leader, and author. Last reviewed August 20, 2026.

What to do next

Related resources and services.