Complaint Triage

    by Rohith Parimi

    1

    Triage customer complaints into prioritized queues with PII redaction and policy-grounded draft replies.

    Free

    Security scanned

    Works with the AI Agents you already use

    Complaint Triage

    Example session with this skill installed

    I have 50 customer complaints in complaints.csv. Triage them using the retail policies in ./docs/policies and generate a prioritized queue with draft replies.

    • Read your context and instructions
    • Compiled the complaint triage
    • Generated the data export

    I have processed 50 complaints from complaints.csv. I redacted PII (emails, cards, and phones) and indexed 12 policy sections from ./docs/policies. 42 items were successfully triaged, while 8 items with low confidence scores were routed to the review queue.

    Triage Summary

    PriorityCountKey Issues
    P13Credit card double-charging, Account lockout
    P212Late deliveries, Damaged items
    P322General feedback, Feature requests
    P45Thank you notes, Closing tickets
    Review8Ambiguous phrasing, Mixed category triggers

    Sample P1 Triage Result

    ID: req_9921
    Category: Billing
    Priority: P1
    Reason: Triggered "double-charge" rule in config.json.
    Draft: I apologize for the double-charge on your recent order. I have initiated a reversal for the duplicate transaction, which should reflect in 3-5 days. (per Billing Policy §4.1)

    Files Generated

    • triage/queue.csv: Full prioritized work list for agents.
    • triage/review.csv: 8 items requiring manual categorization.
    • triage/results.jsonl: Raw triage data and confidence scores.
    • triage/summary.md: Detailed breakdown of sentiment and categories.

    Next steps

    1. Open triage/review.csv to manually handle the 8 low-confidence tickets.
    2. Review P1 drafts in triage/queue.csv before sending to customers.
    3. Add any manual corrections to triage/corrections.jsonl to improve future accuracy.

    complaints.csv

    CSV · data export

    Generated

    Example file from a real run - the skill writes it into your workspace.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    Manual triage of support tickets at scale is expensive and prone to inconsistent priority mapping. This skill provides a standardized engine for categorizing complaints, assigning P1-P4 priorities based on your specific business rules, and drafting policy-compliant replies with citations.

    What it does

    • PII Redaction automatically replaces emails, phone numbers, and card details to maintain privacy during processing.
    • Priority Scoring assigns P1 through P4 levels by matching complaint text against your internal priority rules.
    • Policy Grounding searches your specific Markdown or text policy documents to find relevant sections for every issue.
    • Automated Drafting generates initial response suggestions that follow your tone guidelines and include exact policy citations.
    • Confidence Scoring flags ambiguous or complex cases for human review rather than guessing the category.

    How it works

    1. Initialize Workspace by setting up a config file with your specific categories, priority triggers, and policy directory.
    2. Prepare Data using the prep.py script to normalize inputs from CSV, JSON, or text files while redacting sensitive data.
    3. Index Policies to create a searchable map of your business rules and support documentation.
    4. Execute Triage where the agent analyzes each complaint to determine sentiment, category, and priority.
    5. Generate Queue via the report.py script to output a sorted CSV of actions and a summary of high-priority escalations.

    Frameworks & tools

    This skill utilizes Python 3.8+ standard libraries for data processing and pypdf for policy ingestion. It interfaces with local JSONL storage for state management and includes specialized scripts for validation and PII cleaning.

    Why this beats prompting it yourself

    Generic prompts often ignore specific company policies or invent non-existent refund windows. This skill uses a multi-step verification loop that checks drafts against your actual documents and enforces banned phrase lists, ensuring every response is grounded in your specific business logic.

    Use cases

    • E-commerce Support to flag shipping delays as P2 and payment failures as P1.
    • Support Scaling for small teams needing to clear high-volume ticket backlogs.
    • Compliance Auditing to ensure support staff are citing the correct policy sections.

    Known limitations

    PDF support requires the optional pypdf library. Response drafting is limited to the words and remedies found within the provided policy documents.

    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

    Free to use

    No account required to browse

    Trust & safety

    Security scan

    Security scan passed 8 days ago

    • Free with an Agensi account

    Software
    Python

    Permissions

    Terminal / Shell
    Read Files
    Write Files
    Listed8 days ago

    What's inside

    Creator

    Rohith Parimi

    Rohith Parimi

    Frequently Asked Questions

    The skill includes a pre-built redaction engine that automatically identifies and masks sensitive data like credit card numbers, emails, and phone numbers before the AI processes the text, ensuring compliance with privacy standards.

    You receive the core Python processing engine, the PII cleaning scripts, a template for your business rule configurations, and the indexing tool for your internal policy documents.

    Yes, the skill is designed to ingest your specific Markdown or text-based policy files, using them as the 'source of truth' to ground every drafted response and citation.

    The skill is highly compatible with any Python 3.8+ environment and can be integrated into most AI agent frameworks that support local script execution and JSONL/CSV data handling.

    Setup involves three main steps: defining your priority triggers in the config file, indexing your policy directory, and running the provided normalization script on your ticket data.

    The skill includes a confidence scoring mechanism that identifies ambiguous or outlier complaints, flagging them for human intervention rather than forcing a low-accuracy classification.

    New in Workflow Automation

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Workflow Automation.

    Free