Customer Support Ticket Automation MCP Server

Customer Support Ticket Automation MCP Server

Enables AI-driven customer support ticket processing, including classification, response generation, and automated email sending and Google Sheets logging.

Category
访问服务器

README

🤖 AI Customer Support Ticket Resolver Using Agents and MCP (Model Context Protocol)

This Project uses large language models to automate customer support. It classifies tickets, analyzes content, generate and send responses automatically to the given customer email address. Built with Streamlit and MCP Inspector Tool.

📦 What It Does

  • 📬 Accepts customer support messages or Queries
  • 🤖 Uses AI to understand the issue and generate a helpful reply
  • 🧠 Detects urgency and classifies the type of request
  • 📤 Automatically Sends responses via email
  • 📊 Automatically Logs tickets into a Google Sheet
  • 🖥️ Has a simple Streamlit web interface and MCP Inspector Tool

Demo

videoUrl: https://drive.google.com/file/d/12AznYzfWe23n0x6ZmxI7E7--NwtcBGVO/view?usp=sharing

🛠 Installation

1. Clone the project

git clone https://github.com/ManideepMuddagowni/AI-Customer-Support-Ticket-Resolver-Using-MCP.git

2. Set up Python environment

conda create -p venv/ python==3.10 -y

3. Install dependencies

pip install -r requirements.txt

🔐 API Keys and Config

  1. Create a .env file with:
GROQ_API_KEY=your_groq_key_here
GMAIL_USER=your_email@gmail.com
GMAIL_APP_PASSWORD=your_gmail_app_password
  1. Add your google_cred.json (Google Sheets API key file) to the project folder.

🧾 FrontEnd - Customer Support Registration UI (register_ticket.py)

To view the customer support ticket registration form:

1749075472921 1749076576655

▶️ Run the UI

streamlit run register.py

This will launch the app in your default browser at:

http://localhost:8501

The form allows you to:

  • Submit a new support query
  • Log responses into Google Sheets

🤖 AI Ticket Manager Backend (main.py)

The AI Ticket Manager script handles all incoming tickets from the registration UI or external sources.

1749075499860 1749076633849 1749076675691 1749076690656 1749076707917

🛠 What It Does

  • ✅ Monitors and processes new or pending tickets
  • 🔍 Uses AI to classify the ticket by intent and urgency
  • ✉️ Generates an intelligent response using LLM
  • 📬 Sends the reply to the customer's registered email
  • 📝 Logs the full interaction in a Google Sheet
  • 🤖 All these are Fully Automated by using Agents

⚙️ Commands You’ll Use

▶️ Run the web app

streamlit run main.py

This opens the UI in your browser at: http://localhost:8501


🧠 Set up and run the MCP Server

Option A: Simple MCP setup with pip

pip install fastmcp

Option B: With UV (optional tool for MCP projects)

uv init .
uv add "mcp[cli]"

🔁 Install your MCP server

mcp install mcp_server:mcp

🧰 Use MCP Inspector

Option 1: Dev mode with Claude's tools

mcp dev mcp_server.py
mcp install mcp_server.py

Option 2: With Node.js inspector

run - npx @modelcontextprotocol/inspector python mcp_server.py

1747946708892---

📌 Troubleshooting

JSON parse error from MCP

If you see:

Unexpected token ✅, "✅ Email se"... is not valid JSON

Remove emojis like ✅ from your print() statements. The MCP CLI expects only plain JSON-safe text.



🌐 Deploy Options

  • Streamlit Cloud
  • Heroku, EC2, or GCP

🧑‍💻 Contributing

Pull requests are welcome. Feel free to open issues for feature ideas or bugs.


🚀 Future Improvements & Collaboration

This project is designed with flexibility and growth in mind. Here are a few directions we’re excited to explore next:

🔮 Possible Extensions

  • RAG Integration:

    Enhance responses by using a Retrieval-Augmented Generation (RAG) system. This will let the AI pull relevant info from past tickets, FAQs, or internal documents before generating a reply — making answers more accurate and context-aware.

  • Analytics Dashboard:

    Track ticket volume, resolution accuracy, response time, and user satisfaction.

  • User Feedback Loop:

    Let customers rate the AI-generated response to continuously improve performance using reinforcement learning.


🤝 Open for Collaboration

I am always happy to collaborate with others who are passionate about Machine Learning, NLP, and Gen AI. Whether you're interested in:

  • Contributing code
  • Integrating new data sources
  • Connecting to new platforms

I Would love to connect!

📬 Reach out via GitHub Issues or start a discussion to get involved.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选