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