Why does agent trigger matter?
Choosing the right trigger shapes latency expectations, error handling, and safety rules. Request-driven agents need fast streaming responses, event-driven agents must handle duplicate deliveries and spikes, and scheduled agents must exit cleanly when there is nothing to do.
Agents rarely wait in a chat box. Most are started by something happening: a user asks, a new ticket arrives, an invoice becomes overdue, or a time comes round. The trigger decides what the agent receives as input and how often it runs.
Each kind of trigger needs its own tests. An agent started by an event must cope with duplicates and bursts; one started on a schedule must cope with finding nothing to do.
Key characteristics of agent trigger
- Request triggers start immediately from a user message or backend API call.
- Event triggers fire automatically when an external system emits a webhook or message.
- Schedule triggers run on a recurring timetable such as every weekday morning.
- Idempotency keys and deduplication protect event and scheduled triggers from duplicate actions.
How agent trigger works step by step
- 1. SignalAPI call, signed webhook, or cron tick
- 2. Verify & dedupeCheck auth and idempotency key
- 3. Load payloadPass structured input to agent version
- 4. Execute runRun durably or pause for approval
Request vs. event vs. schedule triggers
| Trigger type | What starts the run | Key engineering requirement |
|---|---|---|
| Request | User message or backend API call | Low latency and streaming replies |
| Event / webhook | New ticket, failed payment, or form submit | Signature verification and deduplication |
| Schedule | Fixed cron timetable (e.g., 7am weekdays) | Quiet no-op when there is nothing to process |
Example in practice
How Norilu handles agent trigger
Frequently asked questions
- Can one agent support more than one trigger type?
- Yes. For example, an invoice agent might run automatically on a weekday schedule and also accept on-demand requests from a finance manager inside your app.
- How should an event-triggered agent handle duplicate webhooks?
- Verify the webhook signature, key each run by the upstream event ID, and skip or return the existing run when the same event arrives more than once.