Skip to main content
Use n8n as the visual UI layer for your PraisonAI workflows. Two ways:
  1. praisonai n8n open agents.yaml β€” one-step command (recommended)
  2. praisonai agents.yaml --n8n β€” exports + auto-imports via the run flag

Quick Start

Every agent in your YAML becomes a node in n8n. Sequential steps are connected automatically. The visual editor opens in your browser.

praisonai n8n open β€” The Simplest UX

1

Write your YAML workflow

2

Open it in n8n

3

See your workflow

The n8n editor opens automatically with your workflow visualized as connected HTTP Request nodes β€” one per agent.
n8n Integration Exports Workflows

Usage

Basic Export

Expected Output:

Auto-Import with API Key

Expected Output:

Custom n8n URL

Custom API URL (Cloud/Tunnel)

When n8n is in the cloud and PraisonAI runs locally, use --api-url to specify a tunnel or cloud URL:

Generated Workflow Structure

The n8n workflow includes:
Each agent becomes an HTTP Request node that calls the corresponding PraisonAI API endpoint.

Complete Workflow

Step 1: Start the API Server

Step 2: Create n8n Workflow

Step 3: Trigger the Workflow

Getting n8n API Key

  1. Open n8n UI (http://localhost:5678)
  2. Go to Settings β†’ API
  3. Click Create API Key
  4. Copy the key and set it:

Example agents.yaml

n8n Workflow Features

Webhook Trigger

The workflow uses a webhook trigger for programmatic execution:
  • Path: Auto-generated from workflow name
  • Method: POST
  • Response Mode: Returns final agent output

Per-Agent HTTP Nodes

Each agent gets its own HTTP Request node:

Data Flow

Use Cases

Visual Workflow

See agent execution flow in n8n’s visual editor

Conditional Logic

Add IF nodes between agents for branching

Integration

Connect to other n8n nodes (Slack, Email, etc.)

Scheduling

Use n8n’s scheduler to run workflows periodically

Advanced: Manual Import

If auto-import fails, manually import the generated JSON:
  1. Run praisonai agents.yaml --n8n
  2. Open n8n UI
  3. Click Add Workflow β†’ Import from File
  4. Select agents_n8n.json
  5. Click Import

Troubleshooting

Connection Refused

Solution: Start the PraisonAI server first:

API Key Invalid

Solution: Verify your n8n API key:

Workflow Not Activating

Solution: Manually activate in n8n UI or check webhook settings.

Command Options

Environment Variables

Cloud/Tunnel Setup

When n8n runs in the cloud but PraisonAI runs locally, you need to expose your local API. Free, stable URLs, unlimited bandwidth.
Then use:

Option 2: ngrok (Quick Testing)

Easy setup, URL changes on restart (free tier).
Then use:

Option 3: Deploy to Cloud

Deploy PraisonAI API to Railway, Render, or Fly.io. Dockerfile:
Deploy to Railway:
Then use: