Works with the AI Agents you already use
AI Chatbot Conversation Log Analyzer
by Saizul Amin
Analyze production chatbot logs to calculate KPIs, detect failure patterns, and extract regression test cases.
$8
AI Chatbot Conversation Log Analyzer
Example session with this skill installed
Run the AI Chatbot Conversation Log Analyzer skill on my project and give me a prioritised list of what to fix, with exact changes.
- Read your context and instructions
- Compiled the ai chatbot conversation
Here is what the AI Chatbot Conversation Log Analyzer skill produced.
Demo: real, unedited output of the skill's bundled script on a sample input from its test suite.
Output
5 conversations, 8 user turns (mean 1.6, median 1, max 3)
handover rate 40.0%, conversations with a failure turn 40.0%, abandoned 20.0%, tool errors 1
Intent convs share handover fail-turns
order_status 2 40% 0% 0
returns 1 20% 100% 3
refunds 1 20% 0% 3
unclassified 1 20% 100% 0
Failure reasons: assistant_could_not_help 2, user_frustrated_or_asked_for_human 2, user_repeated 1, tool_error 1
c2 turn 1 [assistant_could_not_help]: I'm sorry, I can't help with that order type.
c2 turn 2 [user_repeated]: I want to return my shoes please
c2 turn 3 [user_frustrated_or_asked_for_human]: Let me talk to a human
c3 turn 1 [tool_error]: timeout after 5s
c3 turn 2 [assistant_could_not_help]: Something went wrong, please try again.
What you do next
- Fix the highest-severity items first.
- Ask your agent to apply the fixes it suggests, then run the skill again to confirm.
- Keep the skill installed and re-run it whenever the project changes.
Connects securely to your tools. The creator never sees your data.
About this skill
Production logs are the only way to see where your agent actually breaks. This skill provides the scripts and workflow to transform raw JSONL logs into actionable engineering tasks by identifying intent patterns, handover triggers, and failure modes.
What it does
- Calculate KPIs by measuring handover rates, containment, abandonment, and mean conversation length.
- Intent mapping using platform labels or custom keyword rules to categorize user needs.
- Failure detection through heuristics that flag assistant inability to help, user frustration, or repeated queries.
- PII masking to hide emails and phone numbers in conversation snippets during analysis.
- Performance thresholds with exit codes for CI/CD alerts when failure or handover rates exceed defined limits.
How it works
- Prepare data by converting logs from your chat platform or agent framework into a standard JSONL format.
- Configure intents using existing labels or by defining keyword matching rules in a JSON file.
- Execute analysis via the
analyze_logs.pyscript to generate summary statistics or machine-readable JSON. - Triangulate failures by reviewing flagged conversation IDs and masked snippets to find root causes.
- Close the loop by creating regression tests in your eval harness based on discovered failures.
Frameworks & tools
Python 3.8+ standard library. Compatible with any platform (Helpdesk, LLM framework, or custom backend) that exports messages to JSONL.
Why this beats prompting it yourself
Prompting an LLM to analyze thousands of logs is expensive, token-limited, and prone to hallucinated statistics. This tool uses deterministic scripts for reliable KPIs and only uses the LLM (or human review) for the high-leverage task of root-cause classification on pre-filtered failures.
Use cases
- Generate weekly quality reports for stakeholders to track bot performance against KPIs.
- Identify missing documentation or tool gaps by analyzing the "unclassified" intent bucket.
- Debug sudden spikes in human handover rates after a new prompt or tool deployment.
- Extract real-world failure scenarios to build a robust regression testing suite.
Known limitations
Requires logs to be in or converted to specific JSONL formats. PII masking is pattern-based and should not replace a dedicated redaction step for highly sensitive data.
Open source: saizul/ai-agent-builder-skills on GitHub (MIT licence, by Saizul Amin).
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for LLM Ops.
Requires logs in JSONL format. Keyword-based intent matching requires manual rule definition if platform labels are missing. PII masking is pattern-based.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 2 days ago
- Software
Python 3.8+