# The B2B Sales Outreach & Lead Triage Playbook
### A Technical Blueprint for Outbound Sales Scraping and Immediate Inbound Conversion

---

## 1. Introduction: Sales Velocity in the Automation Age

For high-value B2B SMBs, sales success is dictated by two simple factors:
*   **Outbound Relevance**: How deeply researched and personalized is your outbound cold messaging?
*   **Inbound Responsiveness**: How quickly do you react when a hot lead contacts your business?

Generic bulk cold email lists get your domain blacklisted, and manual SDR prospecting wastes countless hours. On the inbound side, response times are equally critical: replying to an inbound request after 5 minutes drops conversion rates by over 800%.

This playbook provides actionable technical guidelines to build a dual outbound prospecting and inbound triage system. It leverage scrapers, language models, and cloud webhooks to maximize outbound conversion and automate sub-5 minute inbound response times.

---

## 2. Outbound Prospecting: Semantic Scraper Architecture

Traditional outreach uses purchased database lists that are stale and impersonal. Our automated outbound pipeline scrapes prospect profiles, intent signals, and recent announcements in real time to synthesize highly targeted outreach drafts.

### Scraper Pipeline Data Flow
```
[Identify Target Lead] ──► [Run Node/Puppeteer Scraper]
                                   │
                                   ▼
[Synthesize Outreach Pitch] ◄── [Extract intent from podcasts/articles]
        │
        ▼
[Human SDR Approval Dashboard] ──► [Push to HubSpot/Outreach Sequence]
```

### Technical Blueprint: Cold Outreach Prompt Schema

To generate bespoke drafts, feed scraped data into a highly tuned language model prompt:

```yaml
system_prompt: |
  You are an elite, highly professional B2B Sales Development Representative (SDR). 
  Your goal is to draft a short, highly personalized cold email to the target prospect.
  Adhere to these rules strictly:
  1. Do not use generic, excited greeting phrases (e.g., "I hope this email finds you well!").
  2. Ground your offer entirely in the prospect's actual podcast quote or recent announcement.
  3. Keep the entire email under 120 words.
  4. Pitch our custom AI automation services by referencing "Qill", our voice-matching writing partner that recovers 5 to 8 hours weekly for creative teams.
```

---

## 3. Inbound Triage: Sub-5 Minute Response System

When a prospect submits an inquiry, an automated pipeline parses their request, scores their value, alerts the team via Slack, and drafts a contextual, custom reply in your CRM database.

### Core Technical Implementation: Email Intake Flow

```js
// Example serverless cloud function (Node.js) to classify and triage inbound emails
import { Client } from '@hubspot/api-client';
import OpenAI from 'openai';

const openai = new OpenAI();
const hubspot = new Client({ accessToken: process.env.HUBSPOT_TOKEN });

export async function handler(req, res) {
  const { emailBody, senderName, senderEmail, senderCompany } = req.body;

  try {
    // 1. Context-aware intent classification and lead scoring
    const response = await openai.chat.completions.create({
      model: 'gpt-4o',
      response_format: { type: 'json_object' },
      messages: [
        {
          role: 'system',
          content: 'Classify inbound leads. Return a JSON object with keys: "intent" (Sales / Support / Noise), "urgency" (High / Med / Low), and "commercialValueScore" (1 to 10 based on budget/size).'
        },
        {
          role: 'user',
          content: `Lead Content: Name: ${senderName}, Company: ${senderCompany}, Email Body: ${emailBody}`
        }
      ]
    });

    const classification = JSON.parse(response.choices[0].message.content);

    // 2. Synchronize to CRM (HubSpot)
    const contact = await hubspot.crm.contacts.basicApi.create({
      properties: {
        email: senderEmail,
        firstname: senderName,
        company: senderCompany,
        lead_intent: classification.intent,
        lead_urgency: classification.urgency,
        lead_value_score: String(classification.commercialValueScore)
      }
    });

    // 3. Dispatch Instant Notification (Slack Webhook)
    if (classification.urgency === 'High') {
      await fetch(process.env.SLACK_WEBHOOK_URL, {
        method: 'POST',
        headers: { 'Content-Type': 'application/json' },
        body: JSON.stringify({
          text: `🚨 *High Priority Lead Alert* from ${senderName} (${senderCompany})!\n*Intent*: ${classification.intent}\n*Value Score*: ${classification.commercialValueScore}/10\nHubSpot ID: ${contact.id}`
        })
      });
    }

    return res.status(200).json({ success: true, contactId: contact.id });
  } catch (err) {
    console.error('Lead triage pipeline error:', err);
    return res.status(500).json({ error: 'Triage failed' });
  }
}
```

---

## 4. Outreach & Lead Triage Technical Checklist

Deploy these components to achieve comprehensive sales velocity:

| Phase | Action Item | Target Technology |
| :--- | :--- | :--- |
| **Outbound** | Target Scrapers | Write Puppeteer/Cheerio scripts targeted at LinkedIn, Crunchbase, or Spotify Podcast feeds. |
| **Outbound** | Synthesizer Engine | Build OpenAI/Anthropic API connectors to draft personalized emails based on scraped text. |
| **Inbound** | Lead Catch Webhooks | Connect web form builders (like Webflow or custom React forms) directly to an API gateway. |
| **Inbound** | CRM Synchronization | Map incoming JSON objects directly to contact properties inside HubSpot or Salesforce APIs. |
| **Inbound** | Alert Architecture | Set up immediate Slack or MS Teams channel notifications using system incoming webhooks. |
