How to activate a workflow on n8n
Activate n8n workflows by toggling the Active switch or clicking Publish in the Editor UI top-right; workflows run automatically on triggers once active. Verify triggers, credentials, and logs first; toggle OFF/ON to re-register webhooks. CLI and API methods available for advanced users.
Prerequisites
- n8n instance running continuously (self-hosted, Cloud, or desktop app)
- At least one valid trigger node (Webhook, Cron, Schedule - not Manual Trigger)
- Valid credentials for all nodes
- Workflow ID from URL (alphanumeric string at end)
- For n8n Cloud: Available active workflow slots
Step-by-Step Instructions
Open Workflow in Editor UI
http://localhost:5678/workflow/109, ID is 109. Ensure it has at least one valid trigger node like Webhook or Schedule.Toggle Active Switch
Click Publish Button
Configure Workflow Settings
Verify Trigger Nodes
Check Credentials
Workflow is inactive or Webhook not registered.Activate via CLI (Advanced)
n8n execute --id <ID> Use this to set workflow active status directly on the database. Changes require n8n restart to take effect if instance is running.Activate via n8n API (Advanced)
/workflows/<ID> with { "active": true } and API key header. Test after upgrades as API may change.Test and Monitor Executions
Restart if Needed
Common Issues & Troubleshooting
Workflow inactive by default or toggle stuck grey
Toggle Active switch top-right to ON (green). For Webhook changes, toggle OFF/ON to re-register. Check logs for <code>Workflow is inactive</code>.
Missing trigger nodes (only Manual Trigger)
Add valid trigger like Webhook, Cron, or Schedule. Manual Trigger blocks production activation.
Invalid/expired credentials or Webhook errors
Reconnect credentials; use production Webhook URL (not test). Ensure HTTPS/SSL and correct timezone.
n8n Cloud active workflow limit hit
Check plan slots; deactivate others or upgrade.
CLI/API changes not applying
Restart n8n instance after commands. Verify Workflow ID from URL.