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 and delivery to route output to a user or channel. You can also set model to override the default and timeout for maximum processing time.
For example, you might configure a GitHub webhook to send push events to /hooks/agent. Set sessionKey to "github-ci" and delivery to "#dev-ops". Every push event then lands in the same session. The agent posts its analysis to the dev-ops channel. The timeout field prevents runaway tasks from consuming resources indefinitely.