Skip to content
November 2026 · updated 2026-11-13

Build a CRM Update System with Claude Code

By Vij S., Sales Specialist

Claude Code can turn call notes and transcripts into CRM updates you approve before they're written. You need one MCP connection to your CRM, one rules file and one custom command, and an afternoon to set it up.

The short version. With Claude Code you can build a CRM update system that reads a folder of call notes, emails and transcripts, works out what changed, and proposes the CRM updates for you to approve before anything is written. It takes three things: an MCP connection to your CRM, a rules file, and one custom command. Expect an afternoon of setup and a week of tuning the rules.

The difference from a chat connector is that the rules live in files, so they're the same every day, you can improve them, and the whole thing can run on a schedule.

When is Claude Code better than a chat connector?

  • The same rules every time. Field rules sit in a file the whole team edits, not in each person's chat.
  • Batches. Process twenty sets of notes in one run instead of twenty conversations.
  • Dry runs. It writes proposals to a file; you approve in the morning.
  • A log you own. Every proposal and every write is saved as a dated file.

If one person updates a few deals a day, the chat connector is enough (see Claude CRM integration).

What do you need?

  • Claude Code on a commercial plan. Under commercial terms Anthropic doesn't train on code or prompts sent to Claude Code; on Free, Pro and Max it trains when the user's setting is on (Claude Code data usage).
  • Your CRM's own MCP server. HubSpot's remote server gives "secure read and write access" with OAuth, and "all actions respect your existing HubSpot user permissions" (HubSpot). Salesforce's hosted MCP servers are generally available for Enterprise Edition and above (Salesforce). Pipedrive has its own (Pipedrive). Avoid the old local Salesforce DX MCP server: its repository is archived and reached end of life on 2 November 2026.
  • A folder with inbox/ for new notes, done/ for processed ones and log/ for the record.

Step 1: connect the CRM

In the project folder, add the server with the URL from your CRM's developer docs, then sign in:

claude mcp add --transport http --scope project hubspot [SERVER URL FROM HUBSPOT'S DOCS]

Then start Claude Code, type /mcp, and authenticate in the browser. --scope project saves the connection in .mcp.json so the whole team uses the same server. Each person still signs in with their own CRM login, so their own permissions apply.

Ask it to list the CRM tools it can see and note which ones read, create, update and delete. You'll need those names in step 4.

Step 2: write the rules file

Claude Code reads CLAUDE.md in the project folder at the start of every session. Put your CRM rules there. This file does most of the work:

WHAT THIS PROJECT IS
A CRM update system for [TEAM]. It reads notes in inbox/ and proposes updates to [CRM]. It never writes without approval.

FIELDS YOU MAY CHANGE
Deal stage, next step, next step date, close date, deal contacts, notes. Nothing else.

ALLOWED VALUES
Stages: [EXACT LIST, IN ORDER]. A deal moves at most one stage per update unless the notes say it was won or lost. Dates in YYYY-MM-DD.

NEVER
Delete anything. Change amount, owner or pipeline. Create a company. Create a contact without an email address taken from the notes. Guess which deal notes belong to.

MATCHING
Match notes to a deal by company name and contact email. If there are zero matches or more than one, put the note in the proposals under NEEDS A HUMAN and move on.

EVIDENCE
Every proposed change carries a quote from the notes. No quote, no change.

NOTES FORMAT
Written to the deal as: date, who was on the call, three bullet points, next step.

Step 3: make the update command

Save this as .claude/commands/crm-update.md. Typing /crm-update then runs it.

ROLE
You are a careful sales operations assistant. You turn notes into CRM updates and you are more afraid of a wrong update than a missing one.

THE PERSON YOU HELP
A salesperson who will read your proposals in under five minutes. Make them easy to approve or reject line by line.

TASK
For each file in inbox/: read it, find the matching deal (search only, no writes), compare what the notes say with the deal's current values, and draft the changes allowed by CLAUDE.md.

THINK FIRST (don't show me)
What actually changed on this call? What is only an opinion or a maybe? Would the rep agree with the stage you're proposing if they read only the quote?

RULES
Follow CLAUDE.md exactly. Propose nothing without a quote. Write all proposals to log/[TODAY]-proposals.md before asking anything. Then show me the proposals and wait. Write only the lines I approve. After writing, re-read each record and confirm the new values. Move processed notes to done/.

CHECK BEFORE YOU SHOW ME
Is every value allowed? Does every change have a quote? Have I matched any note to a deal it only partly fits? Move those to NEEDS A HUMAN.

OUTPUT
Per deal: the deal name and link, then a numbered list: field, current value, proposed value, quote. Then NEEDS A HUMAN. Then: "Reply with the numbers to approve, e.g. 1-4, 6."
Check out a sample run
Brightwater Dental: 14 clinics (deal link)

1. Stage: Demo done → Proposal. "send over pricing for three sites first"

2. Next step: (empty) → Send three-site proposal. "if we can see it before the 20th"

3. Next step date: (empty) → 2026-11-18.

4. Close date: 2026-12-31 → 2026-12-15. "we'd want to sign before the holidays"

Northfield Logistics (deal link)

5. Next step: Follow up → Send board summary. "a one-pager for the board would help"

NEEDS A HUMAN

inbox/2026-11-13-call-sam.md: two open deals at Cobalt Studios match. Which one?

Reply with the numbers to approve, e.g. 1-4, 6.

Made-up deals, for illustration.

Step 4: lock down what it can do

Claude Code's permission rules let you allow, ask about or deny each tool. MCP tools are named mcp__[server]__[tool]; use the tool names you listed in step 1. In .claude/settings.json:

{ "permissions": {
  "allow": ["mcp__hubspot__[each search and read tool]"],
  "ask": ["mcp__hubspot__[each create and update tool]"],
  "deny": ["mcp__hubspot__[any delete tool]"]
} }


Reads run freely, every write asks you first, and deletes can't happen even if the instructions are ignored. The rules file says what it should do; this file decides what it can do.

Step 5: run it every morning

Two ways, depending on how much you trust it yet:

  • By hand: open the folder, type /crm-update, approve. About five minutes for a day of calls.
  • Scheduled proposals: run Claude Code in non-interactive mode (claude -p) overnight with an instruction to write proposals only. With writes set to ask, nothing is written while nobody is there to approve. In the morning, open the proposals file and approve the lines you agree with in a normal session.

How do you know it's working?

  • Every Friday, check ten writes against their notes. If more than one is wrong, tighten the rules file before adding volume.
  • Watch the NEEDS A HUMAN list. If it's long, your notes don't name the company or the contact. Fix the notes template, not the AI.
  • Check the CRM's own history. HubSpot's audit log, Pipedrive's change log and Salesforce's audit trail show who changed what. Make sure the AI's writes appear under the right person.

What are the most common mistakes?

  • Connecting with an admin account "to make it easier". Every write then has an admin's reach.
  • Rules in the command instead of CLAUDE.md. Keep them in one place.
  • Letting it create companies. That's where duplicates start.
  • Skipping the deny rule because the rules file says "never delete".
  • Running it on a personal plan with customer data.

For the assistant around this (call prep, follow-ups, research), see build your own AI sales assistant.

Questions

Can Claude Code update Salesforce?
Yes, through Salesforce's hosted MCP servers, generally available since April 2026 for Enterprise Edition and above. Every request runs as the signed-in user with their permissions.
Does Claude Code train on my CRM data?
Not under commercial terms (Team, Enterprise, API). On Free, Pro and Max, data can be used for training when the user's setting is on.
Do I need to know how to code?
No. The setup is two text files, one command and a settings file. Knowing your CRM's fields matters more than code.
How do I stop it writing bad data?
Set every write tool to ask, deny delete tools, require a quote from the notes for every change, and spot-check ten writes a week.

Tools mentioned

All tools →

More from the blog

All posts →