# Agency Admin CRM

> Secure admin dashboard and lead CRM with RBAC, audit logs, and injection-protected CSV exports.

Agency Admin CRM is a paid AI agent skill on Agensi by Zeeonix Digital, in APIs & Backend. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $9.99 (one-time purchase)
- Creator: [Zeeonix Digital](https://www.agensi.io/creators/zeeonix-digital)
- Category: [APIs & Backend](https://www.agensi.io/skills/apis-backend)
- Version: 1.0
- Last updated: 2026-11-26
- Security: scan passed (2026-11-26); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/agency-admin-crm
- Tags: api, crm, nextjs, prisma, security

## About this skill

Lead management often collapses into messy spreadsheets or insecure, improvised dashboards. This skill builds a hardened internal Admin Portal and CRM designed specifically for agency and SaaS teams to manage inbound leads and chat transcripts.

### What it does
- **Role-Based Access Control** enforces strict permissions for `ADMIN`, `MANAGER`, and `VIEWER` roles across all pages and API routes.
- **Lead Pipeline Management** provides a filterable interface to track leads from `NEW` to `WON/LOST` with scoring and source tracking.
- **Secure CSV Export** generates lead reports with built-in protection against CSV formula-injection attacks.
- **Audit Logging** records every status change, lead assignment, and export event for internal accountability.
- **Transcript Integration** links leads to specific AI chat sessions for full context during follow-up.

### How it works
1. **Auth Verification** checks your existing Auth.js or session implementation to wrap `/admin` routes in server-side guards.
2. **Schema Integration** maps the lead, user, and audit log models using your Prisma schema.
3. **API Implementation** builds paginated, validated CRUD endpoints for lead updates and internal notes.
4. **UI Scaffolding** generates the dashboard KPI cards, filterable tables, and lead detail drawers.

### Frameworks & tools
Built for TypeScript environments using Next.js (App Router), Prisma ORM, and Auth.js/NextAuth. It utilizes `bcryptjs` or `argon2` for password security and Zod for schema validation.

### Why this beats prompting it yourself
Writing secure RBAC and sanitizing CSV exports is tedious and error-prone. This skill ensures that sensitive lead data never leaks through unshielded API routes and that every administrative action is logged by default.

### Use cases
- Building a protected dashboard to manage leads captured by an AI chatbot.
- Adding a secure internal portal for sales managers to assign leads to team members.
- Implementing a compliant audit trail for lead deletions and bulk exports.

### Known limitations
Requires an existing Prisma schema and a functioning authentication provider to be present in the codebase. Does not include frontend styling for non-Tailwind projects.

## Requires

- tsc
- Node.js
- PostgreSQL
- typscript

## 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 Agency Admin CRM 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 Agency Admin CRM solve for my project?

This skill provides a hardened, internal-facing dashboard to manage leads, track AI chat transcripts, and export data securely, solving the problem of messy spreadsheets and unshielded admin routes.

### What are the technical requirements to use this skill?

It is designed for TypeScript environments using Next.js (App Router), Prisma ORM, and Auth.js. You must have an existing database schema and authentication provider configured for the skill to integrate correctly.

### How does the skill handle different levels of staff access?

The skill includes a pre-built Role-Based Access Control (RBAC) system with ADMIN, MANAGER, and VIEWER roles, ensuring users only see or edit lead data permitted by their clearance level.

### What makes the CSV export feature "secure" compared to standard exports?

The CSV export feature includes specific sanitization logic to prevent formula-injection attacks, ensuring that lead data containing malicious characters cannot execute code when opened in Excel or Google Sheets.

### Can I see the original AI chat transcripts associated with a lead within this dashboard?

Yes, the CRM is designed to link leads directly to their specific AI chat session transcripts, giving your sales team the full context of the conversation before they follow up.

### What exactly is included in the purchase of this skill?

You receive the full implementation logic for the admin UI, protected API routes, Prisma model mappings, and the audit logging system, all ready to be integrated into your Next.js codebase.

---

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.
