Iterable can trigger Clerk Chat AI Agents by sending HTTP requests to an Agent Webhook. When a user reaches a step in an Iterable Journey — or when a system event fires — Iterable POSTs to your agent webhook URL with user and event data. The agent then runs with that context.
This page covers inbound Agent Webhooks (Iterable → Clerk Chat agent). For outbound event webhooks where Clerk Chat notifies your app, see Webhooks.
Journey webhooks are the most flexible option. They let you send custom JSON payloads at specific steps in an Iterable Journey, which is ideal for triggering personalized agent conversations.
Use Iterable’s merge parameters (e.g. {{phoneNumber}}, {{email}}) to populate fields from the user’s profile. The exact parameter names depend on your Iterable project — check your user profile fields and journey context variables.
Always include a phone field when possible. Clerk Chat uses it to find or create a contact and route the conversation to the correct inbox. Without phone, the agent may still run but won’t be associated with a specific contact.
System webhooks fire automatically when specific project-wide events occur (e.g. email send, email open, list subscribe). Use these when you want an agent to react to Iterable events without building a Journey.
System webhooks send Iterable’s standard event payload. You cannot fully customize the body like you can with Journey webhooks. If you need a specific payload shape, use a Journey webhook instead.
Save and enable the webhook.
Iterable’s system webhook payloads include fields like email, phoneNumber, and event metadata. Map the fields your agent needs from webhookBody (see below).
Goal: When a user enters a win-back Journey in Iterable, trigger a Clerk Chat agent that sends a personalized SMS with their offer code.
Clerk Chat: Create an agent with a Webhook trigger, an AI Text node, and a Send Message node. Reference {{{1.webhookBody.firstName}}} and {{{1.webhookBody.offerCode}}} in the AI prompt or message body. Connect the agent to an SMS inbox and deploy.
Iterable: Create a Journey webhook pointing at your Agent Webhook URL with the apiKey header and a JSON body containing phone, firstName, and offerCode.
Iterable: Add a Webhook tile to your win-back Journey using that webhook.
Test: Enroll a test user in the Journey. When they reach the Webhook tile, Iterable POSTs to Clerk Chat and the agent sends the personalized message.