ChatPilot
AI Classifier
Signal scoring, Claude Haiku classification, and tenant rate limits.
The classifier combines rule-based signals with a Claude Haiku prompt. Signals include intent keywords, sentiment, escalation phrases, and silence duration.
Scores drive state transitions and lead tiers such as HOT, WARM, and COLD. tenants.llm_rpm_limit caps classifier calls per tenant; after the cap, fall back to rules and conservative handoff.
const classifierInput = {tenantConfig, conversationState, recentMessages, contactMetadata};