Clone n8n Workflows between Instances using n8n API

Clone n8n workflows seamlessly between instances using the n8n API. This automated process allows you to efficiently transfer and replicate workflows, ensuring consistency across your projects. With 17 integrated nodes, it simplifies the management of workflows, saving time and reducing manual effort.

7/4/2025
17 nodes
Complex
aw8supytkfxdtmzl6rb8rvhkzj4t0knemanualcomplexn8nsplitinbatchessticky notesplitoutfilteradvancedapiintegration
Categories:
Manual TriggeredComplex Workflow
Integrations:
N8nSplitInBatchesSticky NoteSplitOutFilter

Target Audience

This workflow is ideal for:
- Project Managers looking to streamline the migration of workflows between different n8n instances.
- Developers who need to automate the duplication of workflows for testing or development purposes.
- Teams working with multiple n8n accounts who want to maintain consistency across their automation processes.
- Integration Specialists who are responsible for ensuring that workflows are replicated accurately across environments.

Problem Solved

This workflow addresses the challenge of manually transferring workflows between different n8n instances, which can be time-consuming and prone to errors. By automating this process, users can:
- Save Time by eliminating manual duplication.
- Reduce Errors that can occur during manual transfers.
- Enhance Consistency across different environments by ensuring workflows are identical.

Workflow Steps

  • Manual Trigger: The workflow starts when the user clicks the 'Test workflow' button.
    2. GET Workflows: It fetches the existing workflows from the source n8n instance.
    3. Split Out Workflows: The fetched workflows are split into individual items for processing.
    4. Loop Over Items: Each workflow is processed in batches (5 at a time).
    5. CREATE Workflow: For each workflow, a new workflow is created in the destination n8n instance.
    6. GET Projects: The workflow retrieves the available projects in the destination instance.
    7. Filter Projects: It filters the projects to find the specific destination project where the workflows will be transferred.
    8. SET Project ID: The project ID is set for the workflow transfer.
    9. PUT Workflow in Project: The newly created workflows are transferred to the identified project in the destination instance.
    10. GET Destination Workflows: Finally, it retrieves the workflows from the destination instance to confirm the transfer.
  • Customization Guide

    Users can customize this workflow by:
    - Changing Credentials: Update the credentials for the source and destination n8n accounts to match their own.
    - Modifying Project Names: Adjust the project name in the filter condition to target different projects.
    - Adjusting Batch Size: Change the batch size in the 'Loop Over Items' node to process more or fewer workflows at once.
    - Adding Additional Logic: Integrate more nodes for logging, notifications, or error handling as needed to suit specific requirements.