# sales performance advisory agent

> Enterprise sales advisor that analyzes CSV metrics, retrieves PDF policy via RAG, and enforces discount guardrails.

sales performance advisory agent is a paid AI agent skill on Agensi by Kanishq Meena, in Sales & Lead Gen. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $10 (one-time purchase)
- Creator: [Kanishq Meena](https://www.agensi.io/creators/kanishq-meena)
- Category: [Sales & Lead Gen](https://www.agensi.io/skills/sales-lead-gen)
- Version: 1.0
- Last updated: 2026-11-19
- Security: scan passed (2026-11-19); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/sales-performance-advisory-agent
- Tags: sales, analytics, langgraph, langchain, rag, guardrails, streamlit, enterprise

## About this skill

Sales operations teams often struggle to reconcile raw performance data with complex corporate policy documents. This skill bridge the gap by automating the analysis of sales metrics against PDF/DOCX playbooks to provide compliant remediation plans.

### What it does
- **Computes Sales Metrics** — Calculates target achievement, MoM growth, gross margin, and return rates from CSV and Excel sources.
- **Retrieves Policy Guidance** — Performs RAG searches across PDF, DOCX, and TXT playbooks using TF-IDF and cosine similarity.
- **Enforces Discount Guardrails** — Extracts discount ceilings from documentation to block or approve pricing requests based on corporate policy.
- **Routes Remediation Actions** — Diagnoses underperformance to trigger specific workflows for low revenue, low margin, or high returns.
- **Persists Action Plans** — Saves idempotent, UUID-tracked remediation plans to a JSON ledger for auditability.

### How it works
1. **Load Data** — Place `sales.csv`, `targets.csv`, and `margins.xlsx` into the `data/` directory and policy docs into `docs/`.
2. **Launch Interface** — Run the Streamlit UI for a visual dashboard or use the CLI for automated queries.
3. **Query Analysis** — Input a specific region, product, and month to trigger the LangGraph state machine.
4. **Review Results** — The agent calculates metrics, checks policies, and generates a formatted action plan.

### Frameworks & tools
Built with LangGraph StateGraph, LangChain, Scikit-Learn for TF-IDF vectorization, Pandas for data processing, and Streamlit for the web interface. It uses a SQLite checkpointer for multi-turn memory.

### Why this beats prompting it yourself
Generic prompts cannot reliably perform safe division for target achievement or maintain idempotent JSON ledgers. This skill includes a deterministic fallback engine that ensures metrics and policy retrieval work even if the LLM API is unavailable.

### Use cases
- **Performance Auditing** — Identifying underperforming regions and routing them to demand generation or quality audits.
- **Policy Compliance** — Verifying if a requested 40% discount violates the ceiling defined in a 50-page PDF playbook.
- **Growth Tracking** — Analyzing Month-over-Month revenue shifts while maintaining context across conversational turns.
- **Remediation Planning** — Automatically generating and saving structured action plans with specific owners and review dates.

### Known limitations
Requires specific column headers in CSV/Excel files. TF-IDF retrieval requires documents to be in English for optimal cosine similarity scoring.

## 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 sales performance advisory agent skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### What core problem does the Sales Performance Advisory Agent solve for sales operations?

This agent automates the cross-referencing of raw sales data (CSV/Excel) against official company playbooks (PDF/DOCX) to ensure that performance reviews and discount approvals always align with internal corporate policy.

### Are there specific technical requirements for the data files I upload?

The skill requires specific column headers for sales and margin data to ensure accurate metric calculation; however, it includes a deterministic fallback engine to maintain reliability even during LLM API fluctuations.

### What is included in the package upon purchase?

You will receive the complete LangGraph state machine source code, a Streamlit-based web dashboard, a CLI interface, and pre-configured document processing scripts for RAG integration.

### Can the agent remember previous queries during a single session?

Yes, the agent uses a SQLite checkpointer to maintain multi-turn memory, allowing you to ask follow-up questions about specific regions or products while preserving the context of the initial analysis.

### What document formats and languages are supported for the policy retrieval feature?

The agent uses TF-IDF and cosine similarity for document retrieval, which is optimized for English-language PDF, DOCX, and TXT playbooks.

---

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.
