n8n

How to Sync n8n Workflows Across Instances?

Move workflow builds from one n8n instance to another and place them into the right project. Great for teams that promote from development to production or consolidate servers without manual export and import clicks.

A manual trigger starts the run. The flow first reads workflows from the source n8n and the destination n8n. It splits both lists, then uses a merge step to line up items so you can copy only what is needed. A code step logs the combined view for checks. Items are processed in batches of five. For each item, the system creates a new workflow in the destination with the same name, nodes, and connections. It then pulls the list of projects, filters to the one you want, and transfers each new workflow into that project. The loop continues until all items are done.

You will need two n8n API credentials, one for the source and one for the destination. Set the project filter to match your destination project by name and adjust the batch size if needed. Expect faster promotions, fewer mistakes, and a clear path to organize work by project. Useful for teams running dev and prod, admins merging instances, and anyone who needs a repeatable migration method.

What are the key features?

  • Manual trigger to run migrations on demand when the team is ready
  • Reads workflows from the source n8n and the destination n8n using API nodes
  • Split Out nodes break large lists into single items for precise control
  • Merge by SQL mode aligns source and destination to spot items to copy
  • Batch processing moves five workflows at a time for stable runs
  • Creates destination workflows with name, nodes, and connections kept intact
  • Fetches destination projects, filters by project name, and sets the project ID
  • Transfers each new workflow into the chosen project through a PUT request

What are the benefits?

  • Reduce manual export and import from hours to minutes
  • Automate up to 90% of migration clicks with batch processing
  • Improve accuracy by copying exact workflow JSON structures
  • Handle up to 200 items per pull with list limits and batching
  • Connect source and destination n8n securely with separate credentials

How do you set it up?

  1. Import the template into n8n: Create a new workflow in n8n > Click the three dots menu > Select 'Import from File' > Choose the downloaded JSON file.
  2. You'll need accounts with n8n. See the Tools Required section above for links to create accounts with these services.
  3. Create two credentials in the n8n credentials manager, one for the source n8n and one for the destination n8n. Double click each n8n API node, choose the 'Credential to connect with' dropdown, click 'Create new credential', then follow the on screen instructions.
  4. Open the node named GET - Workflows and select your source n8n credential. Confirm the base URL points to your source instance.
  5. Open GET - Destination Workflows, CREATE - Workflow, n8n - GET - Projects, and PUT - Workflow in Project. Set each to use your destination n8n credential and confirm the base URL is correct.
  6. Open the Filter Project node and set the rule so the project name matches your target destination project exactly.
  7. Review Loop Over Items and adjust the batch size if you need faster or safer runs. Keep five if you want a steady pace.
  8. Click Test workflow to run it. Watch the execution. Confirm new workflows appear in the destination All Workflows list.
  9. Open a created workflow in the destination and check it is under the correct project. If not, update the project filter and run again.
  10. If you see 401 or 403 errors, recheck API credentials and permissions. If no project is found, verify the project name in Filter Project. If duplicates appear, review the merge configuration and destination list limit.
  11. Start with a small set by lowering batch size or limiting items. After a clean test, run the full migration.

Tools Required

$24 / mo or $20 / mo billed annually to use n8n in the cloud. However, the local or self-hosted n8n Community Edition is free.

n8n API

Sign up

Community Edition (self-hosted): $0 (public REST API available). Cloud Starter: $20 / mo billed annually ($24 monthly); API unavailable during free trial.

Credits:
AlexK1919

Similar Templates

Join Futurise to access 1,200+ automation templates

Get instant access to ready-made automation workflows for n8n, Make.com, AI agents, and more. Download, customise, and deploy in minutes.