Restore workflows from GitHub to another n8n instance via the n8n API
Ready for 3.0What this workflow does
This workflow has 12 nodes and runs manually, when you click “Execute workflow”. It uses only n8n's built-in nodes.
How it runs
Trigger: Manually, when you click “Execute workflow”.
- Set Restore Configurations (Edit Fields (Set)): sets or maps fields
- Check Selected Path (If): checks a condition and branches into true / false
- Generate Restore Item Code (Code): runs custom JavaScript code
- Fetch GitHub Workflow Files (HTTP Request): calls an HTTP API
- Download GitHub Workflow File (HTTP Request): calls an HTTP API
- Generate Restore File List (Code): runs custom JavaScript code
- Sanitize Workflow Data (Code): runs custom JavaScript code
- Fetch Target Workflow (HTTP Request): calls an HTTP API
- Check Workflow Existence (If): checks a condition and branches into true / false
- Update Existing Workflow (HTTP Request): calls an HTTP API
…plus 1 more step. See the full node list below.
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (5)
- Manual Trigger
n8n-nodes-base.manualTrigger - Edit Fields (Set)
n8n-nodes-base.set - If
n8n-nodes-base.if - Code
n8n-nodes-base.code - HTTP Request
n8n-nodes-base.httpRequest
From the author
Quick overview Restore one or all n8n workflows from a GitHub repository into any n8n instance — in one click. Use it for disaster recovery, migrating to a new n8n instance, bulk importing workflows, or recovering a single accidentally deleted workflow. How…