An AI-powered email campaign management system that analyzes customer data and generates personalized marketing emails using Claude AI.
- CSV Analysis: Upload customer data CSV files and get AI-powered insights using Claude
- Customer Selection: Select specific customers from your data based on customer IDs
- Personalized Email Generation: Generate tailored marketing emails for selected customers using their full profile data
- User Authentication: Secure login/registration system
- Campaign Management: Create and manage multiple email campaigns
- Frontend: Vue.js 3 with TypeScript
- Backend: FastAPI (Python)
- Database: PostgreSQL
- AI: Claude 3.5 Sonnet API
- File Storage: Cloudflare Worker (MCP server)
- Authentication: JWT
- Docker and Docker Compose
- Claude API key
- Cloudflare Worker URL (for file storage)
Create .env files in both backend/ and frontend/ directories:
Backend (.env):
CLAUDE_API_KEY=your_claude_api_key
CLAUDE_API_URL=https://api.anthropic.com/v1/messages
MCP_UPLOAD_URL=your_cloudflare_worker_url
JWT_SECRET_KEY=your_jwt_secret
DATABASE_URL=postgresql://postgres:postgres@db:5432/email_genFrontend (.env):
VITE_API_URL=http://localhost:8000/api- Clone the repository:
git clone https://github.com/omkar-79/claude4-mcp-emailer.git
cd claude4-mcp-emailer- Start with Docker Compose:
docker-compose up --build- Access the application:
- Frontend: http://localhost:5173
- Backend API: http://localhost:8000
- Database: localhost:5432
Backend:
cd backend
pip install -r requirements.txt
uvicorn src.main:app --reload --host 0.0.0.0 --port 8000Frontend:
cd frontend
npm install
npm run dev- Register/Login to your account
- Upload CSV with customer data
- Analyze the data with Claude AI
- Select Customer ID column from your CSV
- Choose customers for email generation
- Generate personalized emails using customer profile data
POST /api/register- User registrationPOST /api/token- User loginPOST /api/analyze-campaign/- Analyze CSV data with ClaudePOST /api/generate-emails/- Generate personalized emailsGET /api/users/me- Get current user info
├── frontend/ # Vue.js frontend
├── backend/ # FastAPI backend
├── data/ # Sample CSV files
├── uploads/ # File uploads
└── docker-compose.yml
MIT License - see LICENSE file for details.
