Build a reliable workflow
Turn an incoming event into a safe, retryable integration with a visible human fallback.
Form event
Validate
Transform
API call
Result
Human fallback
Scenario
A new form submission must be validated, transformed, sent to another system, and recovered safely when delivery fails.
Concepts used
- webhook
- JSON
- validation
- API
- idempotency
- retries
- exceptions
Step-by-step build
- Define a form payload and unique event ID.
- Reject missing or malformed required fields.
- Transform accepted data into the target schema.
- Call a simulated target API with the event ID as an idempotency key.
- Retry temporary failures with a limit and delay.
- Create a human notification with evidence after the final failure.
- Record the final status without duplicating successful submissions.
Expected result
Every valid event is delivered once or ends in a clear, actionable exception state.
Failure cases
- Duplicate webhook delivery
- Invalid JSON
- Timeout after the target accepted the request
- Permanent permission error
Improvements
- Add a dead-letter queue
- Measure retry rate and age
- Separate transient and permanent errors
Platform variants
- n8n
- Power Automate
- UiPath