Integrations
Webhooks & API
Send every new lead and finished conversation from your bots to GoHighLevel, HubSpot, Pipedrive, a spreadsheet or your own system. Included in the paid plans.
Build my bot, free →Free to try, no signup. Ready in about a minute.
Two ways in
- Webhooks (no code with Zapier, Make, n8n or GoHighLevel): we POST each event to your address within seconds.
- API key (for developers): read your bots, leads and conversations whenever you like.
Set both up in your dashboard under Send leads to your CRM. Step-by-step: GoHighLevel · Zapier, Make & n8n.
Events
lead.created: a visitor left a phone number or email (website chat, Telegram or WhatsApp; on WhatsApp the sender's number is the lead). Sent once per contact per conversation.conversation.ended: a conversation had no new message for 30 minutes. Includes the whole conversation and any leads in it.
What we send (lead.created)
{
"id": "6f1c…", // delivery id (same on retries)
"event": "lead.created",
"created_at": "2026-12-02T18:20:11Z",
"test": false, // true for "Send test"
"bot": { "id": "b_AbC123xyz789", "name": "Dana's Clinic", "website": "https://danasclinic.com" },
"lead": {
"contact": "+972541234567", "phone": "+972541234567", "email": null,
"name": "Noa", // when known (WhatsApp profile name)
"channel": "web", // web | telegram | whatsapp
"page_url": "https://danasclinic.com/prices",
"message": "I'm Noa, +972541234567"
},
"conversation": {
"id": "c0a8…", "channel": "web", "started_at": "…",
"messages": [ { "role": "visitor", "text": "How much is a facial?", "at": "…" },
{ "role": "bot", "text": "A facial (60 min) is $80…", "at": "…" } ],
"dashboard": "https://botsai.app/dashboard/"
}
}conversation.ended has bot, conversation (up to the last 50 messages) and leads (the contacts left in it).
Headers and signature
Each request is a POST with Content-Type: application/json and:
BotsAI-Event: the event nameBotsAI-Delivery: the delivery id (use it to ignore repeats)BotsAI-Signature:t=<unix seconds>,v1=<hex>, an HMAC-SHA256 oft + "." + raw bodywith your webhook's signing secret (Dashboard → Secret)
// Node.js: check a BotsAI webhook
import { createHmac, timingSafeEqual } from 'node:crypto';
function fromBotsAI(rawBody, header, secret) {
const { t, v1 } = Object.fromEntries(header.split(',').map((p) => p.split('=')));
if (Math.abs(Date.now() / 1000 - Number(t)) > 300) return false; // older than 5 minutes
const mine = createHmac('sha256', secret).update(t + '.' + rawBody).digest('hex');
return mine.length === v1.length && timingSafeEqual(Buffer.from(mine), Buffer.from(v1));
}Delivery and retries
Answer with any 2xx status within 8 seconds. Otherwise we retry after 1, 5 and 15 minutes, then 1, 3, 6 and 12 hours. Webhooks must be https addresses on the public internet; redirects aren't followed. After 50 failed attempts in a row a webhook is turned off (turn it back on in the dashboard). The dashboard shows the last 20 deliveries of each webhook.
API
Create an API key in the dashboard (it's shown once) and send it as Authorization: Bearer bak_….
curl https://botsai.app/api/v1/leads?since=2026-12-01T00:00:00Z -H "Authorization: Bearer bak_…" curl https://botsai.app/api/v1/bots -H "Authorization: Bearer bak_…" curl https://botsai.app/api/v1/bots/b_AbC123xyz789/conversations -H "Authorization: Bearer bak_…"
With the key you can also use every bot route of the BotsAI API for bots in your account (update a bot, add knowledge…). Keep keys secret and revoke any you no longer use.
Questions
Which plans include integrations?
Starter, Business and Agency.
Do test deliveries count?
They are marked "test": true so your automation can ignore them.
Can I send leads to several systems?
Yes: up to 5 webhooks per account, each with its own events.