Skip to content
BotBaseDocs
PricingDashboardStart free
  • Build AI assistants that know your business
  • Quick start
  • Core concepts
  • Create an account
  • Documents
  • Websites
  • Social media posts
  • How answers are grounded
  • Languages
  • Assistant types and plans
  • Create an assistant
  • Personality and instructions
  • Testing your assistant
  • Conversations
  • Leads, forms and human support
  • Booking agent
  • Email replies
  • AI models
  • Website widget
  • Widget appearance and design
  • Chat link and QR code
  • Connect your business platform
  • CRM lead sync
  • Management Agents overview
  • Integration guide
  • Roles and permissions
  • Security model
  • Server and browser API reference
  • Examples by industry
  • Audit log and troubleshooting
  • Developer API overview
  • API keys
  • Chat API reference
  • Errors and limits
  • Plans and the free trial
  • Billing and payments
  • Emails and notifications
  • Security and privacy
  • Troubleshooting
  • Frequently asked questions
Docs/Integrations/CRM lead sync

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.

Integrations·6 min read·Updated 2 Dec 2026

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.

Plan

CRM connections are part of Integrations, included in Standard and Pro and in the free 14-day trial.

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

ProviderStatusUse it for
WebhookAvailableSend each lead as JSON to a URL you control: a CRM's inbound webhook, Zapier, Make, n8n or your own backend.
REST API CRMAvailableAny CRM with a REST API. Creates leads, can detect duplicates with a search endpoint, and can update existing records.
PurseloNot available yetA 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:

JSON
{
  "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:

HeaderValue
X-BotbaseX-Eventlead.qualified, lead.updated, or botbasex.test for a connection test
X-BotbaseX-DeliveryA unique ID for this delivery
X-BotbaseX-TimestampUnix time in seconds
X-BotbaseX-SignatureOnly 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

SettingDefaultMeaning
Send qualified leads to the CRMOnMaster switch.
Also send incomplete leadsOffBy default only complete leads are sent.
Let me approve each lead before it's sentOffLeads wait for you to click send.
Update the contact if it already existsOnWhen a duplicate is found, update it instead of leaving it unchanged.
Lead details the CRM may receiveAll main fields except conversation summaryOnly 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:

StatusMeaning
Awaiting approvalYou turned on approval. Open Leads sent to your CRM and send it.
PendingQueued or waiting for an automatic retry.
SyncedDelivered. If a duplicate was found, the record was updated or left unchanged, depending on your setting.
FailedGave up after retries, or could not be retried safely. You can retry it manually.
SimulatedRecorded in test mode; nothing was sent.
SkippedNot 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.

PreviousConnect your business platformNext Management Agents overview

On this page

  • Available providers
  • Webhook
  • REST API CRM
  • Field mapping
  • Permissions
  • Test mode, approval and going live
  • Retries
  • Logs and disconnecting