Import workflows and map their credentials using a multi-form
Ready for 3.0What this workflow does
This workflow has 37 nodes and runs when someone submits an n8n form (“Workflow Import”). It uses only n8n's built-in nodes.
How it runs
Trigger: When someone submits an n8n form (“Workflow Import”).
- Determine Workflow Source (If): checks a condition and branches into true / false
- Upload File (n8n Form): shows the next form page
- Settings (Edit Fields (Set)): sets 1 field: remoteInstances
- Extract from File: extracts data from a file (from json)
- Generate Instance Options (Code): runs custom JavaScript code
- Export Credentials (Execute Command): runs a shell command on the n8n host
- Choose Instance (n8n Form): shows the next form page
- Get Credentials Data (Read/Write Files from Disk): reads a file from disk
- Merge: merges the data from its input branches
- Prepare Request Data (Code): runs custom JavaScript code
…plus 24 more steps. 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 (17)
- Extract from File
n8n-nodes-base.extractFromFile - Execute Command
n8n-nodes-base.executeCommand - Read/Write Files from Disk
n8n-nodes-base.readWriteFile - Merge
n8n-nodes-base.merge - Edit Fields (Set)
n8n-nodes-base.set - Code
n8n-nodes-base.code - HTTP Request
n8n-nodes-base.httpRequest - No Operation, do nothing
n8n-nodes-base.noOp - If
n8n-nodes-base.if - n8n Form
n8n-nodes-base.form - Split Out
n8n-nodes-base.splitOut - Sort
n8n-nodes-base.sort - Rename Keys
n8n-nodes-base.renameKeys - n8n
n8n-nodes-base.n8n - n8n Form Trigger
n8n-nodes-base.formTrigger - Filter
n8n-nodes-base.filter - Remove Duplicates
n8n-nodes-base.removeDuplicates
From the author
Purpose This workflow allows you to import any workflow from a file or another n8n instance and map the credentials easily. How it works - A multi-form setup guides you through the entire process - At the beginning you have two options: - Upload a workflow…