Skip to main content
Turn an inbound webhook into an agent action. The agent subscribes to an endpoint over MCP, polls triggers.wait, and wakes with the event body the instant one is captured — acting only on events whose signature you verified.
1

Create an endpoint and verify its source

Register the provider secret so the agent can trust what it acts on. An event that fails verification should never drive a tool call.
wbhk endpoints create github-agent
wbhk endpoints add-provider-secret <endpoint-id> --provider github
2

Create a trigger over MCP

From your agent’s MCP client, call triggers.create with the endpoint id. It returns a triggerId and creates no outbound egress — it only consumes events you can already read.
// tool: triggers.create
{ "endpointId": "<endpoint-id>", "name": "issue-triage" }
3

Loop on triggers.wait

triggers.wait is a short-poll: it returns events past your cursor (with an inline body), then you pass the returned nextCursor back to continue. Delivery is at least once, acked by cursor — so make the agent’s action idempotent.
// tool: triggers.wait  (repeat, threading nextCursor)
{ "triggerId": "<trigger-id>", "cursor": "<nextCursor>" }
Gate the action on verificationState: act on verified / authenticated, skip unattempted, never on failed.
For the full agent loop, ack semantics, and inline-body caps, see wake an agent.