---
title: "AI Agents (MCP and frappectl)"
space: "Helpdesk"
url: "https://docs.frappe.io/helpdesk/ai-agents"
updated: "2026-11-23"
---

You can let an AI assistant, like Claude or ChatGPT, work with your Helpdesk for you. It can find tickets and read their conversations, explain a ticket's SLA, draft replies, add comments, assign and tag tickets, and answer questions like "how many tickets breached their SLA last week?".

There are two ways to connect one. Both are available on version 16.

## Through MCP

MCP lets AI apps connect to your site directly. In the AI app, add a new connector (or MCP server) with this address:

```
https://<your-site>/api/v2/mcp
```

The app opens your site's login page and asks you to allow access. It can then do only what your own account can do.

A System Manager can turn MCP on or off in the desk, under **System Settings > AI Agents > MCP Settings**. The same section lets you add **Agent Instructions**, a short note that tells AI apps what your Helpdesk is for and how your team uses it.

## Through frappectl

frappectl is a command-line tool for Frappe sites that AI coding assistants can use. Install it and sign in to your site:

```
uv tool install frappectl
frappectl auth login <your-site>
```

Helpdesk comes with a skill for AI assistants in its source code, in the `skills/frappe-helpdesk` folder. Add that folder to your assistant's skills so it knows how Helpdesk works: how SLAs are calculated, how to reply without sending something by mistake, and what can't be undone.

## Good to know

- The AI assistant acts as you. It can only see and change what your account can.
- Replies are emailed to the customer. A well-behaved assistant shows you the draft and asks before sending.
- Merging tickets can't be undone.
