Skip to content

Check whether an AI action finished before you retry it

Treat a timeout as an unknown outcome. First look up the action using its request or correlation ID; if the connected API supports idempotency, retry with the same key and unchanged parameters. Do not blindly send the action again with a new key.

What you need

For an operations or engineering owner handling AI-prepared writes that can create tasks, send messages or change records.

  • The action name, target record and request or correlation ID.
  • The API’s documented retry and idempotency behavior.
  • A read-only status check or safe test environment before any retry.

Recover an unknown action outcome without creating a duplicate side effect

  1. Record the original request, target, parameters and stable action ID.
  2. After a timeout, check the target system or event log for the original action before retrying.
  3. If the API supports idempotency, reuse the same key with the same parameters; follow that API’s specific rules.
  4. If the outcome remains unknown or the request changed, hold for a person to reconcile rather than issuing a fresh action.

One timed-out request, one safe outcome check

Synthetic API example. The Stripe documentation is linked as one implementation example; other systems may behave differently.

Scroll the table to see all columns.

Synthetic timeout retry record
AttemptKeyTarget stateDecision
1run-205-action-3No response; state unknownDo not create a new action yet
Lookuprun-205-action-3Task T-88 already existsTreat original action as complete
Alternative testsame stable key and same valuesProvider confirms prior resultOnly retry under documented provider rules

The status lookup finds task T-88, so no second create request is needed. If the target cannot be checked, keep the case open for reconciliation.

What to hand over

A timeout recovery record with original request ID, observed target state, retry decision and evidence against duplicate execution.

Limitation. Idempotency behavior is provider-specific and may expire; do not assume every connector or business system supports safe retries.

Next step

Bring a redacted example of a timed-out write and the target system’s retry rules. Agree what evidence proves whether the action completed.

Discuss an automation recovery workflow

Sources