A chatbot webhook integration sends each new lead to Zapier, Make, n8n or Slack as a JSON POST. Create an event connector, choose the Lead captured event, paste the webhook URL from Zapier, Make or n8n, and send a sample lead to map the fields. For Slack, add a Slack step in one of those tools.
Key takeaways
- A chatbot webhook is an HTTP POST your bot sends when something happens. For most businesses, the event that matters is Lead captured.
- Rylvo sends three events today: Lead captured, Reply sent and Tool called. Build only on those.
- Every lead arrives as the same JSON shape, with a stable
event_idto deduplicate on and a Standard Webhooks signature when the connector has a signing secret. - Route leads to Slack through Zapier, Make or n8n; Slack's own webhooks do not accept the lead event.
- The reverse direction works too: a tool connector lets the bot call your API to look up an order or book a slot while it answers.
What is a chatbot webhook integration?
A webhook is a JSON POST the chatbot sends to a URL when something happens. The URL belongs to an automation tool (a Zapier Catch Hook, a Make custom webhook, an n8n Webhook node) or to your own server. The tool then creates the CRM contact, posts in Slack or adds a spreadsheet row.
In Rylvo, all outside systems connect through Connectors. There are three types, and they move data in different directions:
| Type | Direction | When it runs | Typical use |
|---|---|---|---|
| Event | Rylvo → your system | After something happens | New lead to Zapier, Make, n8n or a CRM |
| Tool | Bot → your API → bot | While the bot writes a reply, when the model decides to call it | Look up an order, check a booking slot, create a ticket |
| State sync | Both ways | Read before each reply, write after it | Know the customer's plan before answering; save what they said to your CRM |
Which automation tool should you use?
All three accept the same JSON POST, so the choice is about your team, not about Rylvo.
| Tool | What to know (as of November 2026) | Fits when |
|---|---|---|
| Zapier | Catch Hook needs a paid plan (Professional or above) | A non-technical team wants the quickest path to a CRM or Sheets |
| Make | A custom webhook module generates the URL and reads the structure from the first sample | You want visual branching and routing |
| n8n | Separate Test and Production URLs; self-hosted or cloud | You want the most control over the workflow |
Which events are actually sent
The event list on a connector names eleven event types. Three of them are sent today:
| Event (as shown) | Event type in the payload | When it is sent |
|---|---|---|
| Lead captured | lead.captured | When a bot saves a new lead's details |
| Reply sent | workflow.decision.completed | After every reply a bot sends |
| Tool called | tool.execution.completed | After each tool call in a reply |
The rest, including escalation, conversation start and end, and state changes, are marked "Not sent by Rylvo yet" in the dashboard. Don't build on them. If you pick no event, the connector gets Reply sent.
For lead routing, subscribe to Lead captured only: Reply sent fires on every message.
Step by step: send each new lead to a webhook
You need an assistant that captures leads (see the lead generation guide) and a webhook URL.
- Get the URL. Create the trigger in Zapier, Make or n8n first (steps below) and copy its URL.
- Create the connector. There are two ways in. On the Leads page, Send leads to your CRM asks only for the URL. Under Connectors, New connector → Event lets you name it, pick the events (Lead captured is preselected) and paste the URL as the Delivery URL.
- Choose who uses it. In the Leads page path, the connector receives leads from every assistant. Under Connectors, you can pick which bots use it.
- Send a sample event. On the connector's Test page, Send it posts a Lead captured event with a realistic sample lead, marked
"test": true. The Leads page path sends one by itself. The result says "Delivered" when your endpoint answers with a 2xx status. If it fails, the exact error is on the connector's Activity page. - Map the fields in your automation tool from that sample, then switch the Zap, scenario or workflow on.
A connector created from New connector starts switched off, so nothing reaches your endpoint until you have tested it and turned it on.
What your endpoint receives
This is the sample lead a test sends. A real lead has the same keys, except that test and source are only added to samples:
{
"event_id": "evt_…",
"event_type": "lead.captured",
"company_id": "…",
"connector_id": "…",
"timestamp": "2026-11-17T08:00:00.123456",
"session_id": "test_session",
"workflow_id": "",
"trace_id": "",
"bot_id": "",
"data": {
"lead_id": "lead_sample_0001",
"email": "jane.sample@example.com",
"phone": "+1 555 010 0199",
"name": "Jane Sample",
"contact_hidden": false,
"fields": {
"email": "jane.sample@example.com",
"name": "Jane Sample",
"phone": "+1 555 010 0199",
"need": "A quote for a new-patient check-up"
},
"first_message": "Hi, do you take new patients? I'd like a quote for a check-up.",
"bot_id": "bot_sample",
"bot_name": "Sample Assistant",
"channel": "widget",
"channel_label": "your website",
"conversation_id": "conv_sample_0001",
"lead_url": "https://rylvo.com/dashboard/leads",
"captured_at": "2026-09-23T10:00:00.000Z",
"test": true,
"source": "rylvo_test_event"
},
"signature": ""
}
Map from data. data.email, data.phone and data.name are the contact; any of them can be null (a lead may leave only a phone number, or no name), and data.contact_hidden is true when the contact details were masked and are not included. fields holds every answer the bot collected, under the keys you chose, so a custom question such as "need" arrives as data.fields.need. Filter out data.test = true in your automation if you don't want samples in your CRM.
The headers that matter:
| Header | What it is for |
|---|---|
webhook-id and Idempotency-Key | The same value as event_id. Stable across retries, so you can deduplicate. |
webhook-timestamp and webhook-signature | The Standard Webhooks signature. Present when the connector has a signing secret. |
X-Rylvo-Connector-Id | Which connector sent it, if one endpoint receives from several. |
How do I send chatbot leads to Zapier?
- Create a Zap and choose Webhooks by Zapier as the trigger, with the Catch Hook event.
- Copy the webhook URL from the trigger's Test tab and paste it into the Rylvo connector.
- Send the sample event from Rylvo, then click Test trigger in Zapier. The lead's fields appear for mapping.
- Add your action, such as a CRM contact, a Google Sheets row or a Slack message.
As of November 2026, Zapier's Catch Hook help article lists the trigger on its Professional, Team and Enterprise plans, not on Free. Check your own Zapier plan before you build.
How do I send chatbot leads to Make?
- In a new scenario, add Webhooks → Custom webhook, click Add, name it and save. Make generates a URL.
- Copy the URL into the Rylvo connector, then run the scenario once so the module waits for a call.
- Send the sample event from Rylvo. Make reads the structure from it, as Make's webhook documentation describes, and the fields become mappable.
- If you add a lead question later, use Detect new values in the module and send another sample.
How do I send chatbot leads to n8n?
- Add a Webhook node with the method set to POST.
- n8n gives each Webhook node two URLs. Use the Test URL while you build: click Listen for Test Event, then send the sample from Rylvo, and the data appears in the editor.
- When the workflow works, put the Production URL in the connector. It is a different URL, and it only answers once the workflow is published. n8n's Webhook node documentation explains the difference. Forget the swap and leads stop arriving after testing.
If you are choosing between n8n and a chatbot platform for the whole job, the n8n comparison covers where each one fits.
Can I send chatbot leads to Slack?
Slack's own incoming webhooks expect a message, and Slack's documentation is clear that a body without a text field fails with no_text. A lead event is structured data, not a message, so pasting a hooks.slack.com URL into an event connector will fail. A Slack Workflow Builder webhook trigger does not help either: Slack says its variables must be flat, top-level JSON keys, and a Rylvo event nests the lead under data.
Put one of the three tools above in between and add a Slack "send channel message" step with a template like this:
New lead from {{data.bot_name}} on {{data.channel_label}}
{{data.name}} · {{data.email}} · {{data.phone}}
"{{data.first_message}}"
Open: {{data.lead_url}}
Verify the signature on your own endpoint
If the webhook goes to your own server rather than an automation tool, check that it came from Rylvo. A connector created under New connector gets a signing secret, and you can rotate it from the connector's page. During a rotation, events are signed with both the old and the new secret until you switch over. The signature follows the Standard Webhooks specification: the signed content is webhook-id.webhook-timestamp.body, the secret is base64 with a whsec_ prefix, and the signature header holds v1,<base64> values separated by spaces.
import { createHmac, timingSafeEqual } from "node:crypto";
function verify(secret, headers, rawBody) {
const id = headers["webhook-id"];
const ts = headers["webhook-timestamp"];
// Reject anything older than 5 minutes (replay protection).
if (Math.abs(Date.now() / 1000 - Number(ts)) > 300) return false;
const key = Buffer.from(secret.replace(/^whsec_/, ""), "base64");
const signed = id + "." + ts + "." + rawBody;
const expected = "v1," + createHmac("sha256", key).update(signed).digest("base64");
return headers["webhook-signature"].split(" ").some((s) => {
const a = Buffer.from(s), b = Buffer.from(expected);
return a.length === b.length && timingSafeEqual(a, b);
});
}
Verify against the raw request body, before any JSON parsing changes it.
Test leads and real leads stay apart
Rylvo keeps a Test copy of each workspace next to Production (the test vs production guide explains why). By default, a lead captured in a Test conversation is recorded in Rylvo but never delivered, so rehearsals don't create contacts in your CRM.
A Test delivery goes out only when both of these hold:
- An owner or admin has switched on Allow verified Test deliveries under Settings → Organization.
- The connector's address has been verified as a test destination, on its Test destination card, by an owner or admin who confirms it points at a sandbox or test copy.
If the address changes after verification, Test calls are blocked until it is verified again. The sample event on the Test page is separate: a labelled test you send yourself. See Environments.
Let your bot look things up: tool connectors
Events tell other systems what happened. A tool connector lets the bot ask your system a question while it answers. Here is a worked example, an order lookup:
- New connector → Tool. Name it "Order lookup".
- What the model reads. Tool name
lookup_order. When to use it: "Look up an order by its number. Use it when the customer asks where their order is." Arguments:order_number, a string. The model decides from these alone whether to call it. - Endpoint. For example
https://api.example.com/orders/{order_number}. A{placeholder}in the path is filled from the argument of the same name. With GET, the other arguments go in the query string. With POST, Rylvo sends a JSON body with the arguments underarguments, plus the tool name and a call id. - Authentication. Pick one of the methods below. Credentials are stored encrypted and never shown again.
- Test. The Test page sends sample arguments and shows exactly what your endpoint received and what it answered.
- Switch it on and choose which bots use it.
Your endpoint's answer goes into that reply's context. Return only what the bot needs, such as status, carrier and estimated date, not the whole order record. A tool connector does not sync or copy your database; only a state sync connector reads and writes the session fields you map to it. Rylvo keeps the tool's answer in that conversation's trace for your plan's retention, where you can read it in Observability.
For a call that changes something, such as a refund or a booking, turn on Wait for a person to approve each call. The reply pauses until someone approves or denies the call in Mission Control, which is included in Pro ($100 a month) and Enterprise, and in the 7-day Pro trial. Treat everything a visitor types as untrusted: the prompt injection guide covers why a tool that writes data needs that gate. A guided flow can also call a connector at a fixed step, when you'd rather not leave the decision to the model.
State sync, the third type, reads what your system knows about the conversation before each reply and writes back what the bot learned after it. Use it when the bot should always know the customer's account, not look it up on demand.
Authentication methods
All three types support the same seven methods:
| Method | Use it when |
|---|---|
| None | The endpoint is a Zapier, Make or n8n URL whose secrecy is the protection |
| API key | Your API expects a key in a header |
| Bearer token | Your API expects Authorization: Bearer … |
| HMAC-SHA256 | Your server verifies a signature of the request body |
| Basic | A username and password on the endpoint |
| OAuth 2 client credentials | Your API issues short-lived tokens. Rylvo fetches and refreshes them |
| Custom header | Your API wants a header with its own name |
When a delivery fails
- Retries. A failed request is retried 2 times by default, with backoff, on 429, 500, 502, 503 and 504 answers and on timeouts and connection errors. The timeout is 15 seconds.
- Failed events are kept. An event that still fails goes to the connector's Activity page with the exact error, and Replay now sends the failed events again once your endpoint is fixed.
- Health checks. Rylvo checks each active connector's endpoint on a schedule (every 5 minutes by default). After 2 failed checks in a row, the connector's page shows a warning. A failing check does not switch the connector off, so check the page if leads stop arriving.
- Unsafe addresses are refused. An endpoint that resolves to a private or internal network address is not called.
Connectors by plan
| Plan | Connectors | Price (monthly) |
|---|---|---|
| Free | 1 | $0 |
| Starter | 3 | $10 |
| Lite | 15 | $40 |
| Pro | 50 | $100 |
| Enterprise | No fixed cap in the plan settings | Custom |
A lead webhook counts as one connector, and so does each tool. Free has no AI replies after the trial, so a tool connector is of little use there, but leads still need somewhere to go. Starter's price is an early price, and Lite and Pro have a first-month offer for new customers. Prices checked on 2026-11-17, and the current terms are on Pricing.
When another approach fits better
If you only want each lead by email, you don't need a webhook: Rylvo already emails new leads to the workspace owners and admins, and each of them can turn those emails off in their profile. If your team lives in one CRM with its own chat widget, its native bot may be simpler. And if the automation is the product, with many branches and systems, build it in n8n or Make and let the chatbot be one trigger among many. The full setup for putting an assistant on your site is in How to add an AI chatbot to your website.
Frequently asked questions
Can I send chatbot leads to Slack directly?
Not with a raw Slack incoming webhook. Slack's incoming webhooks expect a body with a text field, and a chatbot event is a structured JSON object, so Slack rejects it. Send the event to Zapier, Make or n8n first and add a Slack step that posts a message built from the lead's fields. A Slack Workflow Builder webhook trigger does not help either: Slack says its variables must be flat, top-level JSON keys, and a Rylvo event nests the lead under data.
Which chatbot events can I send to a webhook?
Rylvo sends three events today: Lead captured, when a bot saves a new lead's details; Reply sent, after every reply; and Tool called, after each tool call in a reply. Other event names appear in the list marked as not sent yet, so do not build a workflow on them.
How do I stop duplicate leads in my CRM?
Deduplicate on the event_id field. It stays the same across retries of one delivery, and the same value is in the webhook-id and Idempotency-Key headers, so a retried request does not have to create a second contact.
Does a test conversation send leads to my CRM?
Not by default. A lead captured in the Test environment stays in Rylvo. A Test delivery goes out only when an owner or admin has switched on verified Test deliveries for the workspace and verified that connector's address as a test destination.
Does Rylvo copy my database when the bot looks things up?
No, not for tool connectors. A tool connector calls your endpoint when a reply needs it and uses the answer in that reply. Only a state sync connector reads and writes the session fields you map to it. The tool's answer is kept in that conversation's trace for your plan's retention period, like the rest of the conversation.
