Why does webhook matter?
Webhooks let agents react within seconds of a real business event. Because any public URL can receive forged or retried requests, production webhook handlers must verify cryptographic signatures and deduplicate repeated deliveries.
Instead of checking for changes, a system can call a URL you provide whenever an event happens: a payment fails, a form is submitted, a ticket is created. That call is a webhook, and it’s a common way to trigger an agent.
Webhooks should be verified, since anyone can call a URL, and handled so that the same event arriving twice doesn’t cause two runs.
Key characteristics of webhook
- Push-based delivery triggers agents immediately when an external event happens.
- Cryptographic signatures (such as HMAC headers) prove the request genuinely came from the sender.
- Idempotent handling ignores retried deliveries of the same event ID so actions never double-fire.
- Acknowledges receipt quickly (HTTP 2xx) and hands work to a durable background job.
Webhooks vs. scheduled polling
| Dimension | Webhook (push) | Scheduled polling (pull) |
|---|---|---|
| Latency | Starts within seconds of the event | Delayed until the next cron interval |
| Idle cost | Zero work when no events occur | Runs checks even when nothing changed |
| Security check | Must verify cryptographic request signature | Uses outbound API credentials |
| Duplicate risk | Upstream retries require event deduplication | Must track cursor or processed IDs |
Example in practice
How Norilu handles webhook
Frequently asked questions
- Why must agent webhooks verify signatures?
- Without signature verification, anyone who discovers your webhook URL could forge fake events and trick your agent into running unauthorized workflows.
- What happens if an agent takes 30 seconds to run after receiving a webhook?
- Most webhook senders time out after a few seconds and retry the request. Acknowledge the webhook immediately and run the agent asynchronously in a durable background job.