# Complaint Triage

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

Complaint Triage is a free AI agent skill on Agensi by Rohith Parimi, in Workflow Automation. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Rohith Parimi](https://www.agensi.io/creators/rohith-parimi)
- Category: [Workflow Automation](https://www.agensi.io/skills/workflow-automation)
- Version: 1.0
- Last updated: 2026-11-27
- Security: scan passed (2026-11-27); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/complaint-triage
- Tags: customer-support, automation, python, pii-redaction, ticket-triage

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

## Requires

- Python

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Complaint Triage skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### How does the PII redaction work to ensure customer privacy?

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.

### What exactly is included in the Complaint Triage skill package?

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.

### Can I use my own company-specific support policies and refund rules?

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.

### Which AI agents or frameworks are compatible with this skill?

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.

### How difficult is the initial setup and configuration process?

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.

### What happens if a complaint doesn't clearly fit into one of my predefined categories?

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.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
