Overview
Agent Webhooks are inbound HTTP endpoints that trigger a specific AI Agent when called. This guide walks through setting up a webhook trigger in the agent builder, authenticating requests, sending payloads, and using webhook data inside your agent.This page covers inbound Agent Webhooks (external platform → Clerk Chat agent). For outbound event webhooks where Clerk Chat notifies your app, see Webhooks.
1. Add a Webhook trigger to your agent
- Sign in at clerk.ai and open your agent in the Agents builder.
- Click the Trigger node to open the trigger settings.
- Under Trigger option, open Other and select Webhook.
- Select an existing webhook from the dropdown, or click Add new to create one with a name.
- Copy the auto-generated URL shown below the dropdown.
webhookId). The same webhook can be reused across agents, but each agent must have its trigger node configured to use that webhook.
- Save and deploy your agent. Make sure the agent is connected to an inbox so it can send messages.
2. Generate an API key
Every request to an Agent Webhook must include your team’s API key.- Go to Settings → API.
- Click Generate (or Generate New Key).
- Copy the key immediately — it is only shown once.
apiKey HTTP header.
3. Send a webhook request
Make aPOST request to your webhook URL with Content-Type: application/json.
Headers
Request body
Example
Response
A successful request returns202 Accepted with an empty body. Processing is asynchronous — the agent runs after the response is sent.
4. Use webhook data in your agent
The full JSON body of the request is exposed on the trigger node aswebhookBody. Reference fields in downstream nodes using the trigger node’s static ID:
1 and you sent offerCode in the payload:
Example payload → variable mapping
Request body:1):
See Referencing Variables for more on variable syntax.
Rate limits
Agent Webhook endpoints are rate-limited to 1,000 requests per 60 seconds per team. If you exceed this limit, requests return429 Too Many Requests.
Troubleshooting
Platform-specific guides
Connect Iterable
Trigger agents from Iterable Journey or System webhooks.