Skip to content
Notifications
Clear all

Tutorial: Setting up baseline metrics for a new chatbot feature

2 Posts
2 Users
0 Reactions
1 Views
(@integration_tester_mike)
Estimable Member
Joined: 3 months ago
Posts: 113
Topic starter   [#4463]

Launching a new conversational AI feature without a robust measurement framework is, in my professional opinion, akin to deploying a middleware layer without any logging or monitoring. You're operating blind. The initial setup of your key performance indicators (KPIs) is critical, as it establishes the baseline against which all future iterations, optimizations, and scaling decisions will be made.

Based on extensive work integrating chatbots with CRM and marketing automation platforms, I advocate for a three-tiered metric structure from day one. These should be captured via your chatbot platform's native analytics, supplemented by webhook events to your data warehouse or analytics tool for a unified view.

**1. User Engagement & Conversation Health**
* **Session Volume & User Count:** Raw adoption. Track unique users and total sessions. Segment by entry point (e.g., website page, help center link).
* **Messages per Session:** A primary indicator of conversation depth. A very low average may signal immediate resolution or immediate user bounce.
* **Conversation Length (in time):** Correlates with complexity. Useful for capacity planning.
* **Fallback Rate / Escalation Rate:** The percentage of user utterances where the AI failed to provide a relevant answer (triggering a fallback message) or where the user requested a human agent. This is your most direct signal of NLU and knowledge base gaps.

**2. Task Success & Quality**
* **Goal Completion Rate (GCR):** This requires you to define and tag key successful outcomes (e.g., 'FAQ answered', 'demo scheduled', 'ticket created'). This is the ultimate quality metric.
* **User Sentiment (Post-Session):** Implement a simple thumbs-up/thumbs-down prompt at the end of key flows. Aggregate scores provide a directional sentiment baseline.
* **API Action Success Rate:** For any chatbot actions that call backend APIs (e.g., fetching account data, creating a ticket), log the success/failure of those calls separately. A failure here is a system integration issue, not an AI issue.

**3. Operational & Technical Performance**
* **Latency (Time-to-First-Token / Total Response Time):** User experience is paramount. Establish acceptable thresholds (e.g., < 1.5 seconds for TFTT).
* **Cost per Session:** If using a paid LLM API, calculate your average token usage and cost per session from the start. This is essential for forecasting.

To make this operational, you must instrument your chatbot to emit events. Below is a simplified example of a webhook payload you might configure from Freeplay (or a similar platform) to be sent to a monitoring service like Datadog or an internal endpoint. This creates a single source of truth.

```json
{
"session_id": "session_abc123",
"user_id": "user_456",
"timestamp": "2024-05-15T10:30:00Z",
"metrics": {
"message_count": 8,
"session_duration_seconds": 45,
"fallback_triggered": false,
"goal_completed": "faq_resolved",
"sentiment_feedback": "positive",
"api_calls": [
{
"endpoint": " https://api.yourcrm.com/ticket",
"status": 201,
"duration_ms": 320
}
],
"llm_usage": {
"prompt_tokens": 120,
"completion_tokens": 85
}
}
}
```

The next step is to create a dashboard that aggregates these metrics daily, allowing you to observe trends. Pay particular attention to the correlation between a rising fallback rate and a declining goal completion rate—it's a clear sign your knowledge base requires expansion or refinement. Remember, this baseline isn't static; it's the foundation for A/B testing new prompts, models, or workflows.

- Mike


- Mike


   
Quote
(@crm_pragmatist)
Estimable Member
Joined: 2 months ago
Posts: 98
 

You're spot on about the three-tiered structure and especially capturing fallback rates from day one. That's the number that's saved my team from wasting cycles on vanity metrics.

Where I'd add a hard emphasis: you *must* correlate fallbacks and escalations directly with the user intent or query that triggered them. The raw rate is useless. You need to know if 80% of your escalations are coming from people asking "where's my invoice?" because your billing system integration is broken, versus general "contact support" requests.

Without that intent mapping, you're just tracking failure volume, not diagnosing the cause. The baseline then becomes a true performance benchmark, not just a dashboard decoration.



   
ReplyQuote