AI AutomationSales PipelineOpenAISalesforceMake.comCRM AutomationDeal Intelligence

How to Build an AI Sales Pipeline Intelligence System with OpenAI, Salesforce, and Make.com

JustUseAI Team

Most sales teams have plenty of pipeline data and too little intelligence. CRMs log every call, email, and stage change, but the insights that matter—why deals stall, which opportunities are at risk, what actions actually close revenue—remain buried in spreadsheet exports and hunches.

The result is predictable: reps spend time on deals that won't close this quarter while high-probability opportunities sit neglected. Managers review pipeline reports that show what happened but not what to do next. Forecasts become exercises in optimism rather than data-driven predictions.

AI pipeline intelligence changes the game. By analyzing deal data, communication patterns, and historical outcomes, AI surfaces what humans miss: early warning signs of stalled deals, hidden signals of buyer intent, and specific actions that correlate with closes. The sales teams using this approach are discovering they can predict revenue more accurately, coach reps more effectively, and focus energy on opportunities with genuine momentum.

This guide walks through building an AI-powered sales pipeline intelligence system using OpenAI for analysis, Salesforce as your CRM foundation, and Make.com for orchestration. Total monthly cost: under $150. Setup time: one focused weekend.

What We're Building

The system we're creating delivers three core capabilities:

1. Pipeline Health Scoring – AI analyzes every open opportunity and assigns health scores based on engagement patterns, deal velocity, and historical close rates by client type.

2. Deal Risk Prediction – AI identifies deals showing early warning signs of stalling or loss, flagging them for intervention before they go cold.

3. Next-Best-Action Recommendations – Based on deal stage, buyer behavior, and similar past opportunities, AI suggests specific actions that have historically moved deals forward.

4. Automated Follow-Up Triggers – When deals fall into risk categories, AI generates personalized outreach sequences and schedules them automatically.

By the end, you'll have a system that transforms your CRM from a record-keeping database into an active revenue intelligence platform—surfacing insights that help reps close more deals in less time.

The Stack: Why These Tools?

  • OpenAI (GPT-4o) delivers the intelligence layer. It can analyze deal data, interpret communication patterns, and make predictions about deal outcomes based on subtle signals that don't fit rigid rule-based scoring.
  • Salesforce provides the data foundation. As the industry-standard CRM, it likely houses your opportunity data already. This system enhances rather than replaces your existing Salesforce setup.
  • Make.com handles orchestration without requiring Salesforce coding expertise. Its visual workflow builder connects Salesforce data with OpenAI analysis and triggers actions based on results.
  • Total monthly cost breakdown:
  • OpenAI API: $30-$80 (depends on pipeline volume)
  • Make.com Core plan: $9-$16
  • Salesforce Professional or higher: included in existing license
  • Total: $40-$95/month (plus existing CRM costs)

Compare that to the $50K-$150K annually for dedicated revenue intelligence platforms like Clari or Gong, and the DIY approach becomes compelling for teams ready to build their own intelligence layer.

Phase 1: Salesforce Configuration

Before connecting AI, ensure your Salesforce data structure supports pipeline intelligence.

Step 1: Create Custom Fields

Navigate to Setup → Object Manager → Opportunity → Fields & Relationships. Create these custom fields:

  • Health Score Fields:
  • AI Health Score (Number, 0-100)
  • Health Grade (Picklist: A, B, C, D, F)
  • Last Health Assessment (Date/Time)
  • Health Score Reason (Long Text Area)
  • Risk Detection Fields:
  • Deal Risk Level (Picklist: Low, Medium, High, Critical)
  • Risk Factors (Long Text Area)
  • Risk First Identified (Date)
  • Days in Current Stage (Formula Number)
  • Recommendation Fields:
  • Recommended Action (Long Text)
  • Recommended Contact (Lookup to Contact)
  • Action Priority (Picklist: Low, Normal, High, Urgent)
  • Action Due Date (Date)
  • Automation Tracking:
  • AI Analysis Date (Date/Time)
  • Next Analysis Due (Date/Time)
  • Excluded from AI (Checkbox) – for deals handled manually

Step 2: Create Opportunity Stages Report

Build a report showing: - All open opportunities - Last Activity Date - Days in Current Stage - Stage History - Contact Roles - Activity History count

This becomes your baseline for AI analysis. Export a sample of 50-100 recent opportunities (both won and lost) for initial training data.

Step 3: Create Pipeline Health Dashboard

Build a Salesforce dashboard with these components:

  • Health Score Distribution:
  • Bar chart showing opportunity count by Health Grade
  • Filter: Current Quarter, Open Opportunities
  • At-Risk Pipeline:
  • Table showing opportunities with Risk Level = High or Critical
  • Columns: Deal Name, Amount, Risk Factors, Recommended Action
  • Pipeline Velocity:
  • Gauge showing average days in stage by stage
  • Trend line comparing current vs. previous quarter

Phase 2: Building the AI Health Scoring System

Make.com scenarios connect Salesforce data to OpenAI intelligence and route insights back to your CRM.

Scenario 1: Opportunity Health Scoring

This scenario analyzes every open opportunity weekly and assigns health scores.

  • Trigger: Schedule – Run Weekly
  • Day: Sunday
  • Time: 6:00 AM (before the sales week begins)

Module 2: Salesforce – Search Records - Object: Opportunity - Filters: - Stage ≠ Closed Won, Closed Lost - Excluded from AI = False - Created Date > Last 180 Days (exclude stale opportunities)

Module 3: Salesforce – Get Activities For each opportunity, retrieve: - Last 20 tasks/events - Last 10 emails - All stage history entries - Contact roles

  • Module 4: OpenAI – Create a Completion

System Prompt: ``` You are a sales pipeline intelligence analyst. Analyze the provided opportunity data and assign a health score based on these criteria:

HEALTH SCORING RUBRIC (0-100):

Engagement Level (40 points): - Recent communication (within 7 days): +15 points - Multi-threaded (multiple contacts engaged): +10 points - Buyer-initiated activities in last 14 days: +15 points - No activity in 14+ days: -20 points - Only seller-initiated contact in 30 days: -15 points

Deal Velocity (30 points): - Moving through stages at average pace or faster: +20 points - Stuck in current stage <20% longer than average: +10 points - Stuck 20-50% longer than average: 0 points - Stuck >50% longer than average: -15 points - No stage progression in 45+ days: -20 points

Opportunity Characteristics (20 points): - Decision maker identified and engaged: +10 points - Clear budget/compelling event documented: +10 points - Past successful deals with this account type: +5 points - New account with unknown buying process: -5 points

Communication Quality (10 points): - Specific next steps agreed in last communication: +10 points - Vague/no next steps: 0 points - Objections raised but not addressed: -10 points

SCORING GUIDE: - 90-100 = Grade A: Healthy, on track to close - 70-89 = Grade B: Good progress, continue standard motion - 50-69 = Grade C: At risk, needs attention - 30-49 = Grade D: High risk, intervention required - 0-29 = Grade F: Likely lost, requalify or disqualify

Response must be in this JSON format: { "health_score": number, "grade": string, "primary_factors": [string], "engagement_assessment": string, "velocity_assessment": string, "recommended_action": string } ```

  • User Content: Map opportunity data including:
  • Opportunity Name, Amount, Stage, Close Date
  • Days in current stage
  • Stage history with dates
  • Recent activities (last 30 days)
  • Contact roles and engagement levels
  • Any opportunity notes or next steps
  • Model: GPT-4o
  • Temperature: 0.2 (keep scoring consistent)
  • Max Tokens: 800
  • Module 5: JSON – Parse JSON

Extract fields from OpenAI response: - health_score → AI Health Score - grade → Health Grade - primary_factors → Health Score Reason - recommended_action → Recommended Action

Module 6: Salesforce – Update Record Update the opportunity with parsed AI scores and set: - Last Health Assessment = Current Date/Time - Next Analysis Due = 7 days from now

  • Module 7: Router – Create Conditional Paths
  • Path A: Grade A-B Opportunities
  • Filter: Grade = A or B
  • Action: Log "healthy deal" note, no immediate action needed
  • Set: Action Priority = Low
  • Path B: Grade C Opportunities
  • Filter: Grade = C
  • Action: Log "needs attention" note
  • Set: Action Priority = Normal
  • Send digest to sales manager (weekly summary)
  • Path C: Grade D-F Opportunities
  • Filter: Grade = D or F
  • Action: Create high-priority task for account owner
  • Set: Action Priority = High or Urgent
  • Send immediate Slack/email alert to rep and manager

Scenario 2: Deal Risk Detection

This scenario identifies deals showing early warning signs before they become obvious losses.

  • Trigger: Schedule – Run Daily
  • Time: 7:00 AM

Module 2: Salesforce – Search Records - Object: Opportunity - Filters: - Stage ≠ Closed Won, Closed Lost - AI Health Score < 60 OR Days in Stage > Stage Average × 1.5 - Last Activity Date < 7 days ago

  • Module 3: OpenAI – Analyze Risk Factors

System Prompt: ``` You are a sales risk analyst. Review this opportunity data and identify specific risk factors that threaten deal closure.

RISK CATEGORIES TO EVALUATE:

Stall Risk: - Deal stuck in same stage beyond normal duration - Multiple planned meetings missed or rescheduled - Lack of buyer engagement despite seller outreach

Competitive Risk: - Buyer mentions evaluating alternatives - Delayed decisions while "reviewing options" - Price sensitivity emerging late in process

Authority Risk: - Economic buyer not clearly identified - Champion unable to drive internal consensus - Key stakeholders not engaged

Timing Risk: - Close date pushed multiple times - Compelling event missing or unclear - Budget not allocated or approved

Response must be in this JSON format: { "risk_level": "Low|Medium|High|Critical", "primary_risks": [string], "risk_factors": [string], "probability_of_close": number, "intervention_urgency": string, "suggested_intervention": string } ```

  • User Content: Same opportunity data as health scoring
  • Module 4: JSON – Parse Response
  • risk_level → Deal Risk Level
  • primary_risks → Risk Factors
  • suggested_intervention → Recommended Action
  • Module 5: Salesforce – Update Record
  • Set Risk First Identified date (if blank)
  • Update risk fields
  • If Risk Level = High or Critical, set Action Due Date = Today + 2 days
  • Module 6: Notifications
  • Send Slack message to account owner for High/Critical risks
  • Include: Deal name, amount, risk factors, suggested intervention
  • Send weekly risk summary to sales manager

Phase 3: Building Next-Best-Action Recommendations

This scenario provides specific, actionable guidance based on deal context.

Scenario 3: AI Action Recommendations

  • Trigger: Schedule – Run Daily
  • Time: 8:00 AM

Module 2: Salesforce – Search Records - Object: Opportunity - Filters: - Stage ≠ Closed Won, Closed Lost - (Health Grade = C, D, or F) OR (Risk Level = Medium, High, Critical) - Action Due Date ≤ Today (or blank)

  • Module 3: OpenAI – Generate Recommendations

System Prompt: ``` You are a sales coach who analyzes deal context and recommends specific next actions that have historically moved similar deals forward.

ANALYSIS FRAMEWORK:

Review the deal stage, recent activities, health score, and risk factors to recommend ONE primary action.

ACTION CATEGORIES:

Qualification Actions (Early Stage): - "Schedule discovery call to confirm business problem" - "Send case study from similar company" - "Request intro to economic buyer"

Progression Actions (Mid Stage): - "Schedule demo with technical stakeholders" - "Send pricing proposal with ROI calculator" - "Arrange reference call with existing customer"

Close Actions (Late Stage): - "Confirm procurement process and timeline" - "Schedule executive alignment call" - "Send order form with agreed terms"

Revival Actions (Stuck Deals): - "Send 'breakup' email: are we still evaluating?" - "Offer executive business review value add" - "Pivot to different use case or department"

For your recommendation, provide: 1. Specific action (one sentence) 2. Rationale (why this action, based on deal signals) 3. Suggested message (2-3 sentence outreach template) 4. Priority: Low, Normal, High, or Urgent

Response JSON format: { "action": string, "rationale": string, "suggested_message": string, "priority": string, "contact_role": string (who to engage: Champion, Economic Buyer, Technical Evaluator, etc.) } ```

  • Module 4: Salesforce – Update Record
  • Update Recommended Action field
  • Set Action Due Date based on priority
  • Set Action Priority
  • Module 5: Task Creation

For High/Urgent priorities: - Create Salesforce Task: - Subject: "AI Recommended: [action]" - Due Date: Today (Urgent) or +2 days (High) - Description: Full AI recommendation including rationale and suggested message - Assigned To: Opportunity Owner

Phase 4: Automated Follow-Up Sequences

When deals hit risk thresholds, automatically trigger personalized outreach.

Scenario 4: Risk-Based Follow-Up Automation

  • Trigger: Salesforce – Watch Records
  • Object: Opportunity
  • Trigger: When record updated
  • Condition: Deal Risk Level changes to High or Critical
  • Module 2: Router – Branch by Risk Level
  • Path A: High Risk (First Warning)
  • Action: Create "Caution" follow-up sequence
  • AI generates gentle re-engagement email
  • Path B: Critical Risk (Likely Lost)
  • Action: Create "Breakup" or "Executive Intervention" sequence
  • AI generates executive-level outreach
  • Module 3: OpenAI – Draft Outreach

For High Risk (System Prompt): ``` Draft a friendly, helpful follow-up email to a sales prospect who has gone quiet. The tone should be consultative, not pushy.

Reference specific details from the deal context: - Last conversation topic - Their stated business problem - Any agreed next steps that haven't happened

Keep it to 3-4 sentences. End with a specific question that invites response. ```

For Critical Risk (System Prompt): ``` Draft a brief, direct message from a sales leadership perspective. Acknowledge that the deal may have stalled and offer a clean exit or escalation path.

Tone should be respectful of their time, direct about the situation, and leave the door open for future engagement. Mention specific value they discussed initially.

Keep to 3-5 sentences. Consider offering a brief executive strategy call as last attempt. ```

  • Module 4: Draft Review (Optional for human approval)
  • Send drafted message to Salesforce as Draft Task
  • Or, for fully automated: proceed to send
  • Module 5: Send Email
  • Via Gmail/Outlook/SendGrid integration
  • Log to Salesforce Activity History
  • Set follow-up reminder for +5 days

Phase 5: Dashboards and Reporting

Make your pipeline intelligence visible and actionable.

Build Salesforce Reports

  • Pipeline Health Overview:
  • Group by: Health Grade
  • Sum: Amount
  • Count: Opportunities
  • Chart: Pie chart showing pipeline distribution by health
  • At-Risk Pipeline Report:
  • Filter: Risk Level = High or Critical
  • Columns: Opp Name, Account, Amount, Risk Factors, Recommended Action, Owner
  • Sort by: Amount (descending)
  • Action Required Report:
  • Filter: Action Due Date ≤ Today, Action Priority = High or Urgent
  • Columns: Opp Name, Recommended Action, Suggested Message, Owner
  • Group by: Owner

External Dashboards (Optional)

For visualization beyond Salesforce:

  • Airtable Dashboard:
  • Sync opportunity data via Make.com
  • Create kanban view by Health Grade
  • Add filter for "Needs Attention This Week"
  • Automate weekly summary reports
  • Google Sheets + Looker Studio:
  • Sync opportunity data from Salesforce
  • Create pivot tables by health grade, risk level, and stage
  • Build charts showing pipeline health trends
  • Share weekly summary with leadership

What Does It Cost to Build?

  • DIY Approach (this guide):
  • Software costs: $40-$95/month ongoing
  • Time investment: 12-18 hours initial setup
  • Monthly maintenance: 2-4 hours
  • Total first year: $1,000-$1,600 in software + your time
  • Working with an AI Consultant:

If you'd rather have experts build this: - Discovery and requirements: $3,000-$7,000 - Salesforce field configuration: $1,500-$3,000 - Make.com scenario development: $8,000-$15,000 - Testing and refinement: $3,000-$6,000 - Training and handoff: $2,000-$4,000 - Total: $17,500-$35,000 for custom-built system

Ongoing costs remain: $40-$95/month, but you get: - Custom AI scoring models trained on your historical data - Integration with your specific Salesforce configuration - Advanced analytics and custom dashboards - Training for sales leadership and reps - Ongoing optimization based on results

Most companies see ROI within 60-90 days through: - Improved forecast accuracy (reducing surprises) - Faster deal progression (increasing win rates) - Reduced time on deals that won't close - Better coaching based on data rather than anecdotes

Common Objections (And Practical Responses)

  • "Our Salesforce data is messy and incomplete"

Before connecting AI, audit your data hygiene. The AI can't analyze what isn't documented. Start with data basics: consistent stage updates, activity logging, accurate close dates. Consider making activity logging a requirement before AI analysis kicks in.

  • "Sales reps don't trust AI recommendations"

Trust builds through accuracy. Strategy: - Run AI in "shadow mode" for 4 weeks—scores appear but no alerts yet - Compare AI risk predictions to actual outcomes - Share statistics: "AI correctly flagged X deals that closed lost" - Activate full automation once accuracy is proven

  • "Our sales process is unique—generic rubrics won't work"

The system prompts are fully customizable. Adjust criteria based on your patterns: - Enterprise software (12-month cycles): weight technical validation milestones higher - Transactional SaaS (30-day cycles): weight recent communication, flag deals past 45 days - Professional services: incorporate proposal-to-close ratios

  • "We use HubSpot/Pipedrive, not Salesforce"

Same architecture works with any CRM. Make.com connects to HubSpot, Pipedrive, Zoho, and 100+ others. Adapt field names and triggers—AI analysis logic stays identical.

  • "Processing our sales data with external AI feels risky"

Mitigation strategies: - OpenAI API doesn't train on your data by default - Start with anonymized opportunity data (replace account names with IDs) - Exclude sensitive deals manually from AI analysis - Enterprise OpenAI agreements provide additional security

Getting Started: Weekend Build Plan

  • Saturday Morning (4 hours):
  • Audit Salesforce opportunity fields and activity logging
  • Create custom fields for health scores and risk levels
  • Set up Make.com and connect Salesforce
  • Saturday Afternoon (4 hours):
  • Build Scenario 1: Opportunity Health Scoring
  • Test with sample opportunities
  • Fix prompt issues with response formats
  • Sunday Morning (3 hours):
  • Build Scenario 2: Deal Risk Detection
  • Build Scenario 3: AI Action Recommendations
  • Create Salesforce reports and dashboard components
  • Sunday Afternoon (3 hours):
  • Set up notifications for high-risk deals
  • Document new fields and reports for sales team
  • Plan Monday training with sales leadership
  • First 30 Days:
  • Run in shadow mode to establish accuracy baseline
  • Collect feedback from sales team
  • Refine prompts based on patterns
  • Measure time saved on pipeline reviews

Next Steps

AI pipeline intelligence surfaces insights that enable better judgment—which deals need attention, why deals stall, what actions correlate with closes. The modular design lets you start with health scoring, validate results, and expand over time.

If you're comfortable with no-code tools and clean Salesforce data, this system puts enterprise-grade pipeline intelligence within reach for under $100/month.

If you'd prefer experts to build this—tailored to your sales process and deal patterns—contact us. We'll audit your CRM setup, identify automation opportunities, and deliver a complete system with training.

Either way, "trusting your gut" about pipeline health isn't a competitive advantage anymore. AI-powered pipeline intelligence is accessible and immediately impactful. The question is whether you'll build it yourself or get help.

The sales teams that dominate over the next decade won't be the ones with the largest CRMs. They'll be the ones using AI to extract genuine intelligence—predicting outcomes and closing more revenue per rep than competitors relying on intuition.

If you're ready to explore pipeline intelligence for your team, contact us to start the conversation.

---

*Want more practical AI implementation guides? Browse our blog for CRM automation strategies, industry-specific sales tools, and step-by-step tutorials for building AI-powered revenue systems.*

Want to Learn More?

Get in touch for AI consulting, tutorials, and custom solutions.