Claude Code Tutorial for Sales: From Setup to First Deal (2026)
By Kushal Magar · April 27, 2026 · 14 min read
Key Takeaway
In one 90-minute session you can install Claude Code, connect your CRM, enrich 20 leads with verified emails and firmographics, generate personalized outreach, and build a 3-step follow-up sequence — all without writing a single line of code yourself.
Most Claude Code tutorials for sales stop at “here's what it can do.” This one walks you through doing it. In one sitting you will install Claude Code, connect your CRM, enrich 20 leads with verified emails, write personalized outreach for each one, and build a 3-step follow-up sequence ready to launch.
No coding experience required. Every command is provided. You copy, paste, and watch Claude Code do the work. The entire process takes 60 to 90 minutes — and the workflows you build here are reusable on every future list.
How do you use Claude Code for sales?
Install Claude Code via npm, connect your CRM through an MCP server (SyncGTM, HubSpot, or Salesforce), then prompt Claude Code to enrich leads, generate personalized emails, and build follow-up sequences. Claude Code executes each step — calling APIs, writing files, and pushing data to your CRM — without you writing any code.
TL;DR
- This is a do-it-now tutorial. You will install Claude Code, connect a CRM, enrich leads, write emails, and build a sequence in one sitting.
- Time required: 60 to 90 minutes. No coding experience needed.
- What you need: A laptop with Node.js 18+, a Claude Pro or Max subscription ($20 to $200/mo), and CRM credentials (HubSpot, Salesforce, or Pipedrive).
- End result: 20 enriched leads with personalized 3-step email sequences, ready to push to your outreach tool.
- SyncGTM accelerates every step. One MCP connection gives Claude Code access to waterfall enrichment across 50+ providers, buying signals, and CRM sync.
Who This Claude Code Tutorial Is For
This tutorial is built for SDRs, AEs, sales managers, and sales ops professionals who want to automate the manual parts of their workflow — prospecting research, data entry, email drafting — without depending on engineering.
If you can use a terminal (copy-paste commands, hit enter), you can follow this tutorial. Everything else — the API calls, file generation, CRM writes — Claude Code handles.
According to Gartner, sales reps spend only 28% of their week selling. The rest goes to research, admin, and CRM hygiene. This tutorial targets that 72%.
What You Will Build in This Session
By the end of this tutorial, you will have a working sales pipeline built entirely through Claude Code prompts:
- A CRM connection via MCP (reads and writes to your CRM)
- 20 leads enriched with verified emails, phone numbers, firmographics, and tech stack signals
- Personalized first-touch emails for each lead (using live company research)
- A 3-step follow-up sequence with timing logic
- All data pushed back to your CRM, tagged and ready for outreach
| Step | What Happens | Time |
|---|---|---|
| 1. Install | Claude Code running in your terminal | 10 min |
| 2. CRM Connect | MCP server linked to HubSpot/Salesforce/Pipedrive | 5 min |
| 3. Enrich | 20 leads with emails, firmographics, tech stack | 15 min |
| 4. Outreach | Personalized first-touch email per lead | 15 min |
| 5. Sequence | 3-step follow-up with timing and angle shifts | 15 min |
| 6. Push | Everything synced to CRM | 10 min |
Prerequisites
Gather these before you start. Missing any one of them will block a step later.
- Node.js 18 or higher — check with
node -vin your terminal - Claude Pro ($20/mo) or Claude Max ($100-$200/mo) — sign up at claude.ai
- CRM API credentials — HubSpot API key, Salesforce connected app, or Pipedrive API token
- A prospect list — 20 companies (name + domain) in a CSV file. If you do not have one, Claude Code can build it from scratch.
- Optional: SyncGTM account for waterfall enrichment across 50+ data providers (free tier available)
Step 1: Install Claude Code
Claude Code runs in your terminal. Installation takes under 5 minutes.
Install via npm
npm install -g @anthropic-ai/claude-code
Verify the installation:
claude --version
Authenticate
Run claude in your terminal. It will open a browser window for authentication. Sign in with your Claude Pro or Max account.
Create a project folder
mkdir sales-pipeline && cd sales-pipeline claude
Claude Code opens in this directory. Everything it creates — CSVs, email drafts, enrichment outputs — will land here.
Tip: Create a CLAUDE.md file
Add a CLAUDE.md file in your project folder with your ICP definition, company name, product description, and preferred tone. Claude Code reads this automatically and uses it as context for every session. Think of it as your permanent sales playbook.
Step 2: Connect Your CRM via MCP
MCP (Model Context Protocol) is how Claude Code talks to external tools. One command connects your CRM. Claude Code can then read contacts, create deals, update fields, and push enriched data — all from natural language prompts.
Option A: SyncGTM MCP (recommended)
The SyncGTM MCP gives Claude Code access to your CRM plus 50+ enrichment providers in one connection. No separate setup for enrichment later.
claude mcp add syncgtm -- npx -y @syncgtm/mcp-server
Option B: Direct HubSpot MCP
If you prefer a direct HubSpot connection:
claude mcp add hubspot -- npx -y @hubspot/mcp-server \ --api-key YOUR_HUBSPOT_API_KEY
Option C: Direct Salesforce MCP
claude mcp add salesforce -- npx -y @anthropic/salesforce-mcp \ --instance-url https://your-org.my.salesforce.com \ --client-id YOUR_CLIENT_ID \ --client-secret YOUR_CLIENT_SECRET
Verify the connection
Inside your Claude Code session, type:
List the last 5 contacts created in my CRM
If Claude Code returns contact names and dates, your connection is live. If it throws an error, check your API key or credentials.
Time check:
You should be 15 minutes into the tutorial. Claude Code is installed and your CRM is connected. Everything from here is execution.
Step 3: Enrich Your First Leads
Enrichment turns a company name into actionable data: verified email, phone number, headcount, revenue, tech stack, and recent hiring signals. Claude Code handles the entire pipeline.
Prepare your input
Create a CSV called prospects.csv with two columns: company name and domain. Twenty rows is the right size for your first run.
company,domain Notion,notion.so Figma,figma.com Linear,linear.app ...
No CSV? Ask Claude Code to build one:
Build me a list of 20 Series B SaaS companies with 100-500 employees in North America that use HubSpot. Save as prospects.csv with columns: company, domain, headcount, funding_stage
Run enrichment
With SyncGTM's waterfall enrichment, Claude Code tries multiple data providers in sequence until it finds verified data. Prompt:
Read prospects.csv. For each company: 1. Find the VP of Sales or Head of Revenue 2. Get their verified work email via waterfall enrichment 3. Get their LinkedIn URL 4. Pull company firmographics: headcount, revenue, industry, HQ city 5. Detect their tech stack from job postings 6. Find one recent trigger (new hire, funding, product launch) Save enriched data to enriched-prospects.csv
Claude Code will process each company, calling enrichment APIs and web search in parallel. Expect 30 to 60 seconds per lead.
What your output looks like
| Field | Example Value |
|---|---|
| Company | Notion |
| Contact Name | Sarah Kim |
| Title | VP of Sales |
| Verified Email | s.kim@notion.so |
| Tech Stack | HubSpot, Snowflake, dbt |
| Headcount | 2,800 |
| Trigger | Hired 3 AEs in Q1 2026 |
Hit rate expectation
Waterfall enrichment typically delivers 80-90% email hit rates for B2B contacts. Direct provider lookups average 40-60%. If your hit rate is below 70%, check that your input domains are correct — typos in domains are the #1 cause of low enrichment results.
Step 4: Write Personalized Outreach
Generic emails get ignored. Emails that reference a prospect's recent hire, tech stack, or funding round get replies. Claude Code writes the second kind — using the enrichment data you just collected.
The prompt
Read enriched-prospects.csv. For each lead, write a cold email that: 1. Opens with a specific observation about their company (use the trigger or tech stack data, not a generic compliment) 2. Connects that observation to a problem we solve 3. Includes one concrete stat or proof point 4. Ends with a low-friction CTA (15-min call, not a demo) Our company: [Your Company Name] Our product: [One sentence — what it does] Our ICP pain point: [The specific problem your buyers have] Rules: - Under 120 words per email - No "I hope this finds you well" - No "I noticed your company is doing great things" - Subject line under 6 words Save each email to outreach/[company-slug].txt Also create outreach/all-emails.csv with columns: company, contact, email_address, subject, body
What good output looks like
Subject: Your 3 new AEs need pipeline
Sarah — Notion just hired 3 AEs in Q1. That means you need pipeline filling faster than your current process can deliver.
We help sales teams at HubSpot-using companies build enriched prospect lists in 15 minutes instead of 4 hours. One customer went from 200 to 1,200 qualified leads per month after switching.
Worth a 15-minute call this week?
Notice the structure: specific trigger (3 new AEs) linked to a pain (pipeline velocity), a concrete result (200 to 1,200 leads), and a low-commitment CTA. Claude Code writes this for every lead in your list using their individual enrichment data.
Teams using Claude Code for cold email automation report 2-3x higher reply rates compared to template-based outreach. The difference is that every email references real, current data about the prospect.
Step 5: Build a Follow-Up Sequence
80% of deals require 5+ touches. Most reps stop after 2. Claude Code builds a multi-step follow-up sequence where each email shifts the angle — so you are not just “bumping” the thread.
The prompt
Read outreach/all-emails.csv (the first-touch emails you just created). For each lead, create a 3-step follow-up sequence: Follow-up 1 (Day 3): - New angle: reference a different data point from their enrichment - Add social proof (case study, stat, or named customer) - Under 80 words Follow-up 2 (Day 7): - Share a relevant resource (blog post, guide, or template) - Link to our [relevant content URL] - Under 60 words Follow-up 3 (Day 14): - Breakup email — direct, no pressure - Offer to reconnect in 90 days - Under 50 words Save to sequences/[company-slug]-sequence.csv with columns: step, send_date, subject, body
Sequence structure
| Step | Timing | Angle | Length |
|---|---|---|---|
| First touch | Day 0 | Trigger + pain + CTA | <120 words |
| Follow-up 1 | Day 3 | New data point + social proof | <80 words |
| Follow-up 2 | Day 7 | Value-add resource | <60 words |
| Follow-up 3 | Day 14 | Breakup — no pressure | <50 words |
Each follow-up references different enrichment data, so the prospect sees new information each time — not a copy-pasted “just following up.”
Step 6: Push to CRM and Verify
The final step: push your enriched contacts, emails, and sequences into your CRM. Claude Code writes directly to HubSpot, Salesforce, or Pipedrive via the MCP connection you set up in Step 2.
The prompt
Read enriched-prospects.csv and sequences/*.csv. For each contact: 1. Create or update the contact in my CRM with all enriched fields 2. Tag them with "claude-code-tutorial-batch-1" 3. Create a deal/opportunity linked to the contact 4. Log the first-touch email as a scheduled activity Confirm each record with the CRM record ID.
Verify your data
After Claude Code finishes, ask it to run a quick audit:
Check my CRM for all contacts tagged "claude-code-tutorial-batch-1". For each, confirm: email is populated, deal is created, and first email is scheduled. Report any gaps.
This verification step catches data sync issues before you launch outreach. Common problems: duplicate contacts (Claude Code can merge them), missing email fields (re-run enrichment on failures), or deals assigned to the wrong pipeline stage.
You are done.
In roughly 70 minutes, you went from zero to 20 enriched contacts with personalized multi-step sequences loaded in your CRM. That same process manually takes 6-8 hours for a typical SDR.
What to Build Next
Your foundation is live. These four workflows deliver the highest ROI as your next build:
- Full outbound machine — automated prospecting that runs weekly, enriches new accounts, and queues sequences without manual triggering
- RevOps workflows — pipeline inspection, deal scoring, and forecast prep that pull live CRM data every morning
- CRM automation — auto-tagging, lead routing, and lifecycle stage updates based on enrichment signals
- Sales ops automation — territory mapping, quota analysis, and win/loss reporting generated from CRM exports
Each of these builds on the same foundation: Claude Code installed, CRM connected via MCP, enrichment provider active. You already have that.
Common Mistakes (and How to Avoid Them)
1. Skipping the CLAUDE.md file
Without a CLAUDE.md, Claude Code does not know your ICP, product, or tone. It guesses. The output quality drops 40-50% compared to sessions with context. Spend 10 minutes writing your ICP definition, product one-liner, and preferred email tone.
2. Running enrichment without verifying input data
Typos in company domains (notion.com instead of notion.so) cause enrichment failures. Verify your input CSV before running the enrichment step. Claude Code can help:
Check prospects.csv — verify each domain resolves to a real company website. Flag any that return 404 or redirect to a different company.
3. Sending AI-generated emails without review
Claude Code writes good emails, but it can hallucinate company details or misinterpret enrichment data. Always review the first 5-10 emails before bulk-sending. Check that company names, trigger events, and stats are accurate.
4. Not tagging CRM records
Without tags, your AI-generated contacts mix with manual entries. Always tag records with the batch name and source. This makes it easy to track performance and roll back if needed.
5. Overloading your first batch
Start with 20 leads, not 200. You need to verify the workflow works correctly before scaling. Once your enrichment hit rate, email quality, and CRM sync are validated, increase batch size to 50, then 100.
Conclusion
You just built a working sales pipeline with Claude Code in under 90 minutes. CRM connected. Leads enriched. Emails personalized. Sequences built. Data synced.
The workflows you created here are reusable. Next week, swap in a new prospect list and run the same prompts. Each iteration takes 30 minutes instead of 90 because the setup is already done.
Claude Code is not a replacement for sales judgment — it is a force multiplier. It eliminates the manual work between identifying a prospect and reaching out to them. That gap used to take hours. Now it takes minutes.
Ready to run this on real prospects? Connect SyncGTM as your MCP and get waterfall enrichment, buying signals, and CRM sync in one connection — everything you need to make every prompt in this tutorial work on day one.
