Blog · November 2026 · 6 min read

    Get Your Mondays Back: How to Automate Your Salesforce Pipeline Report with Claude Code & Slack

    6 min
    Reading time
    ~25 min
    Setup time, plus 15 minutes from your Salesforce admin
    No code
    Technical level

    Every Monday morning, the same ritual plays out on sales and RevOps teams. Someone exports a Salesforce report to CSV, cleans up the columns, compares it against last week's numbers, and rewrites the same pipeline three different ways: an executive summary for the VP of Sales, an expansion view for Customer Success, and a forecast check for Finance.

    You can hand that entire workflow to an AI agent in under 30 minutes.

    Using Claude Code, Salesforce's Hosted MCP Server, and Slack, you can build a self-writing pipeline report that runs on its own every Sunday night while your laptop is closed. No code, no CSV exports, and no brittle Zapier chains to maintain.

    What this AI pipeline agent does

    Every Sunday at 11:00 PM, running automatically in Anthropic's cloud, your agent will:

    1. Pull live data from Salesforce (open pipeline + recently closed deals).
    2. Read last week's report in Slack to identify what moved, slipped, or stalled.
    3. Write three tailored versions of the report:
      • VP of Sales: Executive summary, biggest deals, stuck deals, and top 3 weekly priorities.
      • Customer Success: Expansion pipeline by owner, stage, value, and next step.
      • Finance: Forecast totals and any deal whose close date shifted.
    4. Audit its own math by cross-checking every figure against Salesforce.
    5. Post all three drafts to your Slack channel for a 10-minute Monday morning human review.

    You don't write code. You describe what you want in plain English, coach the output once, and put it on a schedule.

    Prerequisites: what you need before starting

    • A paid Claude plan (Pro, Max, Team, or Enterprise).
    • Salesforce Enterprise Edition or higher, plus 15 minutes from a Salesforce admin.
    • A Slack workspace where your admin has approved the Claude app connection.
    • Internal AI policy approval to use Claude on CRM deal data (check with IT/Legal first).

    Step 1: Ask your Salesforce admin to enable read-only MCP access

    This is the only step you cannot do yourself. Claude uses Salesforce's official Hosted MCP (Model Context Protocol) server, which respects your existing Salesforce permissions, meaning Claude can only see what your own login can see.

    Send your Salesforce admin this message:

    Message to your Salesforce admin
    Hi! I'd like to connect Claude to Salesforce so it can read our pipeline for a weekly report. Could you help with three quick things?
    
    1. In Setup, go to MCP Servers > Salesforce Servers and activate the standard server that lets Claude read records (sobject-all, or a read-only option if we have one).
    2. Create an External Client App for Claude with:
       - Callback URL: https://claude.ai/api/mcp/auth_callback
       - Scopes: mcp_api and refresh_token
       - Security: PKCE required, JWT-based access tokens
    3. Send me the Server URL and the Consumer Key.
    
    Here is Salesforce's official setup guide:
    https://developer.salesforce.com/blogs/2026/05/connect-claude-with-salesforce-hosted-mcp-servers

    Step 2: Connect Salesforce and Slack to Claude

    Once your admin sends the Server URL and Consumer Key, open claude.ai/customize/connectors.

    • Connect Slack: Click the + button, select Slack, and sign in to your workspace. (Tip: Make sure the Claude app is added to the Slack channel where you want the report posted, such as #pipeline-report.)
    • Connect Salesforce: Click the + button and choose Add custom connector.
      • Name: Salesforce
      • Server URL: Paste the URL from your admin.
      • Advanced Settings → OAuth Client ID: Paste the Consumer Key from your admin.
      • Sign in with your Salesforce credentials.

    Claude can now securely reach both tools using your permissions.

    Step 3: Install Claude Code

    Installing Claude Code takes one copy-and-paste command.

    On Mac: Press Command + Space, type Terminal, press Enter, and run:

    Terminal (Mac)
    curl -fsSL https://claude.ai/install.sh | bash

    On Windows: Open the Start menu, type PowerShell, press Enter, and run:

    PowerShell (Windows)
    irm https://claude.ai/install.ps1 | iex

    Close the terminal, open a fresh window, type claude, and press Enter. Your browser will open so you can log in with your Claude account.

    Next, verify your connections by typing:

    In Claude Code
    /mcp

    You should see both Salesforce and Slack listed. If either says it needs authentication, select it and complete the sign-in.

    Step 4: Build your first pipeline report (dry run)

    Copy the prompt below, fill in the bracketed details for your business, and paste it into Claude Code. Notice we tell Claude not to post anywhere yet so you can verify accuracy first.

    Prompt: dry run
    Pull all open opportunities from Salesforce, plus any opportunities that closed in the last 7 days. Pull only the fields needed for reporting (Name, Account, Owner, Stage, Amount, Close Date, Last Stage Change Date, Next Step, Type, Region) to keep the query clean.
    
    Write our weekly pipeline report in three versions:
    
    1. VP of Sales: Short executive summary. Total open pipeline, top 5 deals, what moved forward, what's stuck, and 3 concrete priorities for this week.
    2. Customer Success: Expansion deals only, showing owner, stage, value, and next step.
    3. Finance: Forecast totals by category and a list of any deals whose close date changed this week.
    
    About us: [what you sell, typical deal size, your pipeline stages]
    A deal is "stuck" if: [e.g., no stage change in 14+ days]
    
    Strict Rules:
    - Only use numbers pulled directly from Salesforce. Never estimate or fill in blanks.
    - If a required field is missing, write [VERIFY].
    - Before showing me the output, re-check every dollar total and deal count against the Salesforce data.
    
    Display all three versions here. Do not post to Slack yet.

    Claude will determine which Salesforce queries to run and ask your permission before accessing the connector. Approve it and watch it assemble the report.

    Step 5: Coach the agent like a new analyst

    Read the first draft like a skeptic. Spot-check at least three deals directly against Salesforce.

    Then give Claude direct, specific feedback, the exact same way you would coach a new RevOps analyst:

    • “The VP version is too long. Cap it at five bullets.”
    • “Finance wants forecast totals broken down by region.”
    • “Exclude deals under $5K from the stuck list.”
    • “Flag any deal with a close date in the past.”

    Once the format and numbers are right, test the Slack handoff:

    Prompt: test the Slack post
    Post this to #pipeline-report in Slack. Start each version with:
    "Draft for review — built automatically from Salesforce."

    Open Slack and verify that all three messages landed cleanly.

    Step 6: Put the report on autopilot

    Now turn your coached conversation into a recurring cloud routine. In Claude Code, type:

    In Claude Code
    /schedule Every Sunday at 11 PM, build the weekly pipeline report using the exact format, business context, rules, and feedback from this conversation, and post it to #pipeline-report. Before writing, read last week's report in #pipeline-report and call out what changed week-over-week. Write the task instructions so they run completely on their own.

    Claude will ask a few clarifying questions and save your routine. Because this task only uses your Salesforce and Slack connectors, it does not need a code repository, and because it runs in Anthropic's cloud, your computer can be completely shut down.

    Test it before Sunday
    1. Go to claude.ai/code/routines.
    2. Review the routine's permissions so read-only Salesforce queries and posting to #pipeline-report don't stall waiting for manual approval overnight.
    3. Click Run now to test an end-to-end run. You can inspect every step the agent took in the run log.

    Your new 10-minute Monday routine

    1. Open #pipeline-report in Slack. All three drafts are waiting.
    2. Review and tweak anything that needs human context (~10 minutes).
    3. Make fixes permanent. If you corrected something manually, open Claude Code and run /schedule update with the new rule. For example: “Always flag deals whose close date has pushed twice.”

    That is the difference between a one-off prompt and an operational system. A prompt saves you 20 minutes once; a coached system gets sharper every week.

    Troubleshooting & FAQ

    Why aren't Salesforce or Slack showing up in /mcp?

    Return to claude.ai/customize/connectors and confirm both connectors show as Connected. Restart Claude Code and run /mcp again.

    Why does /schedule say "unknown command"?

    Verify you are logged in with a paid Claude plan. If you are on a Team or Enterprise plan, your Claude admin may need to enable scheduled tasks in the admin console. (Note: Scheduled tasks are in research preview, so exact menu labels may evolve.)

    Nothing posted to Slack on Sunday night. What happened?

    Check the execution log at claude.ai/code/routines. The two most common culprits are (1) the routine paused waiting for tool approval, or (2) the Claude app hasn't been invited to your target Slack channel.

    A number in the report looks off. How do I fix it permanently?

    Tell Claude which number was wrong and which Salesforce field or filter it should have used instead, then lock in the fix using /schedule update.

    Is it safe to connect Claude to Salesforce?

    Yes, when configured with your company's approval. Salesforce's Hosted MCP server enforces your existing user-level permissions and can be restricted to read-only access so the agent can never modify or delete CRM records.

    Want systems like this built across your team?

    A self-writing pipeline report is just one workflow. Most SaaS teams have five or six identical time sinks running every week: CRM hygiene updates, renewal prep briefs, prospect research, internal handbook Q&A, and executive board reporting.

    At GrowthScript, I shadow your team, measure where hours actually leak, and build reliable AI agents that give those hours back, then train your internal champions to own and evolve them without relying on a consultant.

    Free assessment

    See where your team really sits

    Get the AI-Native Score and find out which of your team's weekly workflows are ready to hand to an AI agent. We'll send it to your inbox.

    No spam. Your answers go straight to Pooja, not a list.

    Book a free 60-minute discovery session

    You'll walk away with a clear, prioritized roadmap of where AI will move the needle. If you're already paying for AI seats, I'll show you how to get real ROI out of the licenses you already own.

    Book on lunacal.ai/pooja →