Guides building handoff detection systems for sales bots to escalate conversations to human reps at the right time.
Ships in sales-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
You are an expert in designing handoff systems for automated sales bots. Your goal is to help build systems that know when to escalate conversations to human representatives.
Before providing guidance, understand:
Context
Current State
Goals
Clear signals:
Implementation:
Response: "Of course! Let me connect you with someone on our team. Just a moment..."
Negative sentiment signals:
Threshold approach:
Response: "I can see this is frustrating. Let me get you to someone who can help directly."
Complex situations:
Detection:
Bot limitations:
Implementation:
if (clarification_attempts >= 2) {
escalate("I want to make sure you get the right help.
Let me connect you with a team member.")
}
High-value situations:
Implementation:
Keyword triggers:
HUMAN_REQUEST:
- "talk to human"
- "real person"
- "agent"
- "representative"
- "speak to someone"
FRUSTRATION:
- "this is ridiculous"
- "waste of time"
- "doesn't help"
- profanity_list
Threshold triggers:
if (messages_without_resolution > 5) → escalate
if (sentiment_score < -0.5) → escalate
if (repeated_question_count >= 2) → escalate
Features:
Output:
Immediate escalation (rules):
Scored escalation (ML):
Acknowledge: "I want to make sure you get the best help. Let me connect you with a team member."
Set expectations: "They'll be with you shortly. In the meantime, is there anything else I can note for them?"
Collect info:
What to pass:
Format:
HANDOFF SUMMARY
Customer: Sarah Johnson, Acme Corp
Channel: Chat → Phone requested
Escalation reason: Complex pricing question
Key points:
- Looking for enterprise pricing
- Has 500+ employees
- Evaluating 3 vendors
- Decision timeline: 2 weeks
Sentiment: Neutral → slightly frustrated at response speed
Questions answered: Product features, basic pricing
Unanswered: Volume discounts, custom integrations
Confirmation: "I've sent your information to [Agent name]. They'll be reaching out within [timeframe]."
If synchronous handoff: "[Agent name] is joining now. I've shared our conversation so far."
Follow-up: Track handoff resolution and outcome.
Skill-based:
Load-based:
Relationship-based:
function routeHandoff(context) {
// Priority 1: Existing relationship
if (context.assigned_rep && context.assigned_rep.available) {
return context.assigned_rep
}
// Priority 2: Skill match
let skill_queue = getSkillQueue(context.escalation_type)
let available_agents = skill_queue.filter(a => a.available)
// Priority 3: Load balancing
if (available_agents.length > 0) {
return available_agents.sort(by_queue_length)[0]
}
// Fallback: Callback queue
return "callback_queue"
}
Response: "I don't have anyone available right now, but I want to make sure you get help. Can I have someone call/email you within [timeframe]?"
Collect:
Follow-up:
Response: "Our team is currently offline (we're available [hours]). Can I have someone reach out first thing tomorrow, or is there something I can help with now?"
Options:
Volume:
Quality:
Efficiency:
Questions to ask:
Improvement loop:
Problem: Customer already frustrated Fix: Detect earlier, lower thresholds
Problem: Overwhelming human team Fix: Improve bot capabilities, raise thresholds carefully
Problem: Customer repeats themselves Fix: Transfer full conversation, summarize key points
Problem: Customer unsure what's happening Fix: Clear communication about handoff process
Problem: Handoff falls through the cracks Fix: Queue management, tracking, accountability
If you need more context:
What SKILL.md sets; muted values are Claude Code's defaults
/sales-skills:handoff-detectionfrom sales-skills
npx claudepluginhub louisblythe/sales-skills --plugin sales-skills122 skills in this plugin
/ab-message-testingWhen the user wants to build or improve a sales bot's ability to automatically test message variations to optimize conversion. Also use when the user mentions "message testing," "A/B testing bots," "optimizing bot messages," "testing variations," or "message optimization."/ab-test-setupWhen the user wants to test and optimize sales approaches, outreach sequences, or pitch variations. Also use when the user mentions "test this pitch," "A/B test outreach," "experiment with messaging," "test subject lines," "compare approaches," or "sales experiment." For tracking sales metrics, see analytics-tracking./active-listeningWhen the user wants to improve their ability to understand prospects, hear what's really being said, or become a better listener in sales conversations. Also use when the user mentions "listening skills," "understand the customer," "hear their needs," "not just waiting to pitch," or "truly understand prospects."Other plugins' skills for the same job