The failure mode is silent
In demos, people answer instantly. In production they’re in meetings, in other time zones, or asleep. If your agent waits forever, nothing fails and nothing alerts. If it assumes yes, it takes a step nobody signed off on. Both are bugs.
Keep three things apart
A design that holds up keeps three ideas separate:
- The request: what the agent needs and why. One question, enough context to answer it, and a short list of options.
- The decision: one answer, recorded once. If two people answer, the first one counts and the other sees who handled it.
- The delivery: how the answer gets back to the code that asked, and what happens when it doesn’t.
Every request needs an expiry
A request without a timeout is a promise to wait forever. Give each one a deadline, and decide in advance what the agent should do when it passes: stop, or follow a fallback instruction like “Hold the payout and notify the finance channel.” FinalSay requires a timeout between 30 seconds and 24 hours, and sends the expired result back like any other answer.
Callbacks and polling
Callbacks are fast, but they fail: your endpoint is down, a proxy times out, a deploy is mid-flight. Retry them with
backoff, and make failures visible somewhere a person will look. Polling is slower, but it always works, so keep it as
the fallback. FinalSay does both: callbacks with a secret header and exponential backoff, a
GET /v1/approvals/{request_id}/result endpoint, and a Delivery health page for anything that didn’t arrive.
Make retries safe
Agents retry. Give each request your own ID, so a retry returns the same approval instead of paging someone twice.
The How it works page walks through the whole lifecycle, and the API guide has the details.
Veljko
Related integrationREST APIAsk from any language, over HTTP