An advanced Customer Relationship Management (CRM) system with multi-channel communication, role-based access, and AI-powered automation. Manage customer queries, track sales, and handle appointments efficiently, all in one platform.
At @infinitywaves while working I built this.
-
🤖 AI-Powered Insights
- Customer behavior analysis
- Predictive sales forecasting
- Task automation recommendations
-
💬 Multi-Channel Communication
- Seamlessly integrate with Instagram, WhatsApp, Facebook, and chat platforms
- Unified inbox for managing customer interactions
-
📊 Interactive Dashboard
- Real-time analytics
- Performance metrics
- Customer activity tracking
-
👥 Role-Based Access
- Admin: Manage users, roles, and settings
- Manager: Oversee agents and analyze reports
- Agent: Handle customer queries and interactions
-
📈 Sales Pipeline Management
- Track deals and progress
- Revenue forecasting
- Sales performance metrics
-
📅 Appointment Scheduling
- AI-assisted scheduling
- Automated follow-ups
-
🔍 Query Management
- Track and prioritize customer queries
- Resolve tickets efficiently
-
🔒 Secure Authentication
- NextAuth.js integration
- Frontend: Next.js 14 with App Router
- Styling: Tailwind CSS + Shadcn/ui
- Backend: Node.js (Express.js) + Heroku
- Database: Vercel Postgres
- Authentication: NextAuth.js
- AI Integration: OpenAI API
- Deployment: Vercel (frontend) and Heroku (backend)
- Node.js 18+
- npm/pnpm/yarn
- PostgreSQL database
- Clone the repository:
git clone https://github.com/ahkamboh/ai-crm-system.git
cd ai-crm-system
- Install dependencies:
npm install
# or
pnpm install
- Set up environment variables:
cp .env.example .env
Fill in your .env
file with:
# Database
POSTGRES_URL=your_database_url
# Authentication
NEXTAUTH_URL=http://localhost:3000
NEXTAUTH_SECRET=your_secret
# OpenAI
OPENAI_API_KEY=your_api_key
# Social Media API Keys
INSTAGRAM_API_KEY=your_instagram_api_key
WHATSAPP_API_KEY=your_whatsapp_api_key
FACEBOOK_API_KEY=your_facebook_api_key
- Run the development server:
npm run dev
# or
pnpm dev
Visit http://localhost:3000 to see your application.
ai-crm-system/
├── app/
│ ├── (auth)/
│ ├── (dashboard)/
│ ├── api/
│ └── layout.tsx
├── components/
│ ├── ui/
│ └── shared/
├── lib/
│ ├── utils.ts
│ └── db.ts
├── public/
└── styles/
- Manage Instagram, WhatsApp, Facebook, and other chat interactions on a single platform.
- Unified query tracking and resolution.
- Admin: Full control over users, roles, and platform settings.
- Manager: Supervises agents, monitors performance, and generates reports.
- Agent: Handles customer interactions and resolves tickets.
- Automate query assignment based on priority.
- Monitor response times and query status.
- Follow the Next.js best practices.
- Use TypeScript for type safety.
- Implement responsive design.
- Write unit tests for critical functions.
- Follow Conventional Commits.
- Push your code to GitHub.
- Connect your repository to Vercel.
- Configure environment variables.
- Deploy!
- Create a new Heroku app.
- Set up environment variables.
- Push your backend code to Heroku.
- Deploy!
- Fork the repository.
- Create your feature branch (
git checkout -b feature/amazing-feature
). - Commit your changes (
git commit -m 'Add some amazing feature'
). - Push to the branch (
git push origin feature/amazing-feature
). - Open a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.
For support, please:
- Open an issue
- Contact: [[email protected]]
Built with ❤️ by ahkamboh
Let me know if you’d like any additional refinements! 🚀