Install
openclaw skills install @ncreighton/micro-moment-intent-classifierClassify customer micro-moments into Buy Now, Research, Frustration, Advocacy, or Churn Risk with confidence scores. Use when the user needs real-time intent detection, personalized next actions, or audience segmentation from support tickets, DMs, and comments.
openclaw skills install @ncreighton/micro-moment-intent-classifierThe Micro-Moment Intent Classifier is a real-time AI skill that analyzes customer interactions—support tickets, Slack DMs, form submissions, comments, and emails—to instantly classify intent into 5 actionable buckets with confidence scores and recommended next actions.
Why This Matters: Customer intent shifts moment-to-moment. A frustrated user in a support ticket isn't ready for upselling; a research-phase prospect needs education, not a sales call. This skill bridges the gap between raw customer data and intelligent routing, enabling personalized workflows that convert, retain, and delight.
Primary Use Cases:
Integrations & Platforms: Works seamlessly with Slack, WordPress, HubSpot, Zendesk, Intercom, Email inboxes, Google Sheets, n8n, Make, Zapier, and custom APIs.
Analyze this support ticket and classify the customer's micro-moment intent:
Ticket: "Your product is missing the bulk export feature I need.
I've been looking for solutions for 3 weeks and I'm considering
switching to your competitor if this isn't added by month-end."
Return: intent classification with confidence scores and recommended action.
Expected Output:
Batch classify these 3 Twitter replies to our latest product announcement:
1. "Just launched! Excited to try this. Quick Q—does it integrate with Salesforce?"
2. "Another feature nobody asked for. Still waiting for you to fix the API docs."
3. "This is amazing! I'm definitely buying an enterprise plan for my team."
Provide intent scores, segments, and nurture recommendations for each.
Expected Output:
| Comment | Primary Intent | Confidence | Recommended Action |
|---|---|---|---|
| Comment 1 | Research | 81% | Send integration guide + demo video |
| Comment 2 | Frustration | 88% | Route to Support Lead + bug tracker |
| Comment 3 | Buy Now | 94% | Trigger sales team notification + enterprise onboarding |
Monitor this Slack DM from a key customer and classify intent:
"Hey! We're rolling out to 50 new teams next quarter and need
custom SSO + audit logs. What's the fastest path to get this set up?"
Include: intent bucket, urgency level, deal size indicator, and
suggested response playbook.
Expected Output:
The skill categorizes every customer interaction into one of these micro-moments:
| Intent Bucket | Definition | Confidence Score | Typical Signals |
|---|---|---|---|
| Buy Now | Ready to purchase or upgrade | 0–100% | "pricing," "demo," "buy," urgent language |
| Research | Evaluating options, gathering info | 0–100% | "does it support," "vs.", "alternatives," questions |
| Frustration | Upset, experiencing friction | 0–100% | "not working," "failed," "disappointed," complaints |
| Advocacy | Promoting product, love signaling | 0–100% | "amazing," "recommend," sharing wins, testimonials |
| Churn Risk | Considering leaving/switching | 0–100% | "competitor," "canceling," "better options," deadline threats |
How It Works:
Automatically suggests playbooks tailored to detected intent:
Each classification includes:
# Required
export OPENAI_API_KEY="sk-..." # OpenAI GPT-4 Turbo or better
# Optional
export CONFIDENCE_THRESHOLD="0.65" # Minimum confidence to auto-action
export INCLUDE_REASONING="true" # Return explanation text
export MAX_BATCH_SIZE="100" # Batch processing limit
export CONTEXT_LOOKBACK_DAYS="90" # Historical context window
export OPENAI_API_KEY="your-key-here"
Classify this: "Love your product! Just referred my entire team."
{
"input_text": "We need SSO and audit logs by EOQ for compliance. Can we make this happen?",
"timestamp": "2024-01-15T14:32:00Z",
"primary_intent": "Buy Now",
"intent_scores": {
"buy_now": 0.89,
"research": 0.34,
"frustration": 0.08,
"advocacy": 0.12,
"churn_risk": 0.15
},
"confidence": 0.89,
"recommended_action": "Enterprise Sales Fast-Track",
"playbook": "Schedule 15-min call with Solutions Architect within 4 hours",
"key_signals": ["compliance", "EOQ deadline", "specific features"],
"reasoning": "Customer specified exact features + hard deadline = purchase intent",
"secondary_intent": "Research",
"urgency_level": "High"
}
timestamp,channel,customer_id,text_preview,primary_intent,confidence,secondary_intent,recommended_action
2024-01-15T14:15:00Z,slack,cust_001,"Quick question about...",Research,0.78,Buy Now,Send technical docs + demo
2024-01-15T14:22:00Z,email,cust_002,"Your API is broken",Frustration,0.92,,Escalate to support lead
2024-01-15T14:31:00Z,twitter,cust_003,"Amazing product! Just told...",Advocacy,0.95,,Feature in case study
Today's Micro-Moment Breakdown (47 interactions):
Buy Now (8 customers) — 17% → Auto-route to sales
Research (18 customers) — 38% → Send nurture drip
Advocacy (7 customers) — 15% → Launch referral outreach
Frustration (9 customers) — 19% → Support escalation
Churn Risk (5 customers) — 11% → Retention squad alert
Recommended Revenue Impact: +$156K (enterprise deals) + $34K (upsells)
Retention Saves: $78K (5 customers at risk, intervention possible)
Combine classification with customer lifetime value data:
Don't ignore the second-highest score. A customer might be:
Log misclassifications to a Slack channel daily. Over time, refine prompts or swap to custom fine-tuning model.
Pair intent classification with sentiment (positive/negative/neutral) for richer routing:
Once you know intent, test 2–3 response templates:
Connect outputs to a live dashboard (Google Sheets, Tableau, Metabase) showing:
✅ Classify intent from text interactions
✅ Suggest next actions based on detected signals
✅ Return confidence scores for human review
✅ Handle multiple languages
✅ Provide explainability reasoning
❌ Make final decisions → Always flag low-confidence classifications for human review (< 65%)
❌ Automatically send emails/messages → Returns recommendations only; humans control outreach
❌ Guarantee perfect accuracy → Depends on input quality; ambiguous text may score evenly across buckets
❌ Access customer data without consent → Requires explicit permission to analyze; doesn't store or log data (unless configured)
❌ Override business logic → Recommendations are suggestions, not rules; your playbooks take precedence
❌ Detect sarcasm 100% → Sarcasm and irony may be misclassified; review high-confidence satire flagged by human reviewers
Context Dependency: Intent classification is strongest with 100+ characters of context. Very short messages ("Yes!" or "When?") may score evenly.
Language Bias: Model trained primarily on English SaaS interactions. Non-English text or industry-specific jargon may be misclassified.
API Rate Limits: OpenAI has throttling; batch processing may queue during peak usage.
Cost: ~$0.01–0.05 per classification depending on text length; budget $500–2000/month for 100K+ classifications.
Freshness: Model has a knowledge cutoff; very recent product names or memes may not be recognized.
A: Input text was too ambiguous or contradictory. Add more context:
A: No. Put it in a manual review queue. Examples of ambiguous cases:
A: This is common with formal procurement language. Try rephrasing your context or add customer history (e.g., "This customer has been in our sales pipeline for 6 months"). Consider logging this as feedback to improve future classifications.
A: Tighten the threshold. In configuration, set:
CHURN_RISK_THRESHOLD="0.75" # Require 75%+ confidence vs. default 65%
Or review the key signals detected—you may need to exclude common red herrings in your industry.
A: Yes. Specify in your request:
Language: Spanish
Classify this: "Me encanta vuestro producto pero necesitaré SSO para mi empresa."
Note: Confidence may be slightly lower (3–5%) for non-English text. German and French perform best; other languages may need custom tuning.
A: Use a Slack bot + webhook: