AI & Business Growth, AI developement, Artificial intelligence (AI), General
How to Connect an AI Chatbot to Your CRM and Capture Leads Automatically
By Manahil Umer · · Updated
A visitor asks your website chatbot for a quote, leaves an email and goes. If that lead stays inside the chatbot’s dashboard, nobody calls them back. Connecting the chatbot to your CRM fixes that: every lead lands where your team already works, with the conversation attached.
This guide covers the three ways to make that connection, what data to send, and the mistakes that cause duplicate or lost leads.
What a chatbot–CRM integration does
It works in two directions:
- Chatbot to CRM (write). Each new lead creates or updates a contact, with a note of what they asked. This is what most businesses need, and it is the easy part.
- CRM to chatbot (read). During the chat, the bot looks up the visitor in the CRM, for example to recognise an existing customer or check an order. This is harder and needs a custom integration.
Start with writing. It brings in the leads; reading only improves answers for people already in your CRM.

Three ways to connect a chatbot to a CRM
| Built-in connector | Zapier, Make or n8n | Custom API integration | |
|---|---|---|---|
| Setup | Minutes | An hour or two | Days to weeks |
| Needs a developer | No | No | Yes |
| Writes leads to the CRM | Yes | Yes | Yes |
| Reads CRM data during the chat | Sometimes | No | Yes |
| Running cost | Usually included | Automation tool plan | Hosting and maintenance |
1. Use a built-in connector
Many chatbots come from the CRM vendor or have a connector for it: HubSpot’s chatflows write straight into HubSpot contacts, Zoho SalesIQ feeds Zoho CRM, and tools such as Intercom have marketplace apps for Salesforce and HubSpot. If yours does, switch it on, map the fields and test. This is the most reliable route because the vendor maintains it.
2. Use an automation tool: Zapier, Make or n8n
If there is no connector, use an automation tool as the bridge:
- In the automation tool, create a workflow that starts with a webhook (Zapier calls it “Catch Hook”; Make and n8n call it “Webhook”). It gives you a URL.
- Paste that URL into your chatbot’s lead or webhook settings, so every new lead is sent there.
- Add a find or create contact step for your CRM, matched by email.
- Map the fields: name, email, phone, what they asked for, source page and chat summary.
- Add a second step that alerts the person who follows up, by email or in Slack.
- Run a few test chats and check that each one appears once in the CRM.
Make and n8n have free tiers, and n8n can be self-hosted. Zapier’s webhook trigger needs a paid plan.
3. Build a custom API integration
Build one when the chatbot must read CRM data during the chat, or your CRM has no automation-tool support. The chatbot’s backend calls the CRM’s API directly. Here is the write side for HubSpot, which authenticates with a private app access token (HubSpot’s old API keys no longer work):
import os
import requests
HUBSPOT = "https://api.hubapi.com/crm/v3/objects/contacts"
HEADERS = {"Authorization": f"Bearer {os.environ['HUBSPOT_TOKEN']}"}
def save_lead(email, first_name, phone, summary):
properties = {
"email": email,
"firstname": first_name,
"phone": phone,
"message": summary, # map to whichever property your team reads
}
# Look the contact up by email first, so returning visitors are updated, not duplicated.
found = requests.post(
f"{HUBSPOT}/search",
headers=HEADERS,
json={"filterGroups": [{"filters": [{"propertyName": "email", "operator": "EQ", "value": email}]}]},
timeout=10,
).json()
if found.get("total", 0) > 0:
contact_id = found["results"][0]["id"]
r = requests.patch(f"{HUBSPOT}/{contact_id}", headers=HEADERS, json={"properties": properties}, timeout=10)
else:
r = requests.post(HUBSPOT, headers=HEADERS, json={"properties": properties}, timeout=10)
r.raise_for_status()
return r.json()["id"]
Salesforce, Zoho and Pipedrive follow the same pattern: authenticate, search by email, then create or update. Plan for upkeep: CRM APIs change, tokens expire, and someone has to notice when leads stop arriving.
What to send with each lead
The CRM record should let someone call the lead back without opening the chat:
| Field | Why |
|---|---|
| Name, email, phone | To reach them. Email doubles as the key that prevents duplicates. |
| What they asked for | A one-line reason, such as “quote for kitchen refit, budget around $15k”. |
| Chat summary | Two or three sentences, so the person calling back knows the story. |
| Source page | Which page they chatted from shows what they were looking at. |
| Lead source | Set to “Website chat” so you can count which channel brings customers. |
| Link to the full chat | For when the summary isn’t enough. |
Mistakes that lose leads
- No email match, so duplicates. A visitor who chats twice becomes two leads, and two people call them. Always find or create by email.
- The lead lands in the CRM and nobody is told. A CRM record is not an alert. Send the team an email or Slack message as well.
- Waiting a day to follow up. Website leads cool quickly. Send an automatic follow-up email within minutes and call the same day.
- Asking for contact details last. If the visitor leaves mid-chat, you have nothing. Ask for an email once they show real interest.
- Never testing again. Connections break quietly when a token expires or someone renames a CRM field. Send a test lead every month.
- Sending more data than you need. Keep sensitive details out of the chat and the CRM, and make sure your privacy notice mentions the chatbot.
When reading from the CRM is worth it
Reading CRM data during the chat pays off when existing customers make up much of your chat traffic: order status in e-commerce, ticket status in software support, account questions in services with logged-in clients. For businesses whose chats are mostly new enquiries, it adds cost for little gain. Get the lead capture right first.
The no-build option: an AI receptionist
If you don’t want to set any of this up yourself, our AI receptionist does the chatbot side for you. It answers your website chat from your own website and documents, captures each lead with who they are, what they need and a short summary, and sends it to your team by email straight away, or to Slack, your CRM or any other app through Zapier, Make or n8n. It can book meetings into your calendar, and the AI Sales Assistant follows up each lead by email, stopping once they book.
It costs $49 a month, with no setup fee, and you can try it free on your own website.
Frequently asked questions
How do I integrate a chatbot with my CRM to capture leads automatically?
Check first whether your chatbot or CRM has a built-in connector for the other; if so, switch it on and map the fields. If not, send each new lead from the chatbot to Zapier, Make or n8n with a webhook, and add a step there that creates or updates the contact in your CRM, matched by email. Test with a few chats before you rely on it.
Do I need a developer to connect a chatbot to a CRM?
Usually not. Built-in connectors and automation tools such as Zapier, Make and n8n handle the common case, which is sending new leads into the CRM. You need a developer only if the chatbot has to read from the CRM during a conversation, or if your CRM has no connector and no automation-tool support.
Which CRMs can an AI chatbot connect to?
Any CRM with an API, which includes HubSpot, Salesforce, Zoho CRM, Pipedrive and Microsoft Dynamics 365. Zapier, Make and n8n all support these, so a chatbot that can send a webhook can reach any of them.
How do I stop a chatbot from creating duplicate contacts in my CRM?
Use the visitor's email address as the key. In Zapier or Make, use a find-or-create step for the contact; with the API, search for the email first and update the record if it exists. Ask for the email early in the chat so every lead has one.
Can a chatbot read data from my CRM, not just write to it?
Yes, but that needs a custom integration through the CRM's API, because the chatbot has to look the customer up while the chat is happening. Limit what it can read to what it needs, such as order status, and check that your privacy notice covers it.
Is there a chatbot that sends leads to my CRM without building anything?
Yes. Our AI receptionist answers your website chat from your own information, captures each lead with a short summary and sends it to your team by email straight away, or to your CRM through Zapier, Make or n8n. It is $49 a month and you can try it free on your own website.