Skip to content

Alphasf9/AI-ticket-agent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 

Repository files navigation

🎟️ AI-Powered Ticketing System (Backend)

This is the backend of the AI-Powered Ticketing System — a Node.js-based service designed to streamline issue resolution through automated triage, ticket assignment, and email notifications. It integrates powerful tools like Inngest, AI-based analyzers, MongoDB, and Mailer utilities.

⚡️ A dedicated frontend will interact with this backend to provide a smooth user interface for submitting and tracking tickets.


🚀 Features

  • ✨ Event-driven ticket processing using Inngest
  • 🧠 AI-based ticket analysis for priority and skill classification
  • 📧 Automatic email notifications via Nodemailer
  • 👥 Role-based user management (admin, moderator)
  • 🛠️ RESTful APIs for tickets and users
  • 🗃️ MongoDB for persistent storage

📦 Tech Stack

  • Node.js
  • Express.js
  • MongoDB + Mongoose
  • Inngest
  • Nodemailer
  • dotenv
  • Cookie-Parser
  • CORS

🛠️ Project Setup

1. Clone the Repository

git clone https://github.com/Alphasf9/AI-ticket-agent.git
cd ai-ticket-backend



2. Install Dependencies


npm install


3. Setup Environment Variables
Create a .env file in the root directory:

MONGO_URI=
JWT_SECRET=
PORT=


MAILTRAP_SMTP_HOST=
MAILTRAP_SMTP_PORT=
MAILTRAP_SMTP_USER=
MAILTRAP_SMTP_PASS=

APP_URL=
GEMINI_API_KEY=


4. Run the Server

npm run dev


🧩 Project Structure

.
├── models/
│   └── ticket.model.js
│   └── user.model.js
├── utils/
│   └── mailer.js
│   └── ai.js
├── functions/
│   └── ticket.created.js
├── inngest/
│   └── client.js
├── routes/
├── controllers/
├── .env
├── .gitignore
├── README.md
└── server.js



🖼️ Frontend
The frontend will be built separately (likely using React or Next.js) to interact with this backend via secure REST APIs.



👨‍💻 Author
Alphasf9

🔗 GitHub: [https://github.com/Alphasf9]

📧 Email: [developerhaseeb1234@gmail.com]

🌟 GitHub Stars: [https://github.com/Alphasf9/AI-ticket-agent/stargazers]

🌟 GitHub Forks: [https://github.com/Alphasf9/AI-ticket-agent/network/members]

🌟 GitHub Watchers: [https://github.com/Alphasf9/AI-ticket-agent/watchers]

🌟 GitHub Issues: [https://github.com/Alphasf9/AI-ticket-agent/issues]

🎉 Contributions are welcome! Please open an issue or submit a pull request if you'd like to contribute.

About

AI Ticketing System

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages