Independent publication · Everyday AIEN | PT
The future is nowInteligência Útil

Artificial intelligence at the service of your life.

Write. Learn. Organise. Create.

Abstract composition in lavender, violet and amber

Productivity · In-depth article

How to audit an automated workflow

Published on 1 December 2026

In this guide

  1. Identify the process you are auditing
  2. Establish observable acceptance criteria
  3. Create a representative set of test cases
  4. Measure quality, critical failures and review effort
  5. Test repeatability and error recovery
  6. Look for unexpected instructions within data
  7. Use AI to support the audit itself
  8. Define when to correct, restrict or suspend
  9. Maintain a review schedule proportionate to risk

An automated workflow can operate for weeks without revealing an error that compromises its results. A classification rule may direct requests to the wrong category, a summary may omit an exception, or an integration may stop working after a format change. When artificial intelligence is part of the process, there is an additional difficulty: apparently similar responses may differ in important ways across runs. A quality audit makes it possible to discover weaknesses before expanding use of the workflow.

This guide presents a method for defining the scope of an audit, creating test cases, measuring outcomes and establishing stopping conditions. You do not need to develop code to apply these principles. The goal is to explain what the workflow does, under which conditions it operates and when it should cease to be used until a fault has been corrected.

Identify the process you are auditing

Begin by describing the complete journey of the information. Identify the event that starts the workflow, required data, transformations performed, output produced and person or system receiving that output. If an AI assistant is involved, specify the stage at which it intervenes and whether it merely prepares text or can trigger an external action. A workflow suggesting labels for messages presents a different risk from one that sends responses to customers without approval.

Create a configuration record containing the date, tool used, model or version where available, instructions, filters and authorised destinations. Also record who is able to alter these settings. You do not need to store passwords or copy personal information into the document. Use references to existing systems and permissions. This record matters because a failure may result from a change introduced at a single stage rather than a general limitation of artificial intelligence. Without knowledge of the previous configuration, reproducing the problem will be harder. Include any limits on supported input types and document what happens when those limits are exceeded.

Establish observable acceptance criteria

A 'good' response is too vague an assessment for an audit. Define the outcome that should be obtained and the conditions preventing its use. Imagine a workflow that reads fictional support requests and prepares an internal classification. Criteria could require that the category correspond to the content, that requests displaying signs of risk be routed for human review, and that no request be marked as resolved merely because it has been classified.

Distinguish mandatory criteria from improvement indicators. Absence of a required approval constitutes a mandatory failure; time required to prepare a draft can be an efficiency indicator. Also define how ambiguous situations should be assessed. If the supplied information does not permit identification of the correct category, the expected behaviour may be to flag uncertainty rather than choose a random category. This distinction avoids penalising an assistant for recognising that it lacks sufficient information. In a well-prepared audit, 'requires review' is sometimes precisely the correct result. Where criteria involve different consequences, identify which ones must never be violated rather than treating every discrepancy as equivalent.

Create a representative set of test cases

Collect examples of ordinary use, exceptions and situations that should not be processed. Use fictional or appropriately authorised information. Normal examples should represent the variety of real inputs: short requests, lengthy requests, different writing styles and formats the workflow claims to support. Also select cases containing incomplete information, contradictory instructions or unexpected elements.

For support message classification, you might create twenty cases: twelve ordinary requests, four with missing data, two requiring priority intervention and two outside the workflow's scope. Before running the test, write down the expected outcome for each case. If possible, obtain an assessment from another competent person for ambiguous examples. Where there is disagreement, clarify the criteria rather than retroactively adjusting the expected response to match what the tool produced. Retain a small additional set that is not used while making adjustments, to assess whether improvements extend to new cases rather than only familiar examples. When the workflow has distinct user groups or different document formats, make sure the sample contains examples from each relevant group.

Measure quality, critical failures and review effort

Suppose the workflow correctly classifies seventeen of twenty cases, produces two incorrect classifications and fails to flag one priority request. The overall accuracy rate is 85%, since seventeen divided by twenty equals 0.85. However, the failure to route the priority request may matter more than the other two errors. An acceptable overall percentage does not demonstrate that the procedure is suitable for every request.

Present results by case type. If both priority requests should have been flagged and only one was identified, the detection rate in that group is 50%. With only two examples, no robust statistical conclusion about future behaviour is possible, but sufficient evidence already exists to investigate that failure. Also record how many outputs need editing, how many are rejected and how long review takes. A workflow may correctly identify the category and still require almost complete reconstruction of the text it produces. Keep accuracy indicators and human effort indicators separate. If an incorrect outcome is later corrected, retain the original result in the audit rather than counting only the corrected output as a success.

Test repeatability and error recovery

If the AI stage can produce different outputs from the same input, run some relevant cases more than once. Compare the category, extracted data and suggested decisions, not merely similarity of wording. Different wording may be acceptable if it preserves facts and respects the required format. A changed deadline, recipient or approval status should be investigated even when the text seems equally professional.

Also test circumstances in which a connection fails, a document is inaccessible, a mandatory field arrives empty or a request is received twice. For workflows that trigger actions, perform these tests in a trial environment without real effects on customers or documents. Expected behaviour may be to stop execution, record the failure and route the case to a person. Avoid a rule that repeats an action indefinitely without confirming whether a previous attempt was completed. Poorly designed recovery can create duplicates, and a success notification may conceal incomplete execution. Verify that failure notifications contain enough information to identify the affected step without exposing confidential contents to unauthorised recipients.

Look for unexpected instructions within data

Incoming documents, emails and messages should be treated as input data rather than new authorised instructions for the assistant. An external message might contain phrases attempting to change the task, request confidential information or induce an action beyond the intended scope. Include a fictional test example in which the content asks the system to disregard its usual procedure. The expected outcome is to preserve the original purpose and route the case for review where necessary.

Do not rely solely on a warning in the prompt to protect a workflow with excessive permissions. Restrict access to what is needed, separate draft preparation from action execution and require approval when the consequences justify it. Check whether the workflow can produce a useful result without accessing information it does not need. Quality auditing includes data protection and control over possible actions; it is not restricted to grammatical accuracy. A test demonstrating that an assistant refuses one suspicious instruction is not proof of comprehensive security, so maintain safeguards outside the model itself.

Use AI to support the audit itself

You can ask another assistant to organise test outcomes and identify patterns. A possible instruction is: 'Compare observed results with the defined acceptance criteria. For each case, identify expected outcome, observed outcome, discrepancy and severity classification. Do not modify criteria or invent details about execution. Separate critical failures, correctable errors and acceptable stylistic differences. Calculate indicators and identify denominators. Suggest further tests only for identified gaps.'

Supply test results without unnecessary sensitive information. Independently check calculations and confirm examples classified as critical. An assistant evaluating another assistant's response may make similar errors or fail to recognise a condition specific to your business. Automated evaluation should therefore support human judgement rather than serve as the only evidence of quality. Where a deterministic rule can be checked directly, such as the presence of a mandatory field, use that check instead of relying on a linguistic assessment. A consistent rule can be particularly useful when the workflow outputs structured records, although passing that rule does not establish that the recorded values themselves are correct.

Define when to correct, restrict or suspend

Before a workflow goes live, establish acceptance and suspension conditions. For example, a privacy failure, unauthorised action or omission of mandatory escalation may justify immediate suspension of the affected stage. A formatting discrepancy that does not alter content may be corrected without stopping the entire workflow. These examples do not represent universal thresholds: required standards depend on the consequences of the process and applicable procedures.

When a failure is identified, describe the case, reproduce the behaviour where safe, record the configuration and formulate a hypothesis about the cause. It may involve an ambiguous prompt, misconfigured integration, inappropriate data or an unforeseen condition. Change one variable at a time wherever possible and repeat the failed case, critical cases and a representative selection of the remainder. Do not consider an error resolved merely because it disappears on a single run. Document the result and retain a manual procedure for circumstances in which the workflow is no longer reliable. If a fix changes the expected behaviour for some cases, revise and approve the acceptance criteria explicitly before repeating the assessment.

Maintain a review schedule proportionate to risk

The first audit does not conclude the evaluation. Define reviews following changes to the model, instructions, permissions or input format. The frequency of regular checks should reflect workload, stability of conditions and severity of potential failures. A personal workflow that organises notes without external consequences may require less oversight than a process used daily to handle customer requests.

Maintain a short history with review date, number and type of cases evaluated, outcomes, outstanding failures and the decision to continue, restrict or suspend. Compare indicators only when criteria and denominators remain comparable. If the process begins to receive a new kind of message, create specific tests for that type. Do not turn the audit into a report that nobody uses: assign responsibility for corrections and establish a verifiable condition for closure. A useful automation is one that continues producing appropriate results, whose limitations are understood and which can be interrupted or replaced without losing control of the work. The ability to explain why an output was accepted is as important as the ability to produce it quickly.

Related resources