AutoFlow AI is a production-grade, AI-native workflow automation platform. It enables organizations to build, orchestrate, and monitor autonomous agents that seamlessly connect LLMs with over 2,000+ software integrations.
- Self-Recovering Agents: Workflows support autonomous reflection and recovery from tool failures
- Multi-LLM Support: Native integration with OpenAI, Anthropic Claude, and Google Vertex AI
- Real-time Execution: Live monitoring of workflow runs with detailed telemetry
- Real-time Telemetry: Track successes, failures, and token usage across your organization
- High-Fidelity Charts: Beautiful visualizations of execution metrics and performance data
- Audit Trails: Complete audit logging for compliance and debugging
- RBAC: Granular team permissions and roles (Owner, Admin, Member, Viewer)
- Secure Key Management: Provision scoped API keys with rotation policies
- Tenant Isolation: Strict data partitioning at the database layer
- Account Lockout: Automatic protection against brute force attacks
- Glass Morphism UI: Beautiful, modern interface with smooth animations
- Dark/Light Themes: Full theme support with system detection
- Responsive Design: Optimized for desktop, tablet, and mobile devices
- Real-time Updates: Live dashboard updates using WebSocket connections
AutoFlow AI is built for high-performance, real-time reactive processing:
- Next.js 16.2 (App Router) - React framework with SSR/SSG
- Tailwind CSS - Utility-first CSS framework
- Framer Motion - Production-ready animations
- Zustand - Lightweight state management
- Shadcn/UI - Beautiful, accessible component library
- Node.js & Express - Runtime and framework
- Socket.IO - Real-time bidirectional communication
- BullMQ - Distributed job queues
- JWT - Secure authentication with refresh tokens
- PostgreSQL - Primary database with Prisma ORM
- Redis (Upstash) - Caching, rate limiting, and session storage
- Neon - Serverless PostgreSQL hosting
- OpenAI - GPT-4, GPT-3.5 models
- Anthropic - Claude models
- Google Vertex AI - Gemini models
- Node.js v18+
- PostgreSQL & Redis instances (or use provided cloud services)
# Clone the repository
git clone https://github.com/abx15/AutoFlow-AI.git
cd AutoFlow-AI
# Install all dependencies
npm install
cd client && npm install
cd ../server && npm installCreate environment files using the provided templates:
Server (server/.env):
PORT=5000
DATABASE_URL="postgresql://..."
REDIS_URL="redis://..."
JWT_ACCESS_SECRET="your-256-bit-secret"
JWT_REFRESH_SECRET="your-256-bit-secret"
ANTHROPIC_API_KEY="sk-ant-api03-..."
OPENAI_API_KEY="sk-..."
SMTP_HOST="smtp.gmail.com"
SMTP_USER="your-email@gmail.com"
SMTP_PASS="your-app-password"Client (client/.env.local):
NEXT_PUBLIC_API_URL="http://localhost:5000/api/v1"
NEXT_PUBLIC_APP_URL="http://localhost:3000"cd server
npx prisma generate
npx prisma db push
npm run db:seed # Seed demo data and test users# Terminal 1: Start Backend
cd server
npm run dev
# Terminal 2: Start Frontend
cd client
npm run dev- Frontend: http://localhost:3000
- Backend API: http://localhost:5000
- API Documentation: http://localhost:5000/docs
The system comes with pre-configured demo accounts for testing:
| Account | Password | Plan | Features | |
|---|---|---|---|---|
| Demo | demo@autoflow.ai |
Demo@1234 |
Pro | Full feature access |
| Tech Startup | john@techstartup.com |
John@1234 |
Starter | Limited workflows |
| Marketing | sarah@marketing.com |
Sarah@1234 |
Pro | Advanced features |
| Enterprise | mike@enterprise.com |
Mike@1234 |
Enterprise | Unlimited access |
POST /api/v1/auth/register
Content-Type: application/json
{
"name": "John Doe",
"email": "john@example.com",
"password": "SecurePass123",
"orgName": "John's Organization"
}POST /api/v1/auth/login
Content-Type: application/json
{
"email": "john@example.com",
"password": "SecurePass123"
}POST /api/v1/auth/refresh
Content-Type: application/json
{
"refreshToken": "eyJhbGciOiJIUzI1NiJ9..."
}GET /api/v1/auth/me
Authorization: Bearer <access_token>POST /api/v1/workflows
Authorization: Bearer <access_token>
Content-Type: application/json
{
"name": "Lead Enrichment",
"description": "Automatically enrich lead data",
"triggerType": "webhook",
"steps": [
{
"id": "scrape",
"tool": "scrape_webpage",
"input": { "url": "{{trigger.website}}" }
}
]
}POST /api/v1/workflows/:id/run
Authorization: Bearer <access_token>
Content-Type: application/json
{
"data": {
"website": "https://example.com",
"email": "lead@example.com"
}
}const workflow = await fetch('/api/v1/workflows', {
method: 'POST',
headers: {
'Authorization': `Bearer ${token}`,
'Content-Type': 'application/json'
},
body: JSON.stringify({
name: 'Email Automation',
triggerType: 'webhook',
steps: [
{
id: 'send_email',
tool: 'send_email',
input: {
to: '{{trigger.email}}',
subject: 'Welcome!',
body: 'Hello {{trigger.name}}'
}
}
]
})
});const execution = await fetch(`/api/v1/workflows/${workflowId}/run`, {
method: 'POST',
headers: {
'Authorization': `Bearer ${token}`,
'Content-Type': 'application/json'
},
body: JSON.stringify({
data: {
email: 'user@example.com',
name: 'John Doe'
}
})
});# Server
NODE_ENV=development
PORT=5000
APP_URL=http://localhost:5000
# Database
DATABASE_URL=postgresql://user:pass@host:port/db
REDIS_URL=redis://user:pass@host:port
# Authentication
JWT_ACCESS_SECRET=256-bit-secret-key
JWT_REFRESH_SECRET=256-bit-secret-key
JWT_ACCESS_EXPIRES=15m
JWT_REFRESH_EXPIRES=7d
# AI Services
ANTHROPIC_API_KEY=sk-ant-api03-...
OPENAI_API_KEY=sk-...
GOOGLE_AI_API_KEY=...
# Email
SMTP_HOST=smtp.gmail.com
SMTP_PORT=587
SMTP_USER=your-email@gmail.com
SMTP_PASS=your-app-password
EMAIL_FROM=noreply@autoflow.aiNEXT_PUBLIC_API_URL=http://localhost:5000/api/v1
NEXT_PUBLIC_APP_URL=http://localhost:3000
NEXT_PUBLIC_APP_NAME=AutoFlow AIautoflow-ai/
βββ client/ # Next.js 16 Frontend
β βββ src/
β β βββ app/ # App Router pages
β β βββ components/ # UI components
β β βββ lib/ # Utilities and API client
β β βββ hooks/ # Custom React hooks
β βββ public/ # Static assets
β βββ package.json
βββ server/ # Node.js Backend
β βββ src/
β β βββ modules/ # API modules (auth, workflows, etc.)
β β βββ middlewares/ # Express middleware
β β βββ utils/ # Helper utilities
β β βββ config/ # Configuration files
β βββ prisma/ # Database schema and migrations
β βββ package.json
βββ docs/ # Documentation
βββ README.md
# Unit tests
npm run test:unit
# Integration tests
npm run test:integration
# E2E tests
npm run test:e2e
# Coverage report
npm run test:coverage# Generate Prisma client
npx prisma generate
# Run migrations
npx prisma migrate dev
# Reset database
npx prisma migrate reset
# View database
npx prisma studio# Lint code
npm run lint
# Format code
npm run format# Build and run with Docker Compose
docker-compose up -d
# View logs
docker-compose logs -f# Build for production
cd client && npm run build
cd server && npm run build
# Start production servers
npm run start- Use strong, randomly generated secrets
- Configure proper CORS origins
- Set up SSL certificates
- Configure production database and Redis
- JWT Tokens: Secure access and refresh token system
- Rate Limiting: Configurable rate limits per endpoint
- Account Lockout: Automatic lockout after failed attempts
- Session Management: Multiple concurrent sessions with limits
- Encryption: All sensitive data encrypted at rest
- Audit Logging: Complete audit trail of all actions
- Input Validation: Comprehensive input sanitization
- SQL Injection Prevention: Parameterized queries with Prisma
- CORS Configuration: Proper cross-origin resource sharing
- Security Headers: Helmet.js for security headers
- Environment Isolation: Separate configs for each environment
We welcome contributions! Please see our Contributing Guide for details.
- Fork the repository
- Create a 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
- Use ESLint and Prettier configurations
- Follow TypeScript best practices
- Write meaningful commit messages
- Add tests for new features
This project is licensed under the MIT License - see the LICENSE file for details.
- Documentation: docs.autoflow.ai
- Issues: GitHub Issues
- Discussions: GitHub Discussions
- Email: support@autoflow.ai
- Advanced workflow templates marketplace
- Multi-tenant SSO integration
- Advanced analytics and reporting
- Mobile app (React Native)
- Visual workflow builder
- Advanced AI agent capabilities
- Integration with 500+ more tools
- Enterprise SSO (SAML, OAuth2)
- API Response Time: <50ms average
- Uptime: 99.9% SLA
- Concurrent Users: 10,000+ supported
- Workflow Executions: 1M+ per day
- Token Processing: 100M+ tokens monthly
Built with β€οΈ by the AutoFlow AI Engineering Team
β‘ Automating the Future, One Workflow at a Time β‘