How to automate a weekly pipeline report with Salesforce and Slack
Automate weekly Salesforce pipeline reports to Slack. Compare native Flow, n8n, and Claude Code approaches with costs and trade-offs.

This recipe includes a downloadable n8n template and Claude Code skill.
Workflow
Why automate your pipeline report?
Sales leaders spend 30-60 minutes every Monday pulling opportunity data from Salesforce, building pivot tables in Excel, and formatting summaries for Slack or email. That's 2-4 hours per month — per manager — on a task that produces the same output every week. Multiply across a team of 3-4 managers and you're burning 8-16 hours of leadership time monthly on copy-paste reporting.
An automated weekly pipeline report handles the entire cycle for you:
- Pulls live opportunity data from Salesforce on a fixed schedule
- Calculates key metrics like total pipeline value, stage breakdown, and closed deals
- Formats a clean summary with the numbers leadership actually cares about
- Delivers it to a Slack channel so the whole team sees it without asking
📊 Weekly Salesforce Pipeline Report
Total Pipeline: $3.1M across 63 opportunities
New This Week: 9 opportunities ($520K)
Closed-Won: 4 deals ($185K)
Closed-Lost: 2 deals ($95K)
Avg Deal Size: $49K | Avg Velocity: 32 days
How it works
Every approach follows the same pattern:
- Query Salesforce — run SOQL queries to pull open pipeline by stage, deals closed this week, and new deals created this week
- Calculate metrics — aggregate total pipeline value, deal count, average deal size, and week-over-week changes
- Post to Slack — format a Block Kit message with headline metrics and stage breakdown, and deliver it to a sales channel
Which approach should I use?
- Salesforce Flow — best when you want everything inside Salesforce with no external dependencies. A Scheduled Flow runs weekly, aggregates metrics with Loop elements, and posts to Slack via HTTP Callout. The trade-off is verbose setup — Flow Builder lacks dictionary types, so you need one variable per stage.
- n8n — best for a visual, maintainable workflow with SOQL aggregation. Three HTTP Request nodes handle the queries, a Code node calculates metrics, and a Slack node posts the report. Self-hosted n8n is free. Requires a Salesforce Connected App for OAuth.
- Claude Code — best for on-demand reporting and ad-hoc analysis. Ask "what does the pipeline look like this week?" or "break down pipeline by rep." The agent adapts SOQL queries to your request without you editing any code.
What you'll need
- Salesforce org with API access (a Connected App configured with OAuth 2.0)
- Slack workspace with permission to add integrations or incoming webhooks
- ~1 hour for initial setup
Key metrics to track
| Metric | Formula |
|---|---|
| Pipeline value | Sum of Amount for all open Opportunities |
| Stage breakdown | Count of Opportunities grouped by StageName |
| Closed this week | Opportunities where CloseDate = THIS_WEEK and IsWon = true |
| Average deal size | Total pipeline value / Number of open Opportunities |
Choose your approach
Select an approach below to see a full step-by-step guide for building this report.
Compare approaches
| Approach | Complexity | Cost | Latency | Code | Reliability |
|---|---|---|---|---|---|
Salesforce Flow | medium | $0 (included) | scheduled | low | 24/7 cloud |
n8n | medium | $0-24/mo | polling | low | 24/7 cloud |
Claude Code | low | Usage-based | on-demand | none | On demand |
Salesforce Flow
mediumn8n
mediumClaude Code
lowSalesforce Flow
mediumScheduled Flow → SOQL query for open Opportunities → aggregate metrics → Slack notification
n8n
mediumWeekly Schedule trigger → Salesforce SOQL query → Code node for metrics → Slack report
Claude Code
lowGuided Claude Code skill to query pipeline data and compose a Slack report conversationally, on a schedule, or via Cowork
Related Recipes
How to automate a weekly pipeline report with HubSpot and Slack
HubSpot + Slack
How to post a daily Slack leaderboard of rep activity from HubSpot
HubSpot + Slack
How to track lead-to-MQL conversion rate by source and report weekly to Slack
HubSpot + Slack
How to send a weekly Slack report on HubSpot sequence performance
HubSpot + Slack
Frequently Asked Questions
Looking to scale your AI operations?
We build and optimize automation systems for mid-market businesses. Let's discuss the right approach for your team.