AutoOps is an automated operations system designed to streamline and automate email support responses based on a knowledge base built from previous interactions. The system uses AI to generate contextually relevant responses while allowing human review before sending.
AutoOps helps support teams by automating the initial response to customer emails. It processes incoming emails, searches a knowledge base for relevant information, and generates draft responses for review. The system learns from previous interactions to improve response quality over time.
- Email Processing: Automatically fetches and processes incoming support emails
- Knowledge Base: Builds and maintains a searchable knowledge base from previous interactions
- AI-Powered Responses: Generates contextually relevant draft responses using OpenAI
- Vector Search: Uses embeddings for semantic search of the knowledge base
- Multi-language Support: Detects and responds in the customer's language
- Admin Dashboard: Web interface for reviewing and sending draft responses
- Real-time Processing: Webhook-based email processing for immediate handling
- Node.js with Express
- TypeScript
- PostgreSQL with pgvector for vector storage
- Prisma ORM
- Gmail API for email integration
- OpenAI API for response generation and embeddings
- JWT for authentication
- React with Next.js
- TypeScript
- Tailwind CSS
- Email Fetching: Retrieves emails via Gmail API
- Content Extraction: Parses email content and metadata
- Language Detection: Identifies the language of the email
- Knowledge Base Search: Finds relevant information using vector similarity
- Response Generation: Creates draft responses using OpenAI
- Human Review: Admin reviews and optionally edits responses
- Sending: Approved responses are sent back to the customer
- Email Controller: Manages email fetching and processing
- Knowledge Controller: Handles knowledge base operations
- Response Controller: Manages response generation and sending
- OpenAI Service: Interfaces with OpenAI API for response generation
- Authentication Middleware: Handles user authentication and authorization
- Backend core structure implemented
- Database schema defined with Prisma
- Email processing pipeline functional
- Response generation with OpenAI integrated
- Admin user management implemented
- Basic frontend dashboard operational
- Automated testing framework established
- Continuous operation system implemented
- Node.js (v16+)
- PostgreSQL with pgvector extension
- Gmail API credentials
- OpenAI API key
- Clone the repository
git clone https://github.com/GizAI/autoops.git
cd autoops- Install dependencies
# Install backend dependencies
npm install
# Install frontend dependencies
cd frontend
npm install
cd ..- Set up environment variables
cp .env.example .env
# Edit .env with your credentials- Set up the database
# Install pgvector extension in PostgreSQL
# Then run Prisma migrations
npx prisma migrate dev- Start the development servers
# Start backend server (from root directory)
npm run dev
# Start frontend server (in another terminal)
cd frontend
npm run devautoops/
├── .augment/ # Project documentation and task tracking
├── frontend/ # React Next.js frontend
│ ├── public/ # Static assets
│ ├── src/
│ │ ├── app/ # Next.js app router pages
│ │ ├── components/ # React components
│ │ └── lib/ # Utility functions and API clients
│ └── package.json
├── prisma/ # Prisma schema and migrations
├── src/ # Backend source code
│ ├── controllers/ # Request handlers
│ ├── middleware/ # Express middleware
│ ├── routes/ # API routes
│ ├── scripts/ # Utility scripts
│ ├── services/ # Business logic
│ ├── utils/ # Utility functions
│ └── __tests__/ # Test files
├── tests/ # E2E tests
└── package.json
-
Email Processing Improvements:
- Enhance email parsing and metadata extraction
- Improve handling of attachments and complex email formats
-
Knowledge Base Enhancements:
- Optimize vector search for better relevance
- Implement knowledge base management features
-
Response Quality Improvements:
- Refine OpenAI prompts for better responses
- Implement response templates and customization
This project is licensed under the MIT License - see the LICENSE file for details.
For questions or support, please contact support@giz.ai