Classify the failure before retrying
A temporary outage or rate limit may clear. Invalid data, a revoked credential or a missing permission usually needs a different fix. Give temporary faults a small retry limit and respect the upstream service’s delay guidance; move permanent problems to review.
Protect side effects from duplicates
Imagine the CRM successfully created a lead, but the workflow timed out before receiving confirmation. Replaying the whole workflow could create another lead. Use a stable intake identifier, an upsert or a provider-supported idempotency key. Where a provider cannot deduplicate, check for the previous result before retrying.
Send a useful error alert
Keep an error workflow with a named responder, execution identifier and link to an internal runbook. Send stage and category, not complete payloads or credentials. Route missing or malformed input to a separate review queue; a broken integration and a messy form should not page the team in the same way.
Test the retry path in staging
Simulate a recoverable error, a permanent error and a timeout following a successful write. A good test can prove that the final record exists exactly once and that an unresolved error stays visible. Ask the operator to replay the sample without help from the builder.