AI-powered email marketing automation platform for BFSI institutions
Automate campaigns with 6 specialized AI agents - from strategy to analytics
MailFlow is an enterprise-grade email marketing platform specifically designed for Banking, Financial Services & Insurance (BFSI) organizations in India. It uses 6 specialized AI agents to autonomously plan, create, validate, and execute email campaigns while maintaining complete regulatory compliance with RBI, SEBI, and IRDAI guidelines.
Why MailFlow?
- π€ 6 AI Agents - Planner, Content, Compliance, Approval, Executor, Analytics
- π§ BFSI-Specific - Built for Indian financial services regulations
- βοΈ Compliance-First - Real-time RBI/SEBI/IRDAI validation
- π Advanced Analytics - Deep insights into campaign performance
- π Human-in-Loop - Optional approval gates for complete control
- π° Multi-Product Support - Term Life, Health Insurance, Mutual Funds, Loans, etc.
- β Multi-step campaign creation wizard
- β BFSI product templates (Insurance, Mutual Funds, Loans, etc.)
- β Target audience segmentation (Retail, HNI, SME, Professionals)
- β Campaign scheduling and automation
Planner Agent β Content Agent β Compliance Agent β Approval Gate β Executor β Analytics Agent
-
Planner Agent π§
- Develops campaign strategy
- Creates email sequences
- Plans send schedule
- Estimates reach
-
Content Agent βοΈ
- Generates compelling email copy
- Creates personalized subject lines
- Optimizes for engagement
- A/B testing suggestions
-
Compliance Agent π‘οΈ
- Validates against RBI guidelines
- Checks SEBI compliance
- IRDAI insurance regulations
- Flags regulatory risks
-
Human Approval π€
- Review AI-generated content
- Edit subject/body if needed
- Final go/no-go decision
-
Executor Agent π€
- Sends to target audience
- Manages list segmentation
- Handles bounces
- Tracks delivery
-
Analytics Agent π
- Calculates open rates
- Tracks click-through rates
- Measures conversions
- Revenue attribution
- π Campaign performance metrics
- π Historical trend analysis
- π₯ Audience engagement insights
- π° ROI calculation and tracking
- π― AI-powered recommendations
MailFlow/
βββ src/
β βββ components/
β β βββ Icon.jsx
β β βββ Sidebar.jsx
β β βββ TopBar.jsx
β βββ pages/
β β βββ Dashboard.jsx
β β βββ CreateCampaign.jsx
β β βββ AgentPipeline.jsx
β β βββ ApprovalPage.jsx
β β βββ AnalyticsPage.jsx
β βββ services/
β β βββ agents/
β β β βββ planner.js
β β β βββ content.js
β β β βββ compliance.js
β β β βββ analytics.js
β β βββ api.js
β βββ constants/
β β βββ colors.js
β β βββ templates.js
β βββ utils/
β β βββ logger.js
β β βββ validators.js
β βββ App.jsx
βββ index.html
βββ vite.config.js
Frontend:
- React 18+ (UI framework)
- Vite (build tool)
- CSS-in-JS (inline styling)
- Modern ES6+ JavaScript
AI/ML:
- Claude API (Anthropic)
- Multi-agent orchestration
- Natural language processing
Infrastructure:
- Node.js runtime
- RESTful API architecture
- Real-time logging
- Node.js 16+
- npm or yarn
- Anthropic API key
# Clone repository
git clone https://github.com/Hitpragya/MailFlow.git
cd MailFlow
# Install dependencies
npm install
# Setup environment variables
cp .env.example .env.local
# Edit .env.local and add your Anthropic API key
# VITE_ANTHROPIC_API_KEY=sk_...
# Start development server
npm run devVisit http://localhost:5173
npm run build # Creates optimized build
npm run preview # Preview production build locally# Anthropic Claude API
VITE_ANTHROPIC_API_KEY=sk_ant_...
VITE_CLAUDE_MODEL=claude-sonnet-4-20250514
# Email Service (optional)
VITE_SMTP_HOST=smtp.gmail.com
VITE_SMTP_PORT=587
VITE_SMTP_USER=your-email@gmail.com
# Analytics
VITE_ANALYTICS_ENABLED=true
VITE_LOG_LEVEL=infoInsurance:
- Term Life Insurance
- Health Insurance
- General Insurance
Banking:
- Home Loans
- Personal Loans
- Credit Cards
- Demat Accounts
Investment:
- Mutual Fund SIPs
- Fixed Deposits
- NPS Pension Plans
- Government Securities
POST /api/campaigns
{
"name": "Q4 Term Life Insurance Push",
"product": "Term Life Insurance",
"goal": "Lead Generation",
"audience": "Retail Investors"
}Agents execute automatically with proper logging and error handling.
GET /api/campaigns/:id/analytics- β RBI BFSI Guidelines
- β SEBI Advertising Code
- β IRDAI Insurance Regulations
- β Unsolicited Communication Rules
- β Data Privacy & Security
We welcome contributions! See CONTRIBUTING.md for guidelines.
git checkout -b feature/your-feature
git commit -m "feat: describe your feature"
git push origin feature/your-featureMIT Β© 2026 Hitpragya Rastogi
- π§ Email: support@mailflow.dev
- π Report Issues
- π¬ Discussions
- π Documentation
Built with β€οΈ for BFSI Excellence
Status: Production Ready Β· Version: 1.0.0 Β· Last Updated: May 2026