Description

n8n-nodes-comfyui
This package provides n8n nodes to integrate with ComfyUI – A powerful and modular stable diffusion GUI with a graph/nodes interface.
Features
- Execute ComfyUI workflows directly from n8n
- Support for workflow JSON import
- Automatic mesh retrieval from workflow outputs
- Progress monitoring and error handling
- Support for API key authentication
- Configurable timeout settings
Prerequisites
- n8n (version 1.0.0 or later)
- ComfyUI instance running and accessible
- Node.js 16 or newer
Installation
npm install n8n-nodes-comfyui-glb
Node Configuration
ComfyUI Node
This node allows you to execute ComfyUI workflows and retrieve generated meshes.
Settings
- API URL: The URL of your ComfyUI instance (default: http://127.0.0.1:8188)
- API Key: Optional API key if authentication is enabled
- Output Format: The file extension you wish to retrieve
- Workflow JSON: The ComfyUI workflow in JSON format
Outputs
The node outputs an array of generated meshes with:
filename: Name of the generated image filedata: Base64 encoded mesh data
Usage Example
- Export your workflow from ComfyUI as JSON
- Create a new workflow in n8n
- Add the ComfyUI node
- Paste your workflow JSON
- Configure the API URL
- Execute and retrieve generated meshes
Error Handling
The node includes comprehensive error handling for:
- API connection issues
- Invalid workflow JSON
- Execution failures
- Timeout conditions (default 30 minutes)
Development
# Install dependencies
npm install
# Build
npm run build
# Test
npm run test
# Lint
npm run lint