CRM lead sync
Send the leads your assistant captures to your CRM, Zapier, Make, n8n or your own backend, with field mapping, optional approval and automatic retries.
When your assistant captures a lead (a customer's name, phone, what they want and so on), BotBaseX keeps it under Leads & support. A CRM connection can also send each lead to the system your sales team already uses.
Each assistant can have one CRM connection, separate from its business platform connection. Creating one never creates or activates the other. Find it in the workspace Integrations tab, or in the assistant under More tools, Connected systems.
#Available providers
| Provider | Status | Use it for |
|---|---|---|
| Webhook | Available | Send each lead as JSON to a URL you control: a CRM's inbound webhook, Zapier, Make, n8n or your own backend. |
| REST API CRM | Available | Any CRM with a REST API. Creates leads, can detect duplicates with a search endpoint, and can update existing records. |
| Purselo | Not available yet | A dedicated connector is planned. Until it is ready, connect Purselo through the Webhook or REST API CRM option if your Purselo account offers one. |
There are no other built-in CRM connectors. Most CRMs and automation tools can receive leads through one of the two generic options.
#Webhook
Enter the webhook URL (must be https:// and publicly reachable). Optionally add headers and a signing secret.
Each lead is sent as a POST with a JSON body. Without a field mapping, the body looks like this:
{
"event": "lead.qualified",
"source": "botbasex",
"lead_id": "8c1d...",
"conversation_id": "f3a2...",
"agent": "Msaidizi wa Mauzo",
"created_at": "2026-11-30T09:12:44+00:00",
"lead": {
"full_name": "Amina Mussa",
"phone": "+255712345678",
"interest": "Wholesale price for 50 bags of cement"
}
}Only lead fields you allow under permissions are included. Every request carries these headers:
| Header | Value |
|---|---|
X-BotbaseX-Event | lead.qualified, lead.updated, or botbasex.test for a connection test |
X-BotbaseX-Delivery | A unique ID for this delivery |
X-BotbaseX-Timestamp | Unix time in seconds |
X-BotbaseX-Signature | Only if you set a signing secret: sha256= followed by the hex HMAC-SHA256 of TIMESTAMP.BODY using your secret |
To verify a signed delivery, compute the HMAC-SHA256 of the timestamp header, a dot, and the exact raw request body, with your signing secret as the key, and compare it with the signature. Because a retry can deliver the same lead again, use lead_id to ignore duplicates on your side.
#REST API CRM
Set the base URL and authentication (none, API key, bearer token, username and password, or OAuth2 client credentials), just like a business platform connection. Then configure:
- Create lead endpoint (POST, PUT or PATCH), and where the new record's ID is in the response.
- Duplicate search endpoint (optional, GET), its results path and ID path. Used to find an existing contact before creating a new one.
- Update lead endpoint (optional, PUT or PATCH), used when a duplicate is found and updating is allowed.
- Connection test endpoint (optional, GET only, so a test never changes CRM data).
Paths can use placeholders such as {{email}}, {{phone}}, {{full_name}}, {{lead_id}} and {{external_id}}.
#Field mapping
Match lead details to your CRM fields. Each row maps a BotBaseX lead field to a field in your CRM, using a dotted path such as contact.email. You can also Add fixed value (for example source = website).
Lead fields you can map: Full name, First name, Last name, Email, Phone, Company, What they want, Budget, Notes, All qualification answers, Conversation summary, individual qualification answers (custom. plus the field key, for example custom.timeline), and details such as BotBaseX lead ID, Conversation ID, Agent name, Source and Captured at.
A new REST API CRM connection starts with a sensible default mapping (name, email, phone, company, interest, budget, notes, qualification, source and lead ID). A webhook needs no mapping; if you add one, it replaces the default body.
Use Save & preview what's sent to check the payload, then Send a test lead.
#Permissions
| Setting | Default | Meaning |
|---|---|---|
| Send qualified leads to the CRM | On | Master switch. |
| Also send incomplete leads | Off | By default only complete leads are sent. |
| Let me approve each lead before it's sent | Off | Leads wait for you to click send. |
| Update the contact if it already exists | On | When a duplicate is found, update it instead of leaving it unchanged. |
| Lead details the CRM may receive | All main fields except conversation summary | Only these fields ever leave BotBaseX. |
#Test mode, approval and going live
Like business platform connections, a CRM connection starts in test mode. While in test mode, leads are recorded as simulated: nothing is sent to your CRM. When every checklist step is done (connection details, credentials if needed, field mapping, connection test, allowed fields), click Go live. You can Pause, Resume or Disconnect at any time.
When live, each new lead gets a sync status:
| Status | Meaning |
|---|---|
| Awaiting approval | You turned on approval. Open Leads sent to your CRM and send it. |
| Pending | Queued or waiting for an automatic retry. |
| Synced | Delivered. If a duplicate was found, the record was updated or left unchanged, depending on your setting. |
| Failed | Gave up after retries, or could not be retried safely. You can retry it manually. |
| Simulated | Recorded in test mode; nothing was sent. |
| Skipped | Not sent, for example because the lead no longer exists. |
If a lead's details have not changed since it was last sent, it is not sent again.
#Retries
Temporary problems (timeouts, network errors, 5xx server errors and rate limiting) are retried automatically after about 1 minute, 5 minutes, 15 minutes, 1 hour and 6 hours. After that the lead is marked failed. "Failed sends retry automatically and are listed on this page."
If BotBaseX cannot tell whether a lead was created (for example the CRM timed out after receiving it), it only retries when duplicates can be detected: a webhook (your receiver can deduplicate on lead_id) or a REST API CRM with a duplicate search endpoint. Otherwise the lead fails with a note to check the CRM before retrying, so you never get the same customer twice.
CRM problems never block lead capture: the lead is always saved in BotBaseX first.
#Logs and disconnecting
Every sync attempt appears in Activity & errors, without request bodies or credentials. Disconnecting deletes the connection, its credentials and its sync records.