Skip to content

Check that an accepted AI action actually finished

An HTTP 202 Accepted response means the request was accepted for processing; it does not mean processing is complete. Save the operation ID, check the status endpoint or approved callback, and verify the expected business result before the AI employee reports completion.

What you need

For a workflow owner testing an AI employee that starts a long-running task through an API or background job.

  • A redacted test action and its operation or job ID.
  • The provider’s documented status endpoint or callback.
  • The business record that proves the requested action finished.

Keep the customer-facing status tied to the provider’s final operation result.

  1. Submit a safe test request and record the initial HTTP status and operation ID.
  2. If the response is 202, label the action as accepted or pending. Do not run a dependent action that requires completion.
  3. Poll the documented status resource or wait for the approved callback until it reports a terminal result. Use the provider’s retry interval and timeout rules.
  4. Read the business record or output to confirm the requested change occurred. Tell the user it is complete only after both the operation and postcondition pass.

The request was queued, then failed

Synthetic API trace. The operation endpoint returns a state for the same job ID.

Scroll the table to see all columns.

Keep status words tied to evidence
TimeProvider responseBusiness checkSafe status
10:00202 Accepted; job J-104No change visibleAccepted, pending
10:01J-104: runningNo change visibleStill working
10:03J-104: failedNo change visibleFailed; route to review

The initial 202 is not completion. Since the job later failed and no record changed, the AI employee must not tell the user the action is done.

What to hand over

A short action trace distinguishing accepted, running, completed and failed, with the final record used as proof.

Limitation. Some APIs provide no status endpoint or callback. In that case, the workflow needs a different completion signal; HTTP acceptance alone cannot prove success.

Next step

Bring a redacted API response, operation ID and the business record that confirms the final result.

Discuss this workflow with Shadyy

Sources