Skip to main content

Overview

The n8n_deploy_template tool allows you to deploy pre-built workflow templates from n8n.io directly to your n8n instance. The tool automatically applies fixes for common issues like expression format errors and typeVersion mismatches.
Requires N8N_API_URL and N8N_API_KEY to be configured.

Parameters

templateId
number
required
Template ID from n8n.io. You can find this in the template URL (e.g., https://n8n.io/workflows/2414 → templateId: 2414)
name
string
Custom workflow name. If not provided, uses the template’s default name
autoUpgradeVersions
boolean
default:"true"
Automatically upgrade node typeVersions to latest supported versions
autoFix
boolean
default:"true"
Auto-apply fixes after deployment for expression format issues, missing = prefix, etc.
stripCredentials
boolean
default:"true"
Remove credential references from nodes (user configures credentials in n8n UI)

Response

workflowId
string
ID of the deployed workflow in your n8n instance
name
string
Name of the deployed workflow
templateId
number
Original template ID from n8n.io
requiredCredentials
array
List of credentials that need to be configured in n8n UI
fixesApplied
array
List of automatic fixes that were applied
active
boolean
Whether the workflow is active (always false for newly deployed workflows)

Examples

{
  "templateId": 2414
}

Workflow

1

Find Template

Browse n8n.io/workflows to find a template. Note the template ID from the URL.
2

Deploy Template

Use n8n_deploy_template with the template ID. The tool will:
  • Fetch the template from n8n.io
  • Deploy it to your n8n instance
  • Upgrade node versions if needed
  • Apply automatic fixes
  • Strip credential references
3

Configure Credentials

Check the requiredCredentials in the response. Configure these credentials in your n8n instance UI.
4

Activate Workflow

Review the deployed workflow in n8n, configure any required settings, and activate it.

Automatic Fixes

The tool applies these fixes automatically when autoFix: true:
Fixes n8n expression syntax issues like missing = prefix or incorrect brackets
Upgrades node typeVersions to latest supported versions to ensure compatibility
Adds missing webhook paths for Webhook nodes
Configures error output for nodes that support it
Corrects node type names if they’ve changed between n8n versions

Use Cases

Quick Start

Deploy production-ready workflows in seconds without manual configuration

Learning

Study real-world workflow examples by deploying and examining them

Templates

Create a library of workflow templates for your team

Migration

Easily migrate workflows between n8n instances

Best Practices

Always review the requiredCredentials list before activating the workflow. Missing credentials will cause execution failures.
Deployed workflows are created in inactive state. Activate them only after configuring all required credentials and reviewing the workflow logic.
Template attribution is preserved in the workflow metadata. You can see the original template author and URL in the workflow details.

Troubleshooting

Verify the template ID is correct by checking the n8n.io URL. Some templates may be private or deleted.
Set autoFix: false and manually fix issues in the n8n UI. Use n8n_validate_workflow to identify problems.
If autoUpgradeVersions: true fails, the template may use nodes not available in your n8n version. Check n8n logs for details.

Build docs developers (and LLMs) love