Monitoring & Analytics
Effective monitoring helps you track the health and performance of the E-commerce Chatbot API integration.
📊 Analytics Data
The /chat/analytics
endpoint provides insights including :
- Number of messages processed per day
- Most common user queries
- Average response time
- Error rates (timeouts, inappropriate responses)
🔎 Sample Analytics Response
{
"date": "2025-06-10",
"total_messages": 1250,
"most_common_queries": [
"return order",
"track shipment",
"product recommendation"
],
"average_response_time_ms": 150,
"error_rate_percent": 0.5
}
📈 Best Practices
- Regularly poll
/chat/analytics
to monitor chatbot usage. - Set alerts on error rates exceeding thresholds.
- Use analytics to identify trends and optimize chatbot responses.
- Combine analytics with webhook events for real-time insights.
⚙️ Monitoring Tools Integration
You can integrate chatbot metrics into your existing monitoring dashboards using :
- Prometheus & Grafana
- Datadog
- New Relic
via custom scripts that pull /chat/analytics
data.
📌 Contact Support
For assistance setting up monitoring or custom reports, contact our developer support team.