A standalone automation executor for JSON-defined workflows with HTTP requests, webhooks, scheduled executions, and AI agent automations. Build powerful automations using simple JSON configurations with multi-provider AI support.
┌─────────────────────────────────────────────────────────┐
│ AUTOMATION EXECUTOR SYSTEM │
│ (1000+ RPS Capacity) │
└─────────────────────────────────────────────────────────┘
│
┌─────────────────────────┼─────────────────────────┐
│ │ │
┌───────────────┐ ┌─────────────┐ ┌───────────────┐
│ 👥 Web Apps │ │ 📱 Mobile │ │ 🔗 API Clients│
│ (React) │────────▶│ Apps │◀────────│ (cURL) │
└───────────────┘ └─────────────┘ └───────────────┘
│
┌─────────────────┐
│ 🌐 Load Balancer │
│ (Auto-Scale) │
└─────────────────┘
│
┌─────────────────┐
│ 🚪 API Gateway │
│ • Authentication │
│ • Rate Limiting │
│ • Request Valid. │
└─────────────────┘
│
┌───────────────────────────────────────────────────────────────────────────┐
│ 🎯 EXECUTOR CORE │
├──────────────┬──────────────┬──────────────┬──────────────┬──────────────┤
│ 📋 Workflow │ ⚡ Execution │ 🔐 Auth │ 🤖 AI Agent │ 🔧 Node │
│ Manager │ Queue │ Service │ Service │ Executors │
│ │ │ │ │ │
│ • Templates │ • 4 Priority │ • API Keys │ • OpenAI │ • Code Exec │
│ • User Flows │ • 20 Workers │ • Quotas │ • Google AI │ • HTTP Calls │
│ • Categories │ • Round Robin│ • Rate Limit │ • OpenRouter │ • Webhooks │
│ • Dynamic │ • Timeout │ • JWT │ • Multi-Tool │ • Scheduling │
│ Loading │ Handling │ Support │ Support │ • AI Agents │
└──────────────┴──────────────┴──────────────┴──────────────┴──────────────┘
│
┌───────────────────────────────────────────────────────────────────────────┐
│ 💾 STORAGE LAYER │
├──────────────┬──────────────┬──────────────┬──────────────┬──────────────┤
│ 📁 Workflows │ 👥 User Data │ ⚡ Cache │ 🔒 Secrets │ 📊 Metrics │
│ │ │ │ │ │
│ • Templates │ • Profiles │ • Results(1h)│ • API Keys │ • Usage Stats│
│ • Custom │ • Usage │ • Queue │ • Configs │ • Performance│
│ • Public │ • Quotas │ Status │ • Encrypted │ • Health │
│ (File System)│ (Database) │ (Memory) │ (Vault) │ (Time Series)│
└──────────────┴──────────────┴──────────────┴──────────────┴──────────────┘
│
┌───────────────────────────────────────────────────────────────────────────┐
│ 🌍 MULTI-CLOUD DEPLOYMENT │
├─────────────────┬─────────────────┬─────────────────┬─────────────────────┤
│ ☁️ Google Cloud │ ☁️ Amazon AWS │ ☸️ Kubernetes │ 🐳 Docker Compose │
│ │ │ │ │
│ • Cloud Run │ • ECS Fargate │ • Any Provider │ • Local/VPS │
│ • 0-1000 scale │ • 2-100 tasks │ • Full Control │ • Development │
│ • Serverless │ • VPC Control │ • Portable │ • Testing │
│ • Pay-per-req │ • 35% cheaper │ • Complex │ • Simple Setup │
└─────────────────┴─────────────────┴─────────────────┴─────────────────────┘
The system includes advanced AI agent functionality with multi-tool support:
- OpenAI: GPT-3.5, GPT-4, GPT-4-turbo models
- Google AI: Gemini Pro, Gemini Ultra models
- OpenRouter: Access to 150+ models (Claude, Llama, etc.)
- Web Search: Real-time internet search capabilities
- HTTP Requests: API calls with authentication
- Code Execution: Run Python/JavaScript in sandbox
- File Operations: Read/write files securely
- Database Queries: Connect to external databases
- Email/SMS: Send notifications and alerts
{
"id": "ai-research-agent",
"name": "AI Research Assistant",
"nodes": [
{
"type": "aiAgent",
"parameters": {
"provider": "openai",
"model": "gpt-4",
"tools": ["web_search", "http_request", "code_execution"],
"prompt": "Research and analyze the latest trends in {{topic}}"
}
}
]
}The Automation Executor is a multi-cloud, serverless automation platform designed to handle 1000+ requests per second with automatic scaling and high availability.
- Load Balancer: Distributes traffic across multiple instances
- Authentication: API key-based auth with JWT support
- Rate Limiting: Per-user quotas (Free: 1K, Pro: 10K, Enterprise: 100K)
- Request Validation: JSON payload validation and sanitization
- Template Engine: 8+ pre-built workflow templates
- Dynamic Loading: Workflows loaded from file system
- User Workflows: Custom workflows per user
- Categories: AI, Tools, Scheduled, HTTP workflows
- Priority Queue: 4 levels (urgent → high → normal → low)
- Worker Pool: Configurable workers (default: 20 per instance)
- Round-Robin: Load balancing across workers
- Timeout Handling: 30-second default timeout
- Result Caching: 1-hour memory cache for results
- Multi-Provider Support: OpenAI, Google AI, OpenRouter
- Model Selection: Dynamic model routing
- Token Management: Usage tracking per provider
- Error Handling: Fallback and retry logic
Load Balancer
│
├── Instance 1 (80 concurrent)
├── Instance 2 (80 concurrent)
├── Instance 3 (80 concurrent)
└── Instance N (80 concurrent)
Total Capacity = N × 80 concurrent requests
Target: 1000+ RPS sustained
- Request → API Gateway (auth + validation)
- Workflow Resolution → Template/Custom/Main workflow
- Queue Assignment → Priority-based queuing
- Worker Assignment → Round-robin selection
- Execution → Isolated workflow execution
- Result Storage → 1-hour result caching
- Response → JSON result or execution ID
- Service: Cloud Run (serverless containers)
- Scaling: 0-1000 instances, instant scaling
- Cost: Pay-per-request model
- Deployment: 3 commands to deploy
- Service: ECS Fargate (managed containers)
- Scaling: 2-100 tasks, gradual scaling
- Cost: 35% cheaper for sustained workloads
- Deployment: Full VPC control, more setup steps
- Flexibility: Complete control over infrastructure
- Portability: Deploy anywhere (Azure, DigitalOcean, on-premise)
- Complexity: Requires K8s expertise
- API Key Hashing: SHA-256 hashed keys
- Secret Management: Cloud-native secret stores
- VM Sandboxing: Isolated code execution
- CORS Configuration: Web security
- Non-root Containers: Security best practices
- Health Endpoints:
/health,/api/status,/api/v1/queue/status - Metrics: Request rate, response time, error rate, queue depth
- Alerting: High error rate, response time, queue backlog
- Logging: Structured JSON logs with request tracing
- Code Execution: Run JavaScript code with sandbox isolation
- HTTP Requests: Make HTTP calls to external APIs
- Webhooks: Trigger workflows via HTTP webhooks
- Scheduling: Schedule workflows with cron expressions
- JSON Workflows: Define workflows in JSON format
- Multi-AI Providers: OpenAI, Google AI, OpenRouter support
- Auto-scaling: Handle 1000+ requests per second
- Multi-cloud: Deploy on GCP, AWS, or Kubernetes
npm install
npm run buildnpm start
# or for development
npm run devcurl -X POST http://localhost:3000/execute \
-H "Content-Type: application/json" \
-d '{
"workflow": {
"id": "test-workflow",
"name": "Test Workflow",
"nodes": [
{
"id": "code-1",
"type": "code",
"position": [0, 0],
"parameters": {
"code": "return { message: \"Hello World\", input: $input };"
}
}
],
"connections": []
},
"data": { "test": "data" }
}'curl -X POST http://localhost:3000/schedule \
-H "Content-Type: application/json" \
-d '{
"workflow": {
"id": "scheduled-workflow",
"name": "Scheduled Test",
"nodes": [
{
"id": "code-1",
"type": "code",
"position": [0, 0],
"parameters": {
"code": "console.log(\"Scheduled execution at\", new Date()); return { executed: true };"
}
}
],
"connections": []
},
"schedule": "*/5 * * * *"
}'curl -X POST http://localhost:3000/webhook/my-workflow-id \
-H "Content-Type: application/json" \
-d '{ "message": "Hello from webhook" }'{
"id": "unique-workflow-id",
"name": "My Workflow",
"nodes": [
{
"id": "node-1",
"type": "code|http|webhook",
"position": [x, y],
"parameters": {
// Node-specific parameters
}
}
],
"connections": [
{
"source": "node-1",
"target": "node-2"
}
]
}{
"id": "code-1",
"type": "code",
"parameters": {
"code": "return { result: $input.value * 2 };"
}
}{
"id": "http-1",
"type": "http",
"parameters": {
"url": "https://api.example.com/data",
"method": "POST",
"headers": { "Authorization": "Bearer token" },
"body": { "key": "value" }
}
}- Build the project:
npm run build - Create a
Dockerfilefor containerization - Deploy to Google Cloud Run or App Engine
- Set environment variables as needed