The /hooks/agent endpoint gives you full control over how the agent processes incoming events. The payload supports sessionKey to group related events into the same session, delivery to route output to a user or channel, model to override the default model, and timeout to set a maximum processing time.
For example, you might configure a GitHub webhook to send push events to /hooks/agent with sessionKey: "github-ci" and delivery: "#dev-ops". Every push event lands in the same session context, and the agent posts its analysis to the dev-ops channel. The timeout field prevents runaway tasks from consuming resources indefinitely.