How do you connect AI to a CRM?
Connect AI to your CRM through the CRM's official API or a native integration, using OAuth or a scoped key that grants only the objects and actions the AI needs. Map each piece of information the AI captures to a specific CRM field, set a rule for matching existing records so you do not create duplicates, and test in draft mode on real cases before letting it write to live records. Then monitor its changes through logs.
Key takeaways
- Use the CRM's official API or integration, with OAuth or a scoped token, never a shared staff login.
- Give the AI the narrowest permissions that do the job: often read contacts, create or update a few fields, add notes and tasks.
- Write a field map and a matching rule (for example, email first, then phone) before anything goes live.
- Start in draft or review mode, check the results, then switch on automatic writes step by step.
What does "connecting AI to a CRM" actually mean?
It means giving an AI system permission to read from and write to your CRM through an interface the CRM provides. In plain words: when the AI finishes a call or reads an email, it can look up the person, add a note, update fields such as budget or timeframe, create a follow-up task and move the deal to the right stage, without a person copying the details across.
- API
- An application programming interface: the official, documented way for software to read and change CRM data. HubSpot, Salesforce and Pipedrive all publish one.
- OAuth
- A sign-in method that issues the app a token instead of a password. The token carries specific permissions (scopes) and can be revoked.
- Webhook
- A message the CRM or another tool sends when something happens, such as "new lead created", so the AI can start work straight away.
What are the ways to connect AI to a CRM?
| Method | How it works | Good for | Watch out for |
|---|---|---|---|
| Built-in CRM AI | The CRM vendor's own AI features, inside the CRM | Summaries, drafting, scoring within the CRM | Usually limited to that CRM's data and channels |
| Native integration or marketplace app | A pre-built connector between the AI tool and the CRM | Common tasks, fast set-up | Fixed field mappings, limited control |
| Direct API with OAuth | The AI system calls the CRM's API with a scoped token | Custom workflows across phone, email and CRM | Needs careful design, testing and monitoring |
| Automation platform in between | A tool such as a workflow platform passes data between AI and CRM | Simple, linear flows | Another system that can break silently |
If you are weighing the CRM's own AI against a separate agent, read built-in CRM AI vs a connected AI agent.
What permissions should an AI have in your CRM?
As few as possible. With OAuth, the app requests scopes, and HubSpot's OAuth documentation notes that access tokens reflect the scopes requested by the app, not what the connecting user can do. So request only what the role needs. A typical lead-handling AI might need:
- read and update contacts (or persons) and deals;
- create notes and tasks;
- read the calendar or booking links;
- no permission to delete records, export lists, change users or edit pipelines.
Security guidance for AI systems warns about exactly this. The OWASP Top 10 for LLM applications lists "excessive agency" (giving an AI more functionality, permissions or autonomy than it needs) alongside prompt injection. Least-privilege access limits the damage if something goes wrong.
How do you connect AI to your CRM, step by step?
- Pick one workflow. For example: "After every inbound call, log the caller, the answers and the next step."
- Write the field map. List each piece of information the AI will capture (name, phone, email, enquiry type, budget, timeframe, source) and the exact CRM field it goes into. Create custom fields if needed, with fixed options rather than free text where possible.
- Set the matching rule. Decide how the AI finds an existing record before it creates a new one. HubSpot's contacts API guide recommends always including email because it is the primary unique identifier for avoiding duplicate contacts, and supports "upsert" (update if it exists, create if not) by email or a custom unique property.
- Create the connection. Use OAuth or a dedicated integration user with scoped permissions, not a staff member's login. Store tokens in a secrets manager.
- Decide what is automatic and what needs approval. Logging notes might be automatic; changing a deal stage or sending an email might start as a draft.
- Test on real cases in draft mode. Run a week of real enquiries where the AI proposes changes and a person checks them. Fix mapping errors and edge cases (no email given, two people with the same name, a business number instead of a mobile).
- Go live gradually and log everything. Keep a record of every change the AI makes, with the source call or email, so you can trace and undo mistakes.
- Review weekly. Check a sample of records, duplicates created and tasks missed, and adjust.
Which CRMs can AI connect to?
Most mainstream CRMs publish an API. HubSpot documents its CRM objects and OAuth flow; Pipedrive publishes a REST API reference covering persons, deals, leads, notes, tasks and webhooks, with OAuth 2.0; Salesforce, Zoho and GoHighLevel also offer APIs. Wharq connects AI employees to HubSpot, Salesforce, Pipedrive, Airtable and GoHighLevel, alongside phone, email, calendar and document tools, as listed on our services page.
How do you keep CRM data clean when AI writes to it?
- Use picklists, not free text, for fields you report on (lead source, enquiry type, stage).
- Never overwrite good data with blanks. The AI should only fill empty fields or append notes unless the caller corrects something.
- Mark AI-created records and notes so your team knows where they came from.
- Keep the transcript or summary as a note so a person can check what the AI heard.
- Check accuracy. If you are covered by the Privacy Act, the OAIC reminds organisations using AI that APP 10 requires reasonable steps to keep personal information accurate; see its AI products guidance.
What are the most common mistakes?
- Connecting with an admin login "to make it work", then forgetting to narrow it.
- Letting the AI create a new contact every time, which floods the CRM with duplicates.
- No field map, so answers land in random note fields nobody reports on.
- Switching straight to fully automatic without a test period.
- No one checking the logs after launch.
Once the connection works, the next step is usually follow-up. See automated CRM follow-up tools compared, and our security FAQ for access controls.
Connecting AI to a CRM: frequently asked questions
Do I need a developer to connect AI to my CRM?
For simple, pre-built integrations, often not. For custom workflows across phone, email and the CRM, someone needs to design the field map, permissions and tests. A managed provider does this as part of the build.
Will the AI create duplicate contacts?
It can if there is no matching rule. Set a rule such as matching on email first, then phone, and use the CRM's update-or-create features where they exist.
Can I limit what the AI is allowed to change?
Yes. Use OAuth scopes or a dedicated integration user with restricted permissions, and keep actions such as deleting records, exporting data or changing pipelines switched off.
Can the AI update my CRM in real time?
Yes, through the API. Many set-ups log notes and fields automatically straight after a call or email, while changes like moving a deal stage start as drafts for review.
What happens if the AI writes something wrong?
With logging in place, you can see which record changed, when and why, and correct it. Weekly reviews catch patterns so the mapping or instructions can be fixed.
Sources
- HubSpot Developers, "Working with OAuth" (accessed October 2026)
- HubSpot Developers, "CRM API: Contacts" (accessed October 2026)
- Pipedrive, "API Reference" (accessed October 2026)
- OWASP GenAI Security Project, "OWASP Top 10 for LLM Applications 2025" (accessed October 2026)
- OAIC, "Guidance on privacy and the use of commercially available AI products" (published 21 October 2024, updated 17 January 2025)
