OpenAI released GPT-5.3-Codex on February 5, 2026βtheir most capable agentic coding model yet. The Codex CLI puts this power at your fingertips, letting you automate GTM tasks directly from your terminal.
This guide covers everything GTM teams need to know: installation, essential commands, and real workflows for sales automation, content generation, and pipeline management.
Codex interprets your request and executes the appropriate actions. You can also:
# Run in a specific directory codex --cwd /path/to/project "<task>" # Include files for context codex --include"*.csv""<task>" # Set output format codex --output json "<task>" # Enable mid-turn steering codex --interactive"<task>"
# Export pipeline from your CRM first (or connect via API) codex --include"pipeline.csv"" Analyze this sales pipeline and identify: 1. Deals that have been stuck in the same stage for >30 days 2. Deals with no recent activity 3. Deals missing next steps 4. Predicted close rates by stage Output as a prioritized action list for the sales manager. "
Sample output:
## Pipeline Health Report ### π¨ Stuck Deals (30+ days same stage) 1. Acme Corp - Proposal stage for 47 days - $85K β Action: Escalate to VP Sales, consider discount strategy 2. TechStart Inc - Demo stage for 38 days - $32K β Action: Re-engage champion, check for competing eval ### β οΈ Missing Next Steps (23 deals) - Priority 1: Deals >$50K with no activity last 14 days - Recommend: Mandatory next-step field in CRM ### π Stage Conversion Rates - Lead β Discovery: 42% (healthy) - Discovery β Demo: 68% (above benchmark) - Demo β Proposal: 31% (β οΈ below benchmark 45%) - Proposal β Closed Won: 28% (needs attention)
codex --include"leads.csv"--output json " For each company in this list: 1. Find their LinkedIn company page 2. Get employee count and recent funding 3. Identify likely decision makers in Sales/Marketing 4. Note any recent news or hiring signals Output as enriched JSON with research_notes for each lead. "
codex " Create a 5-email sequence for SDR outreach to VP of Sales at mid-market SaaS companies. Context: We're MarketBetter, an AI-powered SDR platform. Pain point: SDR productivity and lead prioritization Differentiator: We tell SDRs WHO to contact AND WHAT to do Requirements: - Email 1: Cold intro, <100 words - Email 2: Value-add (share relevant content) - Email 3: Social proof (customer results) - Email 4: Direct ask for meeting - Email 5: Breakup email Include subject lines and personalization tokens. "
codex --interactive" Research these competitors and create a comparison matrix: - Warmly - 6sense - Apollo - ZoomInfo For each, find: 1. Pricing (actual prices, not just 'contact us') 2. Key features 3. G2 rating and top complaints 4. Recent product updates 5. Where MarketBetter wins I'll guide you as you research. "
With --interactive, you can steer:
"Dig deeper on Warmly's pricingβcheck G2 reviews for price mentions"
"Skip ZoomInfo, we have that already"
"Focus more on their visitor identification capabilities"
codex " I have a demo call with Sarah Chen, VP Sales at DataFlow Inc. Research: 1. Sarah's LinkedIn background 2. DataFlow Inc recent news/funding 3. Their current tech stack (from job postings) 4. Common challenges for companies their size 5. 3 personalized talking points Also draft 3 discovery questions specific to their situation. "
codex " Create an outline for a blog post: 'Why Intent Data Fails Without Action' Target keyword: intent data for sales Word count: 2000 words Audience: VP Sales, SDR Managers Include: - Compelling intro hook - 5-7 main sections with subheadings - Data points to research - CTA to MarketBetter demo Make it contrarianβmost content says intent data is magic. We say it's useless without the action layer. "
codex --include"contacts.csv"" Clean this contact list: 1. Standardize company names (remove Inc., LLC variants) 2. Fix obvious email typos (@gmial.com, etc.) 3. Parse full names into first/last 4. Flag likely duplicates 5. Validate phone number formats Output as cleaned CSV with a 'changes_made' column. "
# Save as ~/.codex/templates/competitor-analysis.txt cat<<'EOF'> ~/.codex/templates/competitor-analysis.txt Research {{COMPETITOR}} and provide: 1. Company overview (employees, funding, HQ) 2. Product positioning 3. Pricing structure 4. Key differentiators 5. Customer complaints (from G2/Capterra) 6. How we beat them Format as markdown with clear sections. EOF # Use the template codex --template competitor-analysis COMPETITOR=Warmly
# Pull from HubSpot, analyze with Codex, push back hubspot contacts list --limit100--format csv > leads.csv codex --include leads.csv "score these leads 1-100 based on fit for AI SDR tools" # Parse output and update HubSpot via API
# Bad: "analyze this data" # Good: codex "analyze this data and return JSON with fields: {insights: string[], recommendations: string[], priority: high|medium|low}"
The Codex CLI puts GPT-5.3's power directly in your terminal. For GTM teams, that means faster research, smarter analysis, and more personalized outreachβall from the command line.
Here's a brutal truth about B2B demos: 68% of prospects say demos are too generic. They sit through 45 minutes of features they don't care about, waiting for the one capability that actually solves their problem. Most never make it to that pointβthey've already mentally checked out.
The companies winning in 2026 don't run generic demos. They run shows that feel custom-built for each prospect. And with OpenAI's GPT-5.3 Codex (released February 5, 2026), building that personalization engine is now accessible to any GTM team.
This guide shows you how to use Codex's agentic capabilities to automatically generate personalized demo scripts, custom slide decks, and industry-specific talking pointsβall from your CRM data and meeting notes.
68% of buyers say demos don't address their specific needs
52% of prospects decide within the first 5 minutes if they'll buy
44% of buyers abandon vendors who can't explain relevance to their business
Personalized demos have a 45% higher close rate than generic ones
The problem isn't that AEs don't want to personalizeβit's that personalization takes time they don't have. Research the company, customize the slides, reorder features for relevance, find the right case study, rehearse the new flow... that's 1-2 hours of prep per demo.
Most reps are running 3-5 demos per day. The math doesn't work.
Use GPT-5.3 Codex to generate a personalized demo flow:
const{OpenAI}=require('openai'); const codex =newOpenAI({model:'gpt-5.3-codex'}); asyncfunctiongenerateDemoScript(context){ const response =await codex.chat.completions.create({ model:'gpt-5.3-codex', messages:[ { role:'system', content:`You are an expert sales demo strategist. Generate a personalized demo script that will resonate with this specific prospect. DEMO STRUCTURE: 1. Personalized Opening (2 min) - Reference their world 2. Pain Validation (3 min) - Confirm what you heard in discovery 3. Priority Feature #1 (10 min) - What they care most about 4. Priority Feature #2 (8 min) - Second most relevant 5. Integration/Workflow (5 min) - How it fits their stack 6. Social Proof (3 min) - Case study from similar company 7. Pricing Context (2 min) - Frame value, not cost 8. Next Steps (2 min) - Clear path forward OUTPUT FORMAT: - Include speaker notes for each section - Add talk tracks for common objections - Include specific data points to mention - Flag areas needing live customization` }, { role:'user', content:`Create a demo script for this opportunity: COMPANY: ${context.company.name} INDUSTRY: ${context.company.industry} SIZE: ${context.company.employeeCount} employees REVENUE: $${context.company.revenue}M DISCOVERY INSIGHTS: ${context.discoveryNotes} KEY PAIN POINTS IDENTIFIED: ${extractPainPoints(context.discoveryNotes).join('\n- ')} RECENT COMPANY NEWS: ${context.companyNews.map(n=>`- ${n.headline}`).join('\n')} RELEVANT CASE STUDY: ${JSON.stringify(context.caseStudies[0])} COMPETITORS MENTIONED: ${context.competitors.map(c=> c.name).join(', ')} Generate a complete, personalized demo script.` } ], max_tokens:4000, response_format:{type:'json_object'} }); returnJSON.parse(response.choices[0].message.content); }
Company: Precision Parts Inc. (450 employees, manufacturing)
Pain Points: "Reps don't know which accounts to prioritize" + "No visibility into what competitors are doing"
Current Tools: Salesforce + spreadsheets
Competitor Evaluating: ZoomInfo
Generated Demo Script (excerpt):
{ "opening":{ "duration":"2 minutes", "personalizedHook":"I saw Precision Parts just announced the expansion into aerospace components last monthβcongratulations. That kind of move into a new vertical is exactly where prioritization becomes critical. You mentioned your reps don't know which accounts to focus onβlet me show you how that changes today.", "speakerNotes":"Reference their Jan 15 press release. Don't dwellβuse as credibility builder that you did your homework." }, "painValidation":{ "duration":"3 minutes", "talkTrack":"In our discovery call, you mentioned two things that stuck with me: first, your 8-person sales team is essentially flying blind on account prioritization. Second, you're concerned about what competitors are doing in the aerospace space. Did I capture that right?", "transition":"Let me show you how we solve both of thoseβstarting with prioritization since you said that's the bigger fire right now." }, "featurePriority1":{ "feature":"Account Prioritization & ICP Scoring", "duration":"10 minutes", "customization":"Show manufacturing-specific signals: plant expansions, equipment purchases, regulatory filings", "industryLanguage":"Use terms: 'tier-1 supplier', 'OEM relationships', 'MRO contracts'", "relevantMetric":"Manufacturing companies see 34% faster deal cycles with intent-based prioritization" }, "featurePriority2":{ "feature":"Competitive Intelligence Dashboard", "duration":"8 minutes", "customization":"Pre-load demo environment with aerospace competitors they mentioned", "differentiator":"Unlike ZoomInfo (which they're evaluating), show real-time monitoring vs static database" }, "socialProof":{ "caseStudy":"Allied Manufacturing", "relevance":"Same size (500 emp), same industry, same Salesforce integration", "metric":"2.3x increase in qualified pipeline within 90 days", "quote":"'Finally, my team knows where to focus without me micromanaging.'" }, "objectionPrep":[ { "objection":"ZoomInfo has more data", "context":"They mentioned evaluating ZoomInfo", "response":"ZoomInfo has great contact dataβwe actually integrate with them. The difference is what you DO with that data. ZoomInfo tells you WHO exists. We tell you WHO to call and WHAT to say. For manufacturers entering new verticals like aerospace, it's the prioritization layer that moves the needle.", "proof":"Allied Manufacturing uses both. They said ZoomInfo fills the top of funnel, we tell them where to focus." } ] }
The math: If personalization increases your demo-to-close rate by 20% and you run 50 demos/month at $40K ACV, that's an additional $400K in ARR annually.
Building demo personalization is powerful, but it's just one piece of the puzzle. MarketBetter provides the complete AI-powered sales enablement stack:
Automated demo prep β Personalized scripts and decks generated before every call
Real-time battle cards β Competitor intel surfaced when you need it
CRM integration β Pulls from HubSpot/Salesforce, no manual context gathering
Meeting analysis β Learns from every demo to improve recommendations
The goal isn't to replace AEsβit's to give them superpowers. Let AI handle the personalization heavy-lifting so your team can focus on building relationships and closing deals.
Mid-turn steering is the differentiator β Real-time direction gives you control over AI output
ROI is measurable β 20% close rate improvement = significant revenue impact
Your demo is often the make-or-break moment in the sales cycle. Make sure every prospect feels like you built the whole product just for them. With Codex, you practically did.
You've heard OpenClaw can turn AI into your always-on sales assistant. You're intrigued by the $0 price tag versus $40K enterprise alternatives.
But you're staring at a GitHub page wondering: "How do I actually make this work for my sales team?"
This guide takes you from zero to a working AI SDR in under an hour. No engineering degree required. If you can copy-paste commands and edit a text file, you can do this.
β OpenClaw running on your machine (or a cloud server)
β AI assistant connected to WhatsApp or Slack
β Basic CRM integration with HubSpot
β Web search capability for prospect research
β Your first automated workflow (daily pipeline summary)
# SOUL.md - Your Sales AI You are a sales assistant for [Your Company]. ## Your Role - Help SDRs research prospects - Draft personalized outreach - Monitor pipeline and alert on important changes - Answer questions about our product and competitors ## Your Tone - Professional but not stiff - Conciseβyou value people's time - Confidentβyou know the product well - Helpfulβyou anticipate what's needed ## What You Know - Our product: [Brief description] - Our ICP: [Who we sell to] - Our competitors: [Main competitors] - Our differentiators: [What makes us unique] ## Rules - Never make up information about prospects - Always cite sources when researching - Ask clarifying questions if a request is ambiguous - Protect customer dataβnever share externally
OpenClaw uses cron jobs for scheduled tasks. Add to your config:
# ~/.openclaw/config.yaml cron: -name:"Daily Pipeline Summary" schedule: kind: cron expr:"0 9 * * *"# 9 AM daily tz:"America/Chicago"# Your timezone payload: kind: systemEvent text:| Generate a morning pipeline briefing: 1. Check HubSpot for deals closing this week 2. List any deals that haven't been updated in 7+ days 3. Highlight the top 3 deals by value 4. Send summary to the sales channel sessionTarget: main
cron: -name:"Stale Deal Alert" schedule: kind: cron expr:"0 10 * * 1-5"# 10 AM weekdays payload: kind: systemEvent text:| Check HubSpot for deals not updated in 7+ days. For each stale deal, send an alert with: - Deal name and value - Days since last activity - Suggested next action sessionTarget: main
MarketBetter builds on OpenClaw's foundation with pre-built GTM workflows, native HubSpot integration, and a complete SDR playbookβno setup required.
Book a Demo to see how we've productized the best of OpenClaw for sales teams.
You find out when a prospect emails: "Why are you so much more expensive than [Competitor]?"
By then, you've already lost deals. Your sales team is blindsided. Your positioning is outdated.
Pricing intelligence used to require expensive tools or manual monitoring. Now, AI agents can track competitor pricing 24/7 β and alert you the moment something changes.
Why Pricing Intelligence Matters More Than Everβ
The reality of B2B pricing:
62% of buyers compare pricing before talking to sales (Gartner)
78% expect price transparency on websites (McKinsey)
Pricing page changes often signal strategy shifts
Your prospects are comparing you to 3-5 alternatives
constanalyzePricingChange=async(competitor, previous, current)=>{ const prompt =` Analyze this competitor pricing change: Competitor: ${competitor.name} Previous pricing (captured ${previous.date}): ${JSON.stringify(previous.pricing,null,2)} Current pricing (captured ${current.date}): ${JSON.stringify(current.pricing,null,2)} Determine: 1. What specifically changed? 2. Significance level (major/moderate/minor) 3. Likely strategic intent 4. Impact on our competitive position 5. Recommended actions for our team Consider: - Price changes > 10% are significant - New tier additions signal market expansion - Feature changes indicate positioning shifts - "Contact us" changes often precede price increases `; returnawait claude.analyze(prompt); };
Sample output:
π¨ PRICING CHANGE DETECTED: Apollo ββββββββββββββββββββββββββββββββββββββ Change Type: MAJOR Detected: Feb 8, 2026 at 3:42 PM UTC What Changed: ββ Professional tier: $79 β $99/user/month (+25%) ββ Team tier: $39 β $49/user/month (+26%) ββ New "Starter" tier added at $29/user/month ββ Annual discount reduced from 25% to 20% Strategic Analysis: Apollo is shifting upmarket while adding an entry-level tier. The 25% price increase on Professional signals confidence in their enterprise positioning. The new Starter tier suggests they're also protecting against low-end competition (likely us and Seamless.AI). Impact on MarketBetter: - Our pricing now 15% lower than Apollo Professional (was 8%) - We're competing directly with their new Starter tier - Their annual discount cut improves our relative annual value Recommended Actions: 1. Update sales battlecards β highlight our pricing advantage 2. Consider marketing campaign around "Apollo raised prices" angle 3. Target Apollo Starter users for upgrade messaging 4. Brief SDR team on change before tomorrow's calls Confidence: 94%
Component 3: Automated Monitoring with OpenClawβ
constanalyzePricingTrends=async(competitor, history)=>{ const prompt =` Analyze pricing trends for ${competitor.name}: Historical pricing data (last 12 months): ${JSON.stringify(history,null,2)} Identify: 1. Overall price trajectory (increasing/stable/decreasing) 2. Pricing strategy pattern (premium/value/penetration) 3. Common timing of changes (quarterly? annual?) 4. Feature vs price trade-offs 5. Market positioning shifts 6. Predicted next move Context: - Industry average price increase: 5-8% annually - Funding rounds often precede price changes - Product launches typically add new tiers `; returnawait claude.analyze(prompt); };
Output example:
π PRICING TREND ANALYSIS: ZoomInfo (12-month view) βββββββββββββββββββββββββββββββββββββββββββββββββββ Trajectory: βοΈ INCREASING 12-month change: +18% across all tiers Pattern: Quarterly adjustments (Jan, Apr, Jul, Oct) Key Observations: 1. Removed lowest tier in Q2 2025 (forcing upgrades) 2. Added "Lite" tier in Q3 2025 (response to competition) 3. Enterprise pricing became "contact us" only 4. Credits system introduced to limit data access Strategy Assessment: ZoomInfo is executing a classic "land and expand" price strategy: - Entry tier for acquisition - Usage limits force upgrades - Enterprise opacity allows deal-specific pricing Predicted Next Move: Based on pattern, expect Q1 2026 adjustment: - 5-10% increase on mid-tier (Professional) - Possible new AI/enrichment add-on tier - Further credit restrictions Recommended Positioning: Position against their credit model: "Unlimited vs. ZoomInfo's metered access"
consthandlePricingMention=async(deal, competitorQuote)=>{ const currentPricing =awaitgetPricingSnapshot(competitorQuote.competitor); const ourPricing =awaitcalculateOurQuote(deal); const analysis =await claude.analyze(` Deal: ${deal.name} (${deal.value}) Competitor quote mentioned: - Vendor: ${competitorQuote.competitor} - Amount: ${competitorQuote.amount} - Terms: ${competitorQuote.terms} Our current pricing: ${JSON.stringify(ourPricing)} Latest competitor public pricing: ${JSON.stringify(currentPricing)} Determine: 1. Is their quote consistent with public pricing? 2. What discount % are they likely offering? 3. What's our competitive position? 4. Should we match, beat, or hold firm? 5. What value differentiation should we emphasize? `); return{ recommendation: analysis.recommendation, discountSuggestion: analysis.discountSuggestion, talkingPoints: analysis.talkingPoints, riskLevel: analysis.riskLevel }; };
constanalyzePricingWinLoss=async(deals)=>{ const prompt =` Analyze our win/loss data for pricing patterns: Last 100 deals: ${JSON.stringify(deals.map(d=>({ outcome: d.outcome, ourPrice: d.ourPrice, competitorPrice: d.competitorMentioned, competitor: d.competitor, lossReason: d.lossReason, dealSize: d.value, segment: d.segment })))} Find patterns: 1. Price sensitivity by segment 2. Competitors we lose to on price vs. value 3. Discount patterns in wins vs. losses 4. Optimal pricing by deal size 5. Feature gaps that justify price premium Actionable insights for sales and pricing strategy. `; returnawait claude.analyze(prompt); };
Output:
π° WIN/LOSS PRICING ANALYSIS ββββββββββββββββββββββββββββ Key Findings: 1. PRICE SENSITIVITY BY SEGMENT - SMB (<50 employees): HIGH sensitivity Lost 68% of deals where we were >20% more expensive - Mid-market (50-500): MODERATE sensitivity Won 55% even when 15% more expensive (value sold) - Enterprise (500+): LOW sensitivity Price mentioned in only 23% of losses 2. COMPETITOR-SPECIFIC PATTERNS - vs. Apollo: Lost 70% when price-focused; Won 80% when value-focused - vs. ZoomInfo: Price rarely competitive; Win on features - vs. Seamless.AI: Must be within 10% to compete 3. OPTIMAL DISCOUNT STRATEGY - SMB: Offer 15% discount proactively (win rate +34%) - Mid-market: Hold firm, discount only for annual (win rate same) - Enterprise: Discount range 10-25% acceptable 4. VALUE DIFFERENTIATION THAT JUSTIFIES PREMIUM - Playbook feature: +22% price tolerance - Visitor ID: +15% price tolerance - Integration depth: +18% price tolerance RECOMMENDATIONS: ββ Create SMB-specific pricing tier ββ Train SDRs on value selling for Apollo comparisons ββ Develop "Total Cost of Ownership" calculator ββ Document feature premium justifications
Your CRO asks: "Are we going to hit the number this month?"
You spend 4 hours pulling data from HubSpot, cross-referencing with finance, adjusting for pipeline weighting, and building a slide deck. By the time you present it, the data is 3 days old.
This is RevOps in 2025. It doesn't have to be RevOps in 2026.
With Claude Code, you can build a real-time revenue dashboard that:
Pulls live data from CRM, marketing, and finance systems
Automatically weights pipeline by historical close rates
Problem 1: Data silos
Pipeline is in HubSpot. Bookings are in the finance system. Marketing attribution is in Marketo. Usage data is in the product. Getting a complete picture requires manual assembly.
Problem 2: Stale data
Weekly pipeline reviews use data that's already a week old. Monthly board decks are historical artifacts by the time they're presented.
Problem 3: No intelligence
Dashboards show what happened, not what's likely to happen. They can't answer "should I be worried about this deal?"
Problem 4: Too many dashboards
HubSpot has reports. Tableau has dashboards. Looker has boards. Nobody knows which one is "the truth."
claude "Create a TypeScript module that: 1. Pulls deal data from HubSpot (all deals, all stages, with history) 2. Pulls revenue data from Stripe (MRR, ARR, churn, expansion) 3. Pulls campaign data from HubSpot Marketing (attribution, source) 4. Normalizes dates and amounts to consistent formats 5. Handles pagination and rate limiting 6. Stores in PostgreSQL with proper indexing Use environment variables for API keys. Include comprehensive error handling."
Claude's 200K context window means you can provide full API documentation and get back production-ready codeβnot snippets that need assembly.
The dashboard doesn't just show dataβit explains it:
// insights.ts const generateInsights =async(data:DashboardData):Promise<string[]>=>{ const prompt =` You are a RevOps analyst. Based on this data, provide 3-5 key insights that would be valuable for a CRO in their Monday morning review. Be specific. Use numbers. Flag concerns. Highlight wins. Data: - Target: $${data.currentMonth.target.toLocaleString()} - Closed: $${data.currentMonth.closed.toLocaleString()} (${(data.currentMonth.closed/ data.currentMonth.target*100).toFixed(0)}% of target) - Committed: $${data.currentMonth.committed.toLocaleString()} - High-risk deals: ${data.risks.filter(r => r.score>70).length} - Deals pushed this week: ${data.pushedDeals.length} - Win rate trend: ${data.trends.winRate.change>0?'up':'down'}${Math.abs(data.trends.winRate.change)}% Format as bullet points, no headers. `; const response =await claude.complete(prompt); return response.split('\n').filter(line => line.startsWith('-')|| line.startsWith('β’')); };
Example output:
β’ On track but tight: At 68% of target with 12 days left. Need $127K from committed pipeline that's currently weighted at $143K. No buffer.
β’ Acme Corp is the swing deal: $85K deal in Negotiation, but 23 days in stage (avg: 11). Risk score 78. Recommend: exec-to-exec call before Friday.
β’ Win rate improving: 34% this month vs 28% last month. Driven by better qualificationβMQL rejection rate up 15%.
β’ Pipeline generation concern: Only $340K created this month vs $520K target. Marketing sourced leads down 22%. Check campaign performance.
β’ 3 deals pushed close dates this week totaling $124K. Pattern: all had unrealistic close dates set during initial discovery. Consider discovery checklist update.
Think of sales process optimisation as a continuous tune-up for your sales engine. Itβs the practice of methodically refining your sales motion to cut out friction, automate the soul-crushing admin tasks, and free up your reps to do what they do best: sell.
Itβs about finding and fixing all the "leaks" in your sales pipeline so more deals close, and they close faster. The whole point is to build a repeatable, predictable system for bringing in revenue.
Picture your sales process as a high-pressure water pipeline. Ideally, every drop of water that goes in one endβevery single leadβcomes out the other as a signed deal. But let's be real, most sales pipelines are riddled with tiny leaks. These aren't dramatic pipe bursts; they're the slow, steady drips that silently drain your revenue potential day after day.
This is the central challenge staring down sales leaders right now. If you're seeing inconsistent rep performance, flat win rates, and a CRM that feels more like a graveyard than a goldmine, you've got a leaky pipeline. Sales process optimisation isn't about finding one massive crack; it's about systematically sealing up all the small, costly holes.
Too many teams run on what I call an ad-hoc sales process. Reps freestyle their outreach, managers have zero visibility into what's actually working, and CRM data is a chore nobody wants to do. The result? Chaos. Success is random, and scaling is a pipe dream.
An optimised sales process, on the other hand, is engineered for predictability. Itβs a clean, unified motion that the entire team understands and executes.
Letβs look at the difference on the ground:
The Unoptimised Process: Your reps burn hours every morning just figuring out who to call. They manually log activities (or forget to) and throw spaghetti at the wall to see which messaging sticks. The activity numbers look high, but the results are all over the map.
The Optimised Process: Your reps log in to a prioritized task list, automatically surfaced by real buyer intent signals. They fire off calls and emails from right inside the CRM, and every single touchpoint is logged for them. Their actions are targeted, efficient, andβmost importantlyβmeasurable.
Itβs the difference between leaving your team to figure it out alone and giving them a system that guides them to the most valuable action, every single time.
So, how do you start patching these leaks? First, you have to accept that optimisation isn't a one-and-done project. It's a continuous cycle of diagnosing bottlenecks, simplifying workflows, and using smart tech to automate the grunt work.
Actionable Step: Instead of just shouting "make more calls!" from the sales floor, implement a native CRM dialer. This one change eliminates clicks, automates activity logging, and gives each rep back hours of admin time every week. That's time they can spend purely on conversations that close deals.
This guide is your roadmap to finding those leaks and sealing them for good.
Before you can optimize anything, you have to play detective. Fixing a sales process isn't about throwing new software at the problem and hoping it sticks. It's about finding the exact points of frictionβthe spots where deals stall, reps get stuck, and revenue leaks out.
Think of it like a doctor. You wouldn't get a prescription without a diagnosis, right? The same goes for your sales engine. Guesswork and gut feelings won't cut it. You need to figure out precisely what's broken before you can start to fix it. That process always begins with listening.
The absolute best source of truth is your team on the front lines. They live and breathe the process every day and know exactly where the cracks are. Sit down with your SDRs, AEs, and managers to get a real, on-the-ground view of what's happening.
You can uncover a lot by asking a few targeted questions:
Task Prioritization: "Walk me through your morning. How do you decide who to call first?"
Outreach Effectiveness: "How long does it take you to personalize an email? Do you feel like your messages are actually landing?"
Data & CRM Hygiene: "Show me exactly how you log a call. How many clicks does it take? How much time does it eat up?"
Handoffs & Transitions: "What happens after you book a meeting? Describe the handoff to an AE. Where do things get dropped?"
Technology & Workflow: "How many tabs do you have open right now? What's your workflow for finding a lead and making that first call?"
Actionable Step: Don't just ask these questions in a meeting. Schedule a 30-minute "ride-along" with one of your reps. Ask them to share their screen and work as they normally would. The visual evidence of them toggling between 10 browser tabs to log a single call is more powerful than any verbal complaint.
This is the qualitative proof you need to build a case for change. For a deeper dive into structuring these stages, check out our guide on the B2B sales funnel.
This is precisely the kind of chaos that a tool like marketbetter.ai is designed to solve. Instead of leaving reps to guess, its AI-driven task engine turns buyer signals into a simple, prioritized to-do list.
That screenshot says it all. Reps know exactly what to do next, ensuring they're always working on the highest-value actions, not just the easiest ones.
Once you have those frontline stories, it's powerful to frame the problem by showing what "good" looks like. The difference between a broken process and an optimized one isn't subtleβitβs the difference between daily frustration and streamlined execution. The numbers don't lie: process-led teams see 25-30% higher win rates. Even better, teams with clear stage criteria forecast with a tight 10% variance, a world away from the 30-50% errors that plague disorganized teams. You can find more on these commercial excellence stats over at heimdallpartner.com.
A side-by-side comparison makes the value of change crystal clear to everyone, from leadership to the reps themselves.
A broken process forces reps to be administrators who occasionally sell. An optimised process empowers them to be sellers who barely notice the administration.
Hereβs a look at what separates a struggling sales process from a high-performing one. See where your team fits.
Broken vs Optimised Sales Process: A Side-by-Side Comparisonβ
This table highlights the common symptoms of an inefficient process versus the outcomes you can expect from a well-oiled machine. Itβs a great way to identify exactly where your team is on the spectrum.
Breakdown Area
Symptom in a Broken Process
Outcome in an Optimised Process
Lead Prioritization
Reps manually scan long lists, relying on gut feel to pick leads.
AI surfaces the top 5-10 accounts to contact based on intent data.
Outreach Quality
Generic, one-size-fits-all email templates get low reply rates.
AI-assisted outreach provides relevant talking points for every call/email.
CRM Data Entry
Activity logging is manual, inconsistent, and often forgotten.
Calls and emails are auto-logged from a native dialer inside the CRM.
Tech Stack Friction
Reps jump between 5+ tabs (CRM, Dialer, Email, LinkedIn).
All core actions (call, email, log) happen within a single CRM screen.
Manager Visibility
Coaching is based on incomplete data and anecdotal evidence.
Managers have clean activity data to coach on what actually drives results.
By diagnosing these specific symptoms, you move past the vague feeling that things are "broken" and get to the heart of what needs fixing. This clarity is the essential first step in any successful sales process optimisation effort.
Once youβve figured out where the friction is, the next step is turning those insights into action. A real sales process optimisation effort isnβt a chaotic scramble; it's a structured journey.
This five-phase roadmap is a battle-tested framework for getting from diagnosis to a high-performance sales engine, ensuring you build momentum without completely overwhelming your team.
Think of it like building a house. You donβt just start throwing up walls. You need a blueprint (Diagnose & Map), a simplified architectural plan (Design & Simplify), the right power tools (Instrument & Automate), skilled workers who know how to use them (Train & Enable), and a system to check your work (Measure & Iterate).
The foundation of any good plan is understanding exactly where youβre starting from. This phase is all about documenting your current stateβnot what you think it is, or what it says in a dusty playbook, but how your reps actually work day-to-day.
Your goal is to create a visual map of your entire sales process, from the first touchpoint with a lead all the way to a closed deal. Interview your SDRs and AEs. Watch them work. Get them to share their screen and show you their typical workflow. Count the clicks it takes just to log a call or find a piece of info.
Actionable Step: Use a simple flowchart tool (like Miro or Lucidchart) to map out every single action and decision point. Color-code the steps that cause the most friction in red. This visual makes the pain points impossible to ignore.
Common Pitfall: Assuming the process documented in your wiki is the one being followed. The truth is almost always messier.
This exercise will shine a bright light on the bottlenecks you found earlier, showing you precisely where the friction lives.
The visual below outlines a simple diagnostic flow to help you find, validate, and understand these sticking points.
This simple three-step diagnosticβfinding friction, talking to your team, and comparing it to what's really happeningβis the core of any effective initial audit.
Okay, now that you have a map of the messy reality, itβs time to design the future. The guiding principle here is ruthless simplification. Every single step in your new process must have a clear purpose and add tangible value. If it doesnβt, cut it.
For instance, if your current process forces reps to manually copy-paste call notes from a separate dialer into the CRM, your new design should kill that step completely. The goal is a workflow so intuitive that your reps want to follow it because it makes their lives easier, not harder.
Just look at the difference in mindset when designing a process:
Flawed Design Approach
Effective Design Approach
Adding more steps to account for every edge case.
Focusing on the 80% of common scenarios first.
Building the process around the technology.
Choosing technology that serves the ideal process.
Creating complex rules nobody will ever remember.
Designing clear, simple exit criteria for each stage.
The best sales process optimisation isn't about adding complexity; it's about systematically removing it.
With a clean, simplified process designed, you can now pick the tools to bring it to life. This is where you instrument your workflow with tech that automates the low-value grunt work and guides reps to the next best action. The key is choosing tools that slot seamlessly into the core workflow, not ones that create more silos.
For example, instead of a standalone dialer living in a separate browser tab, implement a native dialer that lets reps click-to-call directly from a Salesforce or HubSpot record. This single change automates activity logging, kills tab-switching, and keeps your data clean.
Your tech stack should enforce the process, not fight it. The right tools make the path of least resistance the path of greatest productivity.
A brilliant process is completely useless if nobody knows how to use it. This phase is all about enablement, and itβs way more than a one-hour training session. Itβs about providing ongoing support, clear documentation, and practical coaching.
Actionable Step: Create short, digestible training materials for the new workflow. Record 2-minute screen-share videos of your top performers executing the new process and build a library of best-practice examples. This is far more effective than a 50-page PDF nobody will read.
Most importantly, managers have to be equipped to coach to the new process, using the clean data from your new tech stack to spot performance gaps and help reps improve.
Finally, remember that sales process optimisation is not a one-and-done project. It's a continuous loop of improvement. In this final phase, you establish the key performance indicators (KPIs) that tell you if your changes are actually working.
Track metrics directly tied to the bottlenecks you pinpointed back in Phase 1. For example:
If low activity was the problem: Measure daily dials and emails per rep.
If outreach was ineffective: Track reply rates and meetings booked.
If ramp time was too long: Measure how quickly new hires hit their quota.
Actionable Step: Schedule a recurring 30-minute "Process Check-in" every two weeks with your sales leaders. Review a dashboard with these core KPIs. If a metric is trending the wrong way, that becomes the single focus for the next two weeks.
This iterative approach ensures your sales engine is always being tuned for peak performance, adapting as your market and team evolve.
Building a Tech Stack for Execution-First Optimisationβ
A slick process design is just a theory until you have technology that actually drives action. The right tech stack doesn't just track what your sales reps do; it actively pushes them to execute the right actions, faster and more consistently. That's the whole game in sales process optimisation.
But building this stack always leads to a big question: Do you bet on a massive, all-in-one platform or assemble a team of specialized, best-in-class tools? Each path has its pros and cons.
Choosing your tech isn't just about features; itβs about what fits your team's real-world workflow. The debate between consolidated platforms and specialized tools is at the heart of this decision.
Approach
Key Advantage
Major Drawback
All-in-One Platforms
A single, unified system promises seamless data flow and one interface to learn.
Often a "jack of all trades, master of none." Core execution tools like dialers can feel like an afterthought.
Specialized Tools
Best-in-class performance for specific jobs, giving you deeper capabilities for things like dialing or email.
Can create data silos and force reps to constantly toggle between apps, killing their momentum.
The real answer isn't always one or the other. Itβs about finding technology that creates an "execution layer" on top of your CRM, bridging the gap between your strategy on a whiteboard and a rep's daily grind.
Plenty of sales engagement platforms are great at sequencing and reporting. But they often fall short on the most critical piece of the puzzle: helping reps execute their daily tasks with speed and precision. This is exactly the gap that tools like marketbetter.ai were built to fill.
Instead of ripping out your whole stack, an execution-first tool makes it better by zeroing in on the moment of action. It answers the question every rep asks themselves each morning: "Okay, what should I do right now?"
An execution-first tech stack transforms your CRM from a passive database into an active, intelligent work surface that guides reps to their next revenue-generating activity.
This shift in focus makes a massive difference. By 2026, AI-driven sales process optimisation is expected to deliver 20-35% productivity surges and 15-25% higher win rates. It's also projected to slash time reps spend on data entry by 65% while boosting time spent talking to customers by 48%. These aren't just small tweaks; they're fundamental changes to how sales teams operate.
An execution-first platform like marketbetter.ai uses an AI-driven Task Engine to turn buyer signalsβlike website visits, content downloads, or ICP triggersβinto a simple, prioritized to-do list right inside Salesforce or HubSpot. It instantly solves the "what's next?" problem for your reps. If you want to dive deeper, we have a detailed breakdown on how to improve sales rep productivity.
Hereβs how it works in the real world:
Prioritization: The AI Task Engine analyzes all the signals and surfaces the highest-value tasks for each rep, completely eliminating the guesswork.
Execution: Reps use native dialers and AI-assisted email workflows directly within their CRM screen. No more switching tabs or manually logging every little thing.
Data Hygiene: Every call, email, and outcome is automatically logged back to the right record. Your CRM data stays pristine, and your reporting becomes dead-on accurate.
For teams looking to integrate the most advanced AI, understanding the capabilities of Large Language Models (LLMs) is a game-changer. This is the technology that powers the intelligent workflows that turn a standard CRM into a dynamic selling machine. By focusing on this execution layer, you get dramatically more value from the tools you already have and build a sales process that actually performs.
Optimising your sales process feels good, but feelings don't show up on a balance sheet. To justify the effort and truly understand whatβs working, you have to look past feel-good numbers like "total calls" and zero in on the key performance indicators (KPIs) that directly impact revenue.
If you can't measure it, you can't manage it. It's an old saying because it's true.
Effective measurement is the difference between guessing which changes moved the needle and knowing for sure. This demands clean, reliable dataβa near-impossibility when your reps are stuck manually logging every single activity. Tools that automatically capture every call and email are the foundation for any real reporting, giving leaders a clear view into what actually drives results.
To get the full picture, you need to track metrics across three distinct but connected categories. This framework helps you see not just how much work is being done, but how well itβs being done and how efficiently your team is operating.
Activity KPIs: This is the raw output. Are your reps putting in the effort?
Effectiveness KPIs: This measures the quality of that output. Is the effort turning into real conversations and moving deals forward?
Efficiency KPIs: This tracks the resources needed to get results. How quickly and cost-effectively is your team performing?
Let's break down the must-have metrics in each category and see what they look like in a broken process versus an optimised one.
Activity metrics are the starting point, but theyβre useless without the context of effectiveness. A rep making 100 generic calls with a 1% connect rate is getting smoked by a rep making 50 targeted calls with a 10% connect rate. This is where optimisation proves its worth.
Hereβs a quick comparison:
KPI Category
Metric to Track
In a Broken Process
In an Optimised Process
Activity
Daily Actions Per Rep
High volume of untargeted dials and emails with no real strategy.
Consistent, targeted actions focused on high-intent leads surfaced by an AI engine.
Effectiveness
Connect & Reply Rates
Abysmal rates thanks to generic messaging and calling at the worst possible times.
Higher rates driven by AI-assisted, relevant outreach and signal-based timing.
Effectiveness
Stage Conversion Rate
Deals get stuck in early stages; conversion is a random, unpredictable mess.
Smooth, predictable progression from one stage to the next with clear exit criteria.
Effectiveness
Sales Cycle Length
Deals drag on for months, often ending in a frustrating "no decision."
The time from first touch to close is measurably shorter and more consistent across the team.
By tracking both sets of KPIs, you can diagnose problems with surgical precision. High activity but low effectiveness points to a messaging or targeting problem. Low activity across the board might signal a workflow or motivation issue. Understanding how to properly connect actions to outcomes is a key step, which you can learn more about in our guide to attribution modeling.
Efficiency metrics are where the ROI of sales process optimisation really comes alive. They measure the "cost" of your sales efforts in time and resources, showing just how much faster your team can generate revenue.
An optimised process doesn't just make reps work harder; it makes their hard work count for more by slashing wasted effort and accelerating their path to productivity.
Think about these critical efficiency indicators:
Time Spent on Admin: In a clunky, unoptimised world, reps can burn up to a third of their day on manual data entry. With auto-logging tools, this drops to practically zero, freeing up hours for actual selling.
SDR Ramp Time: This is how long it takes a new hire to become fully productive. A streamlined process with clear guidance and AI assistance can literally cut this time in half.
The impact here is massive. Recent sales productivity stats show that only 43.5% of reps hit their quota in early 2024. Yet, a whopping 94% of businesses report productivity boosts after implementing a CRM-centric process, seeing gains like 29% in sales and 34% in overall productivity. The data is clear: fixing the process pays off.
Turning a good strategy into a great reality is where most plans fall apart. Think of this checklist as the bridge from concept to execution. Itβs your step-by-step guide for taking all the ideas weβve covered and making them realβthe pre-flight check before your sales engine really takes off.
Before you touch a single workflow, you need to lay the groundwork. Skipping this is like building a house on sand. Getting the initial audit and stakeholder alignment right isnβt just about getting permission; itβs about gathering the street-level intel you need to make smart calls.
Secure Stakeholder Buy-In: Get your leadership and reps on board by showing them the "why." Use the numbers from your diagnosis phase to put the cost of doing nothing next to the ROI of getting this right.
Conduct a Full Process Audit: Map out your actual sales process, from the first touch to the final signature. The key here is to interview your team to find the real friction points, not just the ones you see from a spreadsheet.
Define Clear Sales Stage Exit Criteria: Kill the ambiguity. What specific, verifiable action proves an opportunity is ready to move from "Discovery" to "Proposal"? Write it down.
The whole point of this first phase is clarity. A fuzzy starting point guarantees a messy journey and a disappointing finish. Nail this, and everything else gets easier.
With a solid plan in hand, itβs time to build, train, and launch. This is where you bring your new process to life with the right tech and give your team the skills to run with it. Itβs all about choosing tools that solve real problems and creating resources that people will actually use.
Select and Configure Your Tech Stack: Pick tools that fix the headaches you uncovered in your audit. Go for an execution-first setupβthings like a native CRM dialer or automated task lists that make a rep's day genuinely easier.
Develop Training Materials and Playbooks: Nobody will follow a process they donβt understand. Create short, simple guides and quick video tutorials for the new workflow. Make it impossible to ignore.
Establish a Continuous Feedback Loop: Set up regular check-ins with the sales team to hear what theyβre experiencing. Compare their stories to the hard data from your KPIs. This gives you the full picture of whatβs working and what needs tweaking.
Here are a few common questions that come up when leaders start digging into sales process optimization.
Where Do I Even Start with Optimizing My Sales Process?β
The first step, always, is diagnosis. Before you change a single thing, you need a crystal-clear picture of what's happening right now.
That means mapping your current process from the first touch to a closed deal. Talk to your repsβfind out where they get stuck and what admin work eats their day. Then, dig into your CRM data to find the exact stages where deals slow down or die. Anything else is just guesswork.
Think of AI as a force multiplier for your SDRs. It automates the high-effort, low-return tasks that burn them out. For example, AI can instantly prioritize who to call based on real buying signals, draft a surprisingly good first-touch email, or pull up the perfect talking points mid-conversation.
It gets your reps out of the data-mining business and into the relationship-building business. They spend their time on actual conversations, not digging through CRM records. It also means new hires get up to speed in weeks, not months.
Can I Optimize My Process if My CRM Data Is a Mess?β
Yes, and you absolutely should. In fact, a messy CRM is usually a giant red flag that your process needs optimization. A core goal here is to fix your data hygiene by making it dead simple for reps to log their activity correctly.
Start small. Implement a tool with automatic call and email logging, like a native dialer that lives inside your CRM. The moment itβs easier to do the right thing than the wrong thing, your data quality will improve. Better data leads to better insights, which fuels the next round of optimization.
Stop letting a messy CRM and manual grunt work kill your pipeline. marketbetter.ai turns rep guesswork into a prioritized to-do list, with AI-assisted outreach and a native dialer right inside Salesforce and HubSpot.
"How do I know if my SDRs are actually performing well?"
Every sales leader asks this question. And most answer it with vibes instead of data.
You compare reps against each other (which creates toxic competition). You look at quota attainment (which ignores activity quality). You check dashboards that show what happened but not why.
What if you could automatically benchmark every rep against:
Their own historical performance
Team averages
Industry standards
Top performer patterns
That's what we're building today using GPT-5.3 Codex.
Most SDR benchmarking is broken because it measures the wrong things:
Problem 1: Vanity metrics
Tracking "emails sent" rewards volume over quality. A rep sending 200 garbage emails looks better than one sending 50 personalized messages that book meetings.
Problem 2: Outcome bias
Some reps get better territories or warmer leads. Comparing raw meeting counts ignores the inputs.
Problem 3: Lag indicators only
By the time quota attainment shows a problem, it's too late. You need leading indicators.
Problem 4: Manual analysis
RevOps pulls reports quarterly, builds a deck, presents to leadership. By then the data is stale.
First, use Codex to build a data extraction pipeline:
codex "Create a Node.js script that: 1. Pulls activity data from HubSpot for all sales users 2. Categorizes activities by type (email, call, meeting, LinkedIn) 3. Calculates daily/weekly/monthly aggregates per rep 4. Stores results in a PostgreSQL database Include error handling and rate limiting for the HubSpot API."
Codex's mid-turn steering is perfect hereβyou can refine the output as it generates:
"Actually, also include email open rates and click rates from the engagement data."
// insights.js - AI-generated analysis constgenerateRepInsights=async(repId)=>{ const benchmarks =awaitcalculateBenchmarks(repId); const patterns =awaitanalyzeTopPerformers(); const repBehavior =awaitgetRepBehaviorData(repId); const prompt =` Analyze this SDR's performance and provide 3 specific, actionable recommendations. Rep Benchmarks: ${JSON.stringify(benchmarks)} Top Performer Patterns: ${JSON.stringify(patterns)} Rep Behavior Data: ${JSON.stringify(repBehavior)} Format as: 1. [Specific Issue]: [Concrete Action] Be direct. No fluff. `; const insights =await claude.complete(prompt); return insights; };
Example output:
Insights for Marcus Chen - Feb 2026
Email timing is off: You send most emails at 2pm when open rates are 12%. Top performers send 7-9am when rates hit 28%. Action: Reschedule email sends in your sequence settings.
Sequence too long: Your 12-step sequence has 4% completion. Team average 7-step sequence has 34% completion. Prospects ghost after step 6. Action: Condense to 7 touches, make final touch a breakup email.
Call talk ratio inverted: You talk 68% of calls. Top performers listen 65% of calls. Prospects who talk more are 2x more likely to book. Action: Ask more open-ended questions, especially about current process.
A Slack alert isn't just informationβit's a jumping off point:
π¨ DEAL ALERT: Acme Corp - $48K Contact went dark (9 days no engagement) Champion: Sarah Chen (VP Sales) Last activity: Email opened Feb 2, no reply Deal stage: Negotiation (was: Verbal commit) Actions: [π Call Now] [π§ Draft Email] [π View in HubSpot]
# openclaw agent config agents: deal_watcher: name:"Deal Watcher" schedule: realtime: - hubspot.deal.updated - hubspot.contact.updated - hubspot.email.sent cron: -"*/15 * * * *"# Every 15 min for batch checks task:| For each CRM event: 1. Check against all alert rules 2. If triggered, format and send to appropriate Slack channel 3. If dmOwner, also DM the deal owner 4. Log alert to tracking table (avoid duplicates) For batch checks (cron): 1. Query deals with no activity > threshold 2. Group by owner 3. Send summary to #pipeline-health
Your biggest deals don't close in the CRM. They close in the conversationsβthe Slack messages, the quick syncs, the "hey, can you jump on this call?" moments.
But most sales teams still treat Slack as an afterthought. Deal updates live in CRM fields that nobody checks. Critical signals get buried in email threads. By the time someone notices a deal is at risk, it's too late.
What if Slack became your deal cockpit instead of your distraction?
With OpenClaw, you can build intelligent deal rooms that:
Week 1: AE creates opportunity in CRM. Mentions it in #sales channel. "Got a good one, Acme Corp, $80K potential."
Week 3: AE needs SE help. Slacks the SE directly. SE asks 15 questions that are already in the CRM. AE spends 20 minutes catching them up.
Week 5: Prospect goes quiet. AE mentions in standup. Manager asks for context. AE gives verbal update that's different from CRM. Nobody writes it down.
Week 7: Champion reaches out to support with a question. Support doesn't know there's an active deal. Responds with generic answer. AE finds out 3 days later.
Week 9: Deal slips. Everyone asks "what happened?" Nobody has the full picture.
from anthropic import Anthropic claude = Anthropic() ALERT_ANALYSIS_PROMPT =""" You are a sales deal analyst monitoring deal health. Given the recent activity and deal context, determine if an alert should be sent to the deal room. Alert ONLY for significant events: - Champion goes dark (no engagement in 7+ days after regular contact) - New stakeholder enters (especially C-level or procurement) - Competitor mentioned - Timeline changes (close date moved) - Negative sentiment in communications - Unusual engagement spike (could indicate urgency or comparison shopping) - Risk factors emerging DO NOT alert for: - Normal activity cadence - Minor email opens - Routine meetings scheduled - Small CRM updates If alerting, provide: 1. Alert severity (π΄ critical, π‘ warning, π’ positive) 2. Clear headline 3. Context (what happened) 4. Recommended action 5. Who should be tagged """ defanalyze_deal_event(deal:dict, event:dict)->dict|None: """Determine if event warrants an alert""" recent_context = get_deal_recent_context(deal["id"]) prompt =f""" Deal context: {json.dumps(deal, indent=2)} Recent history: {json.dumps(recent_context, indent=2)} New event: {json.dumps(event, indent=2)} Should this trigger an alert? If yes, format the alert. If no, respond with "NO_ALERT". """ response = claude.messages.create( model="claude-sonnet-4-20250514", max_tokens=500, system=ALERT_ANALYSIS_PROMPT, messages=[{"role":"user","content": prompt}] ) result = response.content[0].text if"NO_ALERT"in result: returnNone return parse_alert(result) defpost_alert(channel_id:str, alert:dict): """Post alert to deal room""" severity_emoji ={ "critical":"π΄", "warning":"π‘", "positive":"π’" } emoji = severity_emoji.get(alert["severity"],"βΉοΈ") message =f""" {emoji} *{alert['headline']}* {alert['context']} *Recommended Action:* {alert['action']} """ # Tag relevant people if alert.get("tag_users"): mentions =" ".join([f"<@{uid}>"for uid in alert["tag_users"]]) message =f"{mentions}\n\n{message}" slack.chat_postMessage( channel=channel_id, text=message )
# openclaw.yaml agents: deal-room-manager: prompt:| You manage Slack deal rooms for the sales team. Your responsibilities: 1. Create deal rooms when deals qualify (>$50K or Stage 2+) 2. Post initial context and overview 3. Monitor for alert-worthy events 4. Post daily summaries for active deals 5. Respond to status requests Be helpful but not noisy. Only alert when it matters. memory:true triggers: -event: deal_stage_change -event: deal_amount_change -event: email_received -event: meeting_completed -event: support_ticket_created deal-room-responder: prompt:| When someone asks a question in a deal room, provide helpful answers using the deal context. Be concise and actionable. triggers: -event: slack_mention filter: channel.startsWith("deal-") cron: daily-summaries: schedule:"0 8 * * 1-5"# 8am weekdays action: run_daily_deal_summaries
You've tried ChatGPT for sales emails. The output sounds like... ChatGPT. Professional. Pleasant. Forgettable.
Your prospects can smell AI-generated content from a mile away. And they delete it.
The secret isn't better prompts for generic AIβit's training AI that understands YOUR business.
This guide shows you how to build custom AI agents that know your ICP, speak in your voice, understand your competitive landscape, and produce content that actually sounds like your team wrote it.
1. ROLE β Who the AI is acting as 2. CONTEXT β Background about your business 3. TASK β What you want it to do 4. EXAMPLES β What good output looks like 5. CONSTRAINTS β What to avoid 6. FORMAT β How to structure output
## ROLE You are a senior SDR at MarketBetter, a B2B sales intelligence platform. ## CONTEXT Our ICP: - VP/Director of Sales at B2B SaaS companies, 50-500 employees - Pain: SDR efficiency, lead quality, personalizing outbound at scale - Our differentiation: We don't just show WHO to callβwe tell them WHAT to do Competitors: Apollo (no workflow), 6sense (enterprise pricing), ZoomInfo (data only) Our voice: Direct, helpful, slightly irreverent. No corporate speak. We sound like a smart friend who happens to know a lot about sales. ## TASK Write a cold email to a prospect based on the research provided. ## EXAMPLES OF OUR VOICE Good: "Your SDRs are drowning in data. Here's a life raft." Good: "Most sales tools show you a firehose. We hand you a glass of water." Bad: "I hope this email finds you well." Bad: "We are a leading provider of sales intelligence solutions." ## CONSTRAINTS - Never start with "I hope this email finds you well" - Never use "leverage," "synergy," or "circle back" - Maximum 125 words - Must include specific detail from prospect research - End with a question, not a meeting request ## FORMAT Subject line, then body. No salutation ("Hi Name" is fine but not required).
# agents/sdr_agent.yaml name:"SDR Assistant" emoji:"π―" soul:| You are the SDR Assistant for MarketBetter. ## Your Personality - Direct and efficient (SDRs are busy) - Helpful but not sycophantic - Knowledgeable about our ICP and process ## What You Know -Our ICP: VP/Director Sales at B2B SaaS, 50-500 employees - Our competitors and how we beat them - Our sales process and stage definitions - Our messaging and voice guidelines ## What You Do - Write emails in our voice - Prep accounts for calls - Handle objection scripting - Research prospects ## What You Don't Do - Book meetings directly (point to Calendly) - Access competitor pricing (it changes) - Make promises about features memory: # Load company context - /knowledge/icp.md - /knowledge/competitors.md - /knowledge/voice-guidelines.md - /knowledge/objection-playbook.md
# /knowledge/icp.md ## Ideal Customer Profile ### Primary Persona: VP/Director of Sales - Company size: 50-500 employees - Industry: B2B SaaS, Tech, IoT - Team structure: Has SDR team (3-15 SDRs) - Tech stack: HubSpot or Salesforce, uses 3+ sales tools ### Buying Triggers - Just raised Series A/B (scaling sales team) - Hired new sales leadership (mandate to improve) - SDR turnover problems (efficiency is suffering) - Competitor using us (fear of falling behind) ### Common Objections 1. "We already have Apollo/ZoomInfo" β They give you data. We give you a playbook. 2. "Our current process works" β What's your SDR ramp time? What's their daily call-to-meeting ratio? 3. "Don't have budget" β Typically saves 30% of SDR time. What's that worth annually?
// training_examples.jsonl {"messages":[ {"role":"system","content":"You write cold emails for MarketBetter."}, {"role":"user","content":"Write email for: Sarah Chen, VP Sales, Acme Corp, 200 employees, just raised Series B"}, {"role":"assistant","content":"Subject: Series B β what's next for sales?\n\nSarah,\n\nSaw the funding newsβcongrats. The next 6 months are make-or-break for scaling the team.\n\nMost companies at your stage drown their new SDRs in data. \"Here's 10,000 leads, figure it out.\"\n\nThe ones that win give them a playbook. Who to call, what to say, why today.\n\nThat's what we built. Happy to show you what top-performing SDR teams at your stage actually do differently.\n\nβ [Name]"} ]} {"messages":[ {"role":"system","content":"You write cold emails for MarketBetter."}, {"role":"user","content":"Write email for: James Wilson, Director Sales Ops, TechCorp, competitor using Apollo"}, {"role":"assistant","content":"Subject: Apollo gives you data. Now what?\n\nJames,\n\nAppollo's solid for contact data. But your SDRs still wake up wondering: who do I actually call first? What do I say?\n\nThat's the gap we fill. Not more dataβa daily playbook. \"Call Sarah at Acme, mention their recent Series B, ask about scaling challenges.\"\n\nSDRs spend time selling, not researching.\n\n30 min to show you how it works with your current Apollo setup?\n\nβ [Name]"} ]}
Diverse examples
Include different scenarios, personas, objections.
Negative examples
Show what NOT to do:
{"messages":[ {"role":"user","content":"Write email..."}, {"role":"assistant","content":"I hope this email finds you well! I wanted to reach out because..."} ],"weight":-1}// Negative weight = avoid this pattern
Regular retraining
Your voice evolves. Retrain quarterly with fresh examples.
// Weekly analysis const commonEdits =analyzeEdits(logs); // Example output: // "Users removed 'hope this helps' in 67% of emails" // "Users shortened first paragraph in 45% of cases" // "Users added specific data point in 78% of cases" // Update prompt based on patterns