N8N Integration

No sections found for this integration
The integration documentation may not have the expected structure

Overview

The N8N integration in Lamatic.ai enables bidirectional integration between Lamatic and N8N platforms. This integration supports both triggering N8N flows from Lamatic and executing Lamatic flows from N8N, providing flexible automation capabilities for complex workflows.

This integration combines N8N's powerful workflow automation with Lamatic's Gen AI capabilities, enabling sophisticated cross-platform automation scenarios.

Features

✅ Key Functionalities

  • Bidirectional Integration: Supports both N8N to Lamatic and Lamatic to N8N flow execution
  • Easy Configuration: Simple dropdown-based workflow selection and credential management
  • Webhook Support: Built-in webhook handling for seamless real-time communication
  • Flexible Triggers: Multiple trigger options for different automation scenarios
  • Real-time Execution: Instant flow execution with webhook-based communication

✅ Benefits

  • Combines N8N's workflow automation with Lamatic's Gen AI capabilities
  • Maintains existing N8N flows while adding AI functionality
  • Enables highly configurable cross-platform automation
  • Provides seamless integration between two powerful automation platforms
  • Supports complex workflow orchestration across multiple systems

Prerequisites

Before setting up the N8N integration, ensure you have:

  • N8N Setup: Choose your preferred deployment option:
    • N8N Cloud: Hosted version with associated pricing plans
    • Community Edition: Self-hosted installation on your own server
  • N8N Lamatic Module: Community node installed in your N8N instance
  • API Access: Valid N8N API key for authentication
  • Network Access: Proper network connectivity between Lamatic and N8N instances
  • Webhook Configuration: Understanding of webhook setup and management
⚠️

If the connection fails, whitelist the following IPs: https://www.cloudflare.com/ips/ (opens in a new tab)

Setup

Step 1: Set Up N8N

  1. Choose Deployment Option:

  2. Install Lamatic Module:

    • Navigate to Settings > Community Nodes in N8N interface
    • Click Install and enter n8n-nodes-lamatic-ai
    • Restart N8N to activate the module
⚠️

Ensure you have proper permissions to install community nodes in your N8N instance.

Step 2: Configure N8N API Access

  1. Generate API Key:

    • Go to Settings > API in N8N interface
    • Copy the generated API key securely
    • Note your N8N host URL
  2. Test Connection:

    • Verify API key works with N8N instance
    • Ensure proper network connectivity

Step 3: Set Up Lamatic Integration

  1. Add N8N Node: Drag the N8N node to your Lamatic flow
  2. Configure Credentials: Add new credentials with N8N host URL and API key
  3. Select Integration Type: Choose between N8N to Lamatic or Lamatic to N8N

Configuration Reference

Credential Configuration

ParameterDescriptionRequiredExample
Credential NameIdentifier for the credential setmy-n8n-creds
Host URLN8N instance URL (with protocol)https://n8n.example.com
API KeyN8N authentication keyyour-api-key

Trigger Node Configuration (N8N > Lamatic)

ParameterDescriptionRequiredExample
CredentialsSelected N8N credentialsmy-n8n-creds
Workflow IDN8N workflow identifierworkflow-123
Advanced SchemaCustom input schema for workflow data{}

Action Node Configuration (Lamatic > N8N)

ParameterDescriptionRequiredExample
CredentialsSelected N8N credentialsmy-n8n-creds
Workflow IDN8N workflow identifierworkflow-123
Webhook PathAuto-generated webhook path (non-configurable)auto-generated-path

Integration Scenarios

Scenario 1: Trigger Lamatic from N8N

N8N to Lamatic Flow

Setup Process:

  1. N8N Side:

    • Create new workflow in N8N
    • Add Lamatic node to workflow
    • Configure with Lamatic project URL and API key
    • Define workflow input in JSON format
    • Specify Lamatic workflow ID
  2. Lamatic Side:

    • Use N8N as trigger node
    • Define input schema for incoming data
    • Configure credentials with N8N host URL and API key

Scenario 2: Trigger N8N from Lamatic

Lamatic to N8N Flow

Setup Process:

  1. N8N Side:

    • Create new workflow in N8N
    • Add webhook trigger node
    • Define webhook path for Lamatic communication
    • Configure workflow to handle incoming data
  2. Lamatic Side:

    • Use API node as trigger
    • Add N8N node to flow
    • Select webhook created in N8N
    • Configure workflow execution parameters

Low-Code Examples

// Trigger Lamatic from N8N 
triggerNode:
  nodeId: triggerNode_1
  nodeType: n8nTriggerNode
  nodeName: N8N Trigger
  values:
    advance_schema: '{}'
    credentials: your credential name
    workflowId: your n8n workflow id which is linked to this node
 
// Trigger N8N from Lamatic
nodes:
  - nodeId: n8nNode_716
    nodeType: n8nNode
    nodeName: N8N
    values:
      credentials: your credential name
      workflowId:  your n8n workflow id which is linked to this node
      webhookPath: Auto Fetched Non Configurable Webhook Path
    needs:
      - triggerNode_1

Troubleshooting

Common Issues

ProblemSolution
Connection FailureVerify N8N Host URL and API credentials are correct
Webhook IssuesCheck if webhooks are properly configured and accessible
Workflow Not FoundEnsure workflow IDs are correct and workflows are active
Response TimeoutVerify network connectivity and increase timeout settings if needed
Authentication ErrorsConfirm API key permissions and validity
Module Not FoundEnsure N8N Lamatic module is properly installed and N8N is restarted
Schema MismatchVerify input/output schemas match between N8N and Lamatic workflows

Debugging Tips

Was this page useful?

Questions? We're here to help

Subscribe to updates