Modern AI-Powered Helpdesk & Customer Support Platform built with Ruby on Rails.
A full-featured ticket management system with live chat, AI assistance, knowledge base, and analytics.
- Ticket Management — Create, assign, track, and resolve support tickets with priorities and SLAs
- Live Chat — Real-time messaging using Action Cable
- AI Chatbot — Intelligent automated responses powered by OpenAI (or Grok)
- Knowledge Base — Searchable articles and FAQs
- File Uploads — Secure attachments via Active Storage
- SLA Management — Automated service level agreement tracking and breach alerts
- Email Integration — Bidirectional email support
- Analytics Dashboard — Comprehensive reports and performance metrics
- Admin Panel — Full administration with role-based access
- Responsive Design — Beautiful Tailwind CSS interface
- Ruby 4.0.0+
- PostgreSQL
- Redis (for Action Cable & Sidekiq)
# Clone the repository
git clone <your-repo-url>
cd ai-support-system
# Install dependencies
bundle install
# Setup database
rails db:create db:migrate
# Install Active Storage
rails active_storage:install
# Seed initial data (optional)
rails db:seed
# Start the server
rails serverVisit http://localhost:3000 to get started.
- Backend: Ruby on Rails 7.2
- Database: PostgreSQL
- Frontend: Tailwind CSS + Hotwire (Turbo + Stimulus)
- Real-time: Action Cable + Redis
- Authentication: Devise + Pundit
- AI: OpenAI API (easily swappable)
- Background Jobs: Sidekiq
- File Storage: Active Storage
- Search: PgSearch / Ransack
ai-support-system/
├── app/
│ ├── models/ # User, Ticket, Message, KnowledgeArticle...
│ ├── controllers/ # Tickets, Messages, Admin...
│ ├── channels/ # Live Chat
│ └── views/
├── config/
├── db/
├── public/
└── README.md
- Copy
.env.exampleto.envand configure your credentials - Set OpenAI API key for AI features
- Configure email settings in
config/environments/development.rb
The system includes an intelligent AI responder that:
- Analyzes ticket content
- Searches the knowledge base
- Provides helpful first responses
- Suggests solutions to agents
- Customer — Submit tickets and chat
- Agent — Manage tickets and respond
- Admin — Full system access and analytics
- Ticket volume trends
- Average resolution time
- SLA compliance rate
- Agent performance metrics
- Fork the project
- Create your feature branch
(git checkout -b feature/amazing-feature) - Commit your changes
(git commit -m Add amazing feature) - Push to the branch
(git push origin feature/amazing-feature) - Open a Pull Request
This project is licensed under the MIT License.