{"data":{"slug":"github-claude-office-skills-skills-lead-routing-8513c1877ed1","title":"Intelligent Lead Routing and Assignment","summary":"Assign leads to sales teams based on company size, industry, and location using AI-powered scoring, territory mapping, and round-robin distribution.","url":"https:\/\/skillshunter.net\/skills\/github-claude-office-skills-skills-lead-routing-8513c1877ed1","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/github-claude-office-skills-skills-lead-routing-8513c1877ed1","markdown_url":"https:\/\/skillshunter.net\/skills\/github-claude-office-skills-skills-lead-routing-8513c1877ed1.md","download_url":"https:\/\/skillshunter.net\/skills\/github-claude-office-skills-skills-lead-routing-8513c1877ed1\/download","category":{"slug":"software-development","name":"Software & Development"},"editor_note":"Ensure the CRM system (e.g., HubSpot or Salesforce) is configured with the necessary tools (hubspot_assign_owner, salesforce_route) and that the enrichment_api is accessible for lead data collection.","instructions":"---\nname: lead-routing\ndescription: \"Intelligent lead assignment and routing - AI-powered scoring, territory mapping, round-robin distribution, and workload balancing\"\nversion: \"1.0.0\"\nauthor: claude-office-skills\nlicense: MIT\n\ncategory: sales\ntags:\n  - lead-management\n  - sales-automation\n  - routing\n  - assignment\n  - crm\ndepartment: Sales\n\nmodels:\n  recommended:\n    - claude-sonnet-4\n    - claude-opus-4\n\nmcp:\n  server: crm-mcp\n  tools:\n    - hubspot_assign_owner\n    - salesforce_route\n    - enrichment_api\n\ncapabilities:\n  - lead_scoring\n  - territory_routing\n  - round_robin\n  - workload_balancing\n  - sla_management\n\nlanguages:\n  - en\n  - zh\n\nrelated_skills:\n  - crm-automation\n  - sales-pipeline\n  - saas-metrics\n---\n\n# Lead Routing\n\nIntelligent lead assignment and routing system with AI-powered scoring, territory mapping, round-robin distribution, and workload balancing. Based on n8n's HubSpot\/Salesforce automation templates.\n\n## Overview\n\nThis skill covers:\n- Lead scoring and qualification\n- Territory-based routing\n- Round-robin distribution\n- Workload balancing\n- SLA monitoring and escalation\n\n---\n\n## Routing Strategies\n\n### 1. Rule-Based Routing\n\n```yaml\nrouting_rules:\n  # By Company Size\n  - name: \"Enterprise Routing\"\n    condition:\n      company_size: \">= 500\"\n      OR:\n        annual_revenue: \">= $10M\"\n    assign_to: \"Enterprise Team\"\n    priority: high\n    sla: 1_hour\n    \n  - name: \"Mid-Market Routing\"\n    condition:\n      company_size: \"100-499\"\n    assign_to: \"Mid-Market Team\"\n    priority: medium\n    sla: 4_hours\n    \n  - name: \"SMB Routing\"\n    condition:\n      company_size: \"< 100\"\n    assign_to: \"SMB Team\"\n    priority: standard\n    sla: 24_hours\n\n  # By Geography\n  - name: \"APAC Routing\"\n    condition:\n      country: [\"China\", \"Japan\", \"Singapore\", \"Australia\"]\n    assign_to: \"APAC Team\"\n    timezone_aware: true\n    \n  - name: \"EMEA Routing\"\n    condition:\n      country: [\"UK\", \"Germany\", \"France\", \"Netherlands\"]\n    assign_to: \"EMEA Team\"\n    \n  - name: \"Americas Routing\"\n    condition:\n      country: [\"US\", \"Canada\", \"Brazil\", \"Mexico\"]\n    assign_to: \"Americas Team\"\n\n  # By Industry\n  - name: \"Healthcare Specialist\"\n    condition:\n      industry: [\"Healthcare\", \"Pharmaceuticals\", \"Medical Devices\"]\n    assign_to: \"Healthcare Sales\"\n    \n  - name: \"Finance Specialist\"\n    condition:\n      industry: [\"Banking\", \"Insurance\", \"FinTech\"]\n    assign_to: \"Financial Services Sales\"\n```\n\n---\n\n### 2. Round-Robin Distribution\n\n```yaml\nround_robin_config:\n  team: \"SMB Sales\"\n  members:\n    - name: Alice\n      capacity: 100%\n      max_leads_per_day: 20\n      \n    - name: Bob\n      capacity: 100%\n      max_leads_per_day: 20\n      \n    - name: Carol\n      capacity: 50%  # Part-time\n      max_leads_per_day: 10\n      \n  rules:\n    distribution: weighted  # or equal\n    skip_if:\n      - out_of_office: true\n      - at_capacity: true\n    reset: daily\n    \n  tracking:\n    log_assignments: true\n    balance_check: hourly\n```\n\n**Distribution Algorithm**:\n```\n\u250c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510\n\u2502                   ROUND-ROBIN LOGIC                         \u2502\n\u251c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2524\n\u2502                                                             \u2502\n\u2502  1. New lead arrives                                        \u2502\n\u2502                    \u2502                                        \u2502\n\u2502                    \u25bc                                        \u2502\n\u2502  2. Check team availability                                 \u2502\n\u2502     - Filter out: OOO, at capacity, off-hours              \u2502\n\u2502                    \u2502                                        \u2502\n\u2502                    \u25bc                                        \u2502\n\u2502  3. Calculate weighted position                             \u2502\n\u2502     - Current assignments today                             \u2502\n\u2502     - Capacity percentage                                   \u2502\n\u2502     - Last assignment time                                  \u2502\n\u2502                    \u2502                                        \u2502\n\u2502                    \u25bc                                        \u2502\n\u2502  4. Assign to rep with lowest weighted score               \u2502\n\u2502                    \u2502                                        \u2502\n\u2502                    \u25bc                                        \u2502\n\u2502  5. Update tracking, notify rep                            \u2502\n\u2502                                                             \u2502\n\u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518\n```\n\n---\n\n### 3. AI-Powered Lead Scoring\n\n```yaml\nai_scoring:\n  provider: openai\n  model: gpt-4\n  \n  input_factors:\n    demographic:\n      - company_size\n      - industry\n      - job_title\n      - location\n      \n    firmographic:\n      - annual_revenue\n      - employee_count\n      - funding_stage\n      - tech_stack\n      \n    behavioral:\n      - pages_visited\n      - content_downloads\n      - email_engagement\n      - demo_requests\n      \n    fit_score:\n      - icp_match_percentage\n      - competitor_usage\n      - budget_authority\n      \n  scoring_prompt: |\n    Score this lead from 0-100 based on:\n    \n    Our ICP (Ideal Customer Profile):\n    - B2B SaaS companies\n    - 50-500 employees\n    - Series A or later\n    - Using {competitor} or {similar_tool}\n    \n    Lead Data:\n    {lead_data}\n    \n    Return JSON:\n    {\n      \"score\": 0-100,\n      \"fit_score\": 0-100,\n      \"intent_score\": 0-100,\n      \"tier\": \"A\/B\/C\/D\",\n      \"reasoning\": \"...\",\n      \"recommended_action\": \"...\",\n      \"routing_suggestion\": \"...\"\n    }\n\n  tier_thresholds:\n    A: 80-100  # Hot lead, immediate follow-up\n    B: 60-79   # Qualified, standard follow-up\n    C: 40-59   # Nurture, marketing sequence\n    D: 0-39    # Low priority, long-term nurture\n```\n\n---\n\n### 4. Territory Mapping\n\n```yaml\nterritory_map:\n  north_america:\n    west:\n      states: [CA, WA, OR, NV, AZ, CO, UT]\n      owner: \"West Coast Team\"\n      reps: [Alice, Bob]\n      \n    central:\n      states: [TX, IL, OH, MI, MN, WI]\n      owner: \"Central Team\"\n      reps: [Carol, David]\n      \n    east:\n      states: [NY, MA, PA, FL, GA, NC]\n      owner: \"East Coast Team\"\n      reps: [Eve, Frank]\n      \n  international:\n    emea:\n      countries: [UK, DE, FR, NL, ES, IT]\n      owner: \"EMEA Team\"\n      timezone: \"Europe\/London\"\n      \n    apac:\n      countries: [JP, SG, AU, KR, IN]\n      owner: \"APAC Team\"\n      timezone: \"Asia\/Tokyo\"\n\n  overlap_resolution:\n    # When lead matches multiple territories\n    priority_order:\n      1: named_account_owner  # If account already has owner\n      2: industry_specialist  # If industry requires specialist\n      3: geography           # Default to geography\n```\n\n---\n\n### 5. Workload Balancing\n\n```yaml\nworkload_balancer:\n  check_frequency: hourly\n  \n  metrics_tracked:\n    - current_open_leads\n    - leads_assigned_today\n    - leads_assigned_this_week\n    - average_response_time\n    - conversion_rate\n    \n  balance_rules:\n    max_variance: 20%  # Max difference between reps\n    \n    rebalance_trigger:\n      - variance > max_variance\n      - rep_at_capacity\n      - rep_underperforming\n      \n    rebalance_actions:\n      - pause_assignments: for_overloaded_rep\n      - increase_weight: for_underloaded_rep\n      - notify_manager: when_rebalancing\n      \n  capacity_management:\n    per_rep:\n      max_open_leads: 50\n      max_new_per_day: 15\n      max_new_per_week: 60\n      \n    team_level:\n      overflow_queue: true\n      overflow_notify: sales_manager\n      escalation_threshold: 2_hours\n```\n\n---\n\n## Workflow Implementation\n\n### Complete Lead Routing Workflow\n\n```yaml\nworkflow: \"Intelligent Lead Router\"\n\ntrigger:\n  - type: hubspot_contact_created\n  - type: form_submission\n  - type: api_webhook\n\nsteps:\n  1. enrich_lead:\n      providers: [clearbit, zoominfo]\n      fields:\n        - company_size\n        - industry\n        - revenue\n        - location\n        - linkedin_url\n        \n  2. score_lead:\n      method: ai_scoring\n      store_result:\n        hubspot_property: lead_score\n        \n  3. determine_tier:\n      A_tier: score >= 80\n      B_tier: score >= 60\n      C_tier: score >= 40\n      D_tier: score < 40\n      \n  4. apply_routing_rules:\n      sequence:\n        - check: named_account_owner\n        - check: industry_specialist\n        - check: territory_match\n        - check: round_robin_availability\n        \n  5. assign_owner:\n      hubspot:\n        update_contact:\n          hubspot_owner_id: \"{selected_owner_id}\"\n          lead_status: \"New\"\n          lead_tier: \"{tier}\"\n          routing_reason: \"{routing_logic}\"\n          \n  6. create_task:\n      hubspot:\n        type: CALL\n        subject: \"Follow up: New {tier} lead - {company}\"\n        due_date: \"{sla_deadline}\"\n        priority: \"{priority_based_on_tier}\"\n        notes: |\n          Lead Score: {score}\n          Routing Reason: {routing_reason}\n          Key Info: {summary}\n          \n  7. notify_owner:\n      slack_dm:\n        message: |\n          \ud83c\udfaf *New Lead Assigned*\n          \n          **{contact_name}** at **{company}**\n          Score: {score} ({tier} Tier)\n          \n          \ud83d\udcde SLA: Respond within {sla_time}\n          \n          Quick actions:\n          \u2022 [View in HubSpot]({hubspot_link})\n          \u2022 [LinkedIn]({linkedin_url})\n          \u2022 [Schedule Call]({calendly_link})\n          \n  8. start_sla_timer:\n      deadline: \"{sla_deadline}\"\n      escalation_path:\n        - 50%_elapsed: reminder_to_owner\n        - 80%_elapsed: notify_manager\n        - 100%_elapsed: reassign + alert\n```\n\n---\n\n## SLA Management\n\n```yaml\nsla_tiers:\n  tier_a:\n    response_time: 1_hour\n    escalation_path:\n      - 30min: slack_reminder\n      - 45min: manager_alert\n      - 60min: auto_reassign\n      \n  tier_b:\n    response_time: 4_hours\n    escalation_path:\n      - 2h: slack_reminder\n      - 3h: manager_alert\n      - 4h: auto_reassign\n      \n  tier_c:\n    response_time: 24_hours\n    escalation_path:\n      - 12h: slack_reminder\n      - 20h: manager_alert\n      - 24h: move_to_queue\n\nsla_reporting:\n  metrics:\n    - response_time_avg\n    - response_time_p90\n    - sla_compliance_rate\n    - escalation_count\n    \n  report_frequency: weekly\n  recipients: [sales_manager, ops_manager]\n```\n\n---\n\n## Reporting Dashboard\n\n```markdown\n# Lead Routing Report - {Week}\n\n## Distribution Summary\n| Rep | Assigned | Responded | Avg Response | SLA Met |\n|-----|----------|-----------|--------------|---------|\n| Alice | 45 | 43 | 1.2h | 96% |\n| Bob | 42 | 40 | 1.8h | 90% |\n| Carol | 38 | 38 | 0.8h | 100% |\n| **Total** | **125** | **121** | **1.3h** | **95%** |\n\n## By Tier\n| Tier | Count | Avg Score | Converted | Conv Rate |\n|------|-------|-----------|-----------|-----------|\n| A | 25 | 87 | 12 | 48% |\n| B | 45 | 68 | 15 | 33% |\n| C | 35 | 52 | 5 | 14% |\n| D | 20 | 28 | 1 | 5% |\n\n## Routing Breakdown\n- By Territory: 60%\n- By Industry: 25%\n- Round Robin: 15%\n\n## Issues\n- 3 leads waited >SLA (reassigned)\n- Alice at 95% capacity (monitor)\n- No coverage for Healthcare vertical (gap)\n\n## Recommendations\n1. Hire Healthcare specialist\n2. Increase Bob's training (response time)\n3. Adjust A-tier threshold to 85 (too many false positives)\n```\n\n---\n\n## Output Example\n\n**Request**: \"Route this lead: John Smith, CTO at TechCorp (500 employees, SF, SaaS)\"\n\n**Output**:\n\n```markdown\n# Lead Routing Decision\n\n## Lead Profile\n- **Name**: John Smith\n- **Title**: CTO\n- **Company**: TechCorp\n- **Size**: 500 employees\n- **Location**: San Francisco, CA\n- **Industry**: SaaS\n\n## AI Scoring\n```json\n{\n  \"score\": 85,\n  \"fit_score\": 90,\n  \"intent_score\": 80,\n  \"tier\": \"A\",\n  \"reasoning\": \"Strong ICP fit - CTO at 500-person SaaS company in our target market. High authority buyer.\",\n  \"recommended_action\": \"Immediate outreach - high-value prospect\"\n}\n```\n\n## Routing Decision\n\n**Assigned to**: Alice Chen (Enterprise West)\n\n**Routing Logic**:\n1. \u2705 Territory: San Francisco \u2192 West Coast\n2. \u2705 Company Size: 500 \u2192 Enterprise tier\n3. \u2705 Industry: SaaS \u2192 No specialist needed\n4. \u2705 Availability: Alice has capacity (18\/20 today)\n\n## Action Items Created\n\n1. **Task**: Follow up call\n   - Due: 1 hour (Tier A SLA)\n   - Priority: High\n\n2. **Slack Notification**: Sent to Alice\n\n3. **SLA Timer**: Started (1h countdown)\n\n## Recommended Outreach\n\n```\nSubject: Quick question about {pain_point} at TechCorp\n\nHi John,\n\nNoticed TechCorp is scaling fast - congrats on the growth. \n\nCTOs at similar SaaS companies often tell us {common_challenge}. \n\nWould a 15-min call this week make sense to see if we can help?\n\n[Calendly Link]\n```\n```\n\n---\n\n*Lead Routing Skill - Part of Claude Office Skills*\n","use_cases":["Route new leads to the appropriate sales team based on company size, industry, and location.","Balance workload across sales reps using round-robin distribution.","Score leads using AI and assign them based on their qualification level."],"limitations":[],"compatibility":[],"setup_tip":null,"sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/claude-office-skills\/skills\/blob\/9c4c7d5cd2813a8936bf2c9fdb174ea883b85a11\/lead-routing\/SKILL.md","source_commit":"9c4c7d5cd2813a8936bf2c9fdb174ea883b85a11","license":"MIT","version":null,"listing_approved_at":"2026-11-22","created_at":"2026-11-21T14:17:41.000000Z","updated_at":"2026-11-22T11:18:09.000000Z","seo_title":"Intelligent Lead Routing for Sales Teams","seo_description":"Automate lead scoring, territory routing, and workload balancing with AI-powered lead assignment.","seo_keywords":["lead routing","sales automation","lead scoring","territory routing","round-robin distribution"]}}