Overview
Three core n8n workflows automate the Devarno V01T integration:- Ecosystem Sync Workflow — Monitor DEVARNO.json changes, seed organizations
- Article Publish Workflow — Detect article status changes, update Flight Path metadata
- Quality Gate Workflow — Validate data before sync, run tests, report failures
Workflow 1: Ecosystem Sync
Purpose: Periodically check DEVARNO.json for updates and sync organizations to V01T. Trigger: Scheduled (daily at 2 AM UTC) or manual webhook Flow:Node Configuration
1.1 Trigger Node
Type:Schedule or Webhook
1.2 Fetch DEVARNO.json
Type:HTTP Request
1.3 Validate Schema
Type:Function
1.4 Detect Changes
Type:Function
Compares fetched data with last synced version (stored in Telegram/Redis/state):
1.5 Run seed_ecosystem
Type:SSH or HTTP Request (to Django management endpoint)
Option A: SSH to server
1.6 Notify Success
Type:Slack (or email, Telegram)
1.7 Quality Gate
Type:Execute Workflow (calls Workflow 3)
Connections
Workflow Definition (JSON)
Workflow 2: Article Publish
Purpose: Monitor article status changes (via webhook or polling) and update V01T Flight Path metadata. Trigger: Webhook from external CMS (Notion integration) or manual trigger Flow:Node Configuration
2.1 Webhook Trigger
Type:Webhook
2.2 Validate Article
Type:Function
2.3 Run seed_flight_path
Type:HTTP Request
2.4 Clear Cache
Type:HTTP Request
Invalidate CDN/ISR cache for blog pages:
2.5 Notify Slack
Type:Slack
Connections
Workflow 3: Quality Gate
Purpose: Validate synced data, run API tests, and report failures. Trigger: Called from Workflow 1/2, or manual webhook Flow:Node Configuration
3.1 Validate Data Integrity
Type:Function
3.2 Test V01T API
Type:HTTP Request
3.3 Assert Records
Type:Function
3.4 Report Metrics
Type:HTTP Request (to monitoring service)
3.5 Failure Alert (conditional)
Type:Slack (only if Assert Records fails)
Connections
Environment Variables
All workflows require these environment variables set in n8n:| Variable | Example | Used By |
|---|---|---|
V01T_ADMIN_TOKEN | v01t_sk_abc123xyz | seed_ecosystem, seed_flight_path |
V01T_API_URL | https://v01t-api.devarno.cloud | All workflows |
SLACK_WEBHOOK_URL | https://hooks.slack.com/services/... | Slack notifications |
NEXT_REVALIDATE_TOKEN | isr_token_123 | Cache invalidation |
METRICS_API_TOKEN | metrics_key_abc | Metrics reporting |
DEVARNO_GITHUB_URL | https://raw.githubusercontent.com/devarno-cloud/atlas/main | Fetch DEVARNO.json |
Deployment
Import to n8n
- via UI: Admin → Workflows → Import from File
- via API:
Enable Workflows
Schedule Execution
Workflows automatically run on schedules defined in nodes. For manual triggers, use webhooks: Ecosystem sync:Monitoring
Success Indicators
- ✅ All nodes complete without errors
- ✅ Slack notifications received
- ✅ Metrics recorded in monitoring service
- ✅ Cache invalidation successful
Failure Scenarios
| Scenario | Detection | Recovery |
|---|---|---|
| DEVARNO.json fetch fails | HTTP error in node 1.2 | Retry after 5 min, alert |
| Validation fails | Schema error in node 1.3 | Rollback, notify team |
| seed_ecosystem fails | SSH/HTTP error in node 1.5 | Manual intervention, post incident report |
| API test fails | Assertion error in node 3.3 | Pause Workflow 1/2, investigate |
Logging
All executions logged to n8n database. Query via:Related
- V01T Integration Guide — Core integration patterns
- Operations Runbooks — Incident response procedures
- SO1 n8n API — Workflow API documentation