Overview
This runbook covers operational procedures for managing SO1 automation agents, including n8n workflow deployment, webhook engineering, and schedule optimization. These procedures ensure reliable automation infrastructure across all stages of the FORGE pipeline. Purpose: Provide step-by-step instructions for deploying and managing automation workflows, webhooks, and scheduled tasks Scope: n8n workflow operations, webhook configuration, schedule management, automation debugging Target Audience: Automation engineers, DevOps operators, workflow architectsPrerequisites
Required Access
Required Access
- n8n instance access (https://n8n.so1.io)
- Control Plane API access (
CONTROL_PLANE_API_KEY) - Railway project access (n8n service)
- GitHub repository access (
so1-io/n8n-workflows) - Webhook endpoints access (various integrated services)
Required Tools
Required Tools
curlor API client (Postman, Insomnia)- n8n CLI (
n8ncommand) - Railway CLI (
railwaycommand) jqfor JSON parsing- OpenCode with automation agents installed
Required Knowledge
Required Knowledge
- Understanding of n8n workflow structure
- Familiarity with webhook protocols (REST, GraphQL)
- Basic knowledge of cron expressions
- Understanding of SO1 automation architecture
Procedure 1: Deploy n8n Workflow
Step 1: Prepare Workflow Definition
Create or update workflow JSON:Step 2: Validate Workflow with Workflow Architect
Step 3: Deploy to n8n
Step 4: Verify Deployment
Procedure 2: Configure Webhook Engineering
Step 1: Design Webhook Endpoint
Use Webhook Engineer agent to generate endpoint specification:Step 2: Implement Webhook Handler
Step 3: Deploy Webhook Handler
Step 4: Register Webhook with External Service
Procedure 3: Optimize Workflow Schedules
Step 1: Analyze Current Schedule Load
Step 2: Invoke Schedule Optimizer Agent
Step 3: Apply Schedule Changes
Step 4: Monitor Post-Optimization Performance
Procedure 4: Debug Workflow Failures
Step 1: Identify Failed Executions
Step 2: Retrieve Execution Details
Step 3: Common Failure Patterns
| Error Type | Symptom | Root Cause | Resolution |
|---|---|---|---|
| Rate Limit (429) | Requests rejected | Too many API calls | Add rate limiting node, implement backoff |
| Timeout | Execution hangs | Long-running operation | Increase timeout, split into smaller workflows |
| Authentication (401) | Unauthorized | Expired credentials | Rotate API keys, check secret management |
| Payload Validation | 400 Bad Request | Invalid data format | Add validation node, update payload schema |
| Missing Node Data | Workflow incomplete | Node dependency failure | Add error handling, check node connections |
Step 4: Apply Fixes and Retry
Verification Checklist
After completing automation operations, verify:Troubleshooting
Issue: Webhook Not Receiving Requests
Symptoms: External service reports success, but n8n shows no executions Possible Causes:- Webhook URL incorrect
- Workflow not activated
- Firewall blocking requests
Issue: Scheduled Workflow Not Executing
Symptoms: Schedule trigger configured, but no executions at expected times Possible Causes:- Invalid cron expression
- n8n service restarted during execution window
- Schedule trigger node disabled
Issue: Workflow Execution Extremely Slow
Symptoms: Executions taking 10x longer than expected Possible Causes:- Large payload processing
- External API latency
- Inefficient node configuration
Related Resources
Workflow Architect Agent
n8n workflow design and optimization
Webhook Engineer Agent
Webhook endpoint design and implementation
Schedule Optimizer Agent
Cron schedule optimization
Orchestration Runbook
Factory Orchestrator workflows