Developer
Webhooks And Events
Use events for durable asynchronous work.
LeenOps uses events for work that should not block a browser request.
Common event-driven flows
- Chatbot message accepted, processed asynchronously, then history updates.
- Agent run submitted, Python worker executes, report is written.
- Voice session ended, transcript and debrief are generated.
- Hermes telemetry arrives and alerts are derived.
- Developer task submitted, worker runs an AI coding agent and updates task status.
Developer guidance
Return quickly from public endpoints. Store a task or run id. Let the worker update status and logs. Design clients to poll, subscribe, or refresh based on that id.