With emma's n8n integration, you can manage workflows, check execution history, manage tags and environment variables, and activate/deactivate workflows. Leverage the powerful open-source workflow automation platform.
Features
n8nPage.features.authentication.title
n8nPage.features.authentication.method:API Key
n8nPage.features.authentication.description
n8n_Operator supports the following 15 tools:
Category
Tools
Workflow Management
2
Tool Name
Description
n8n_list_workflows
List workflows with optional active status filter
n8n_get_workflow
Get workflow details including nodes and settings
Execution History
2
Tool Name
Description
n8n_list_executions
List executions with workflow and status filters
n8n_get_execution
Get execution details for error investigation
Tag Management
3
Tool Name
Description
n8n_list_tags
List all tags
n8n_create_tag
Create a new tag
n8n_delete_tag
Delete a tag
Environment Variables
3
Tool Name
Description
n8n_list_variables
List environment variables
n8n_create_variable
Create a new environment variable
n8n_delete_variable
Delete an environment variable
Workflow Control
3
Tool Name
Description
n8n_activate_workflow
Activate a workflow (start automatic execution)
n8n_deactivate_workflow
Deactivate a workflow (pause)
n8n_retry_execution
Retry a failed execution
Delete Operations
2
Tool Name
Description
n8n_delete_workflow
Delete a workflow (irreversible)
n8n_delete_execution
Delete an execution record
Main Parameters
Parameter
Description
workflow_id
Workflow ID
execution_id
Execution ID
tag_id
Tag ID
variable_id
Variable ID
active
Filter by active status (True/False)
status
Filter by status (success, error, waiting)
Prerequisites
• emma account
• n8n instance (cloud or self-hosted)
• n8n API key
Setup
1. Install the package
npm install @duzzle/n8n-integration
2. Initialize
import { DuzzleN8n } from '@duzzle/n8n-integration';
const n8n = new DuzzleN8n({
apiKey: process.env.DUZZLE_API_KEY,
n8nApiKey: process.env.N8N_API_KEY,
n8nBaseUrl: process.env.N8N_BASE_URL
});
3. Activate Workflow
// Activate a workflow
const result = await n8n.activateWorkflow({
workflow_id: 'wf_123'
});
console.log('Workflow Status:', result.active ? 'Active' : 'Inactive');