Developer & DevOps

Replicate n8n workflows between instances using the n8n API

17 nodes 254 120 Automatic trigger
Download

Workflow Description

Advanced template for replicating n8n workflows across different instances using the n8n API. Enables developers to efficiently transfer and duplicate multiple workflows between development, testing, and production environments.

How it works

  1. 1.Initiate replication process with manual trigger and workflow selection
  2. 2.Call n8n API to fetch workflows from the source instance
  3. 3.Split results into batches for efficient parallel processing
  4. 4.Apply conditional logic to filter and identify required workflows
  5. 5.Merge and format processed data for transmission
  6. 6.Send replicated workflows to target instance via API request

Use cases

  • Batch copy multiple workflows between production and development environments
  • Transfer specific automations to other n8n instances without data loss
  • Synchronize workflows across team instances while preserving configurations
  • Create distributed backups of critical workflows on separate instances

Requirements

  • Valid API keys for both source and target n8n instances
  • Understanding of HTTP requests and JSON data structure
  • Error handling implementation to ensure successful replication

Service Value

Ready-made workflow template for automation delivery and service execution.

Apps Used

N8N Split In Batches

Details

Trigger Automatic trigger
Nodes 17
Apps 2
Views 254
Downloads 120

How to Use

  1. 1.Click "Download Template"
  2. 2.Open your n8n dashboard
  3. 3.Go to Workflows > Import from File
  4. 4.Select downloaded file and configure credentials

Nodes Used (17)

/

When clicking ‘Test workflow’

Manual Trigger

#1

GET - Workflows

N8N

#2

CREATE - Workflow

N8N

#3

n8n - GET - Projects

HTTP Request

#4

SET Project ID

Set

#5

PUT - Workflow in Project

HTTP Request

#6

Loop Over Items

Split In Batches

#7

Sticky Note1

Sticky Note

#8

Sticky Note

Sticky Note

#9

Sticky Note2

Sticky Note

#10

GET - Destination Workflows

N8N

#11

Code

Code

#12

Split Out Workflows

Split Out

#13

Split Out Workflows1

Split Out

#14

Merge Workflows

Merge

#15

Split Out Projects

Split Out

#16

Filter Project

Filter

#17