Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIDeepSeekDeepSeekMuseMuse+22 more

    AI Chatbot Conversation Log Analyzer

    by Saizul Amin

    1

    Analyze production chatbot logs to calculate KPIs, detect failure patterns, and extract regression test cases.

    $8

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned
    AI Chatbot Conversation Log Analyzer

    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

    1. Fix the highest-severity items first.
    2. Ask your agent to apply the fixes it suggests, then run the skill again to confirm.
    3. 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

    1. Prepare data by converting logs from your chat platform or agent framework into a standard JSONL format.
    2. Configure intents using existing labels or by defining keyword matching rules in a JSON file.
    3. Execute analysis via the analyze_logs.py script to generate summary statistics or machine-readable JSON.
    4. Triangulate failures by reviewing flagged conversation IDs and masked snippets to find root causes.
    5. 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. 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. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 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.

    Frequently Asked Questions

    This skill provides a Python-based execution environment and configuration templates designed to transform raw production logs into structured KPI reports and filtered failure datasets. It bridges the gap between raw data and actionable engineering tasks by automating the detection of handover triggers and conversation drop-offs.

    It is framework-agnostic and works with any platform—such as LangChain, Rasa, or custom LLM backends—provided the logs are exported to a standard JSONL format. The included documentation provides schemas to help you map your specific platform's data to the analysis tool.

    You receive the core Python analysis scripts, a suite of configuration templates for intent mapping, a PII masking utility, and a workflow guide for integrating the tool into your CI/CD pipeline. It also includes sample datasets to help you test the setup immediately.

    Unlike LLM-based analysis which is expensive and often struggles with mathematical accuracy, this skill uses deterministic scripts to ensure your KPIs are 100% accurate. It allows you to reserve expensive LLM tokens for the final step of root-cause analysis on specific, pre-filtered failure cases.

    The PII masking feature uses pattern-based recognition to redact common identifiers like emails and phone numbers from logs before they are reviewed. While highly effective for general cleaning, it is designed as a safety layer and should be used alongside your organization's existing data privacy protocols.

    The tool requires Python 3.8+ and primarily utilizes the standard library to minimize dependency conflicts. Setup involves installing the package, mapping your JSON fields via a config file, and running the script against your log directory.

    New in LLM Ops