mirror of
https://github.com/Zie619/n8n-workflows.git
synced 2026-11-01 03:01:56 +08:00
- Docker Compose stack with n8n, Agent Zero, and ComfyUI - One-command startup scripts for Windows (PowerShell) and Linux/macOS - Pre-built n8n workflows for ComfyUI integration: - comfyui-image-generation.json: Full webhook-triggered image pipeline - comfyui-simple-test.json: Connectivity test workflow - Comprehensive README with setup instructions and API reference - Shared volume architecture for cross-service data access - GPU support with automatic detection and CPU fallback
130 lines
3.3 KiB
JSON
130 lines
3.3 KiB
JSON
{
|
|
"name": "ComfyUI Simple Test",
|
|
"nodes": [
|
|
{
|
|
"parameters": {
|
|
"httpMethod": "GET",
|
|
"path": "comfyui-status",
|
|
"responseMode": "responseNode",
|
|
"options": {}
|
|
},
|
|
"id": "webhook-status",
|
|
"name": "Status Check Webhook",
|
|
"type": "n8n-nodes-base.webhook",
|
|
"typeVersion": 2,
|
|
"position": [250, 300],
|
|
"webhookId": "comfyui-status"
|
|
},
|
|
{
|
|
"parameters": {
|
|
"url": "http://comfyui:8188/system_stats",
|
|
"options": {}
|
|
},
|
|
"id": "get-system-stats",
|
|
"name": "Get ComfyUI Stats",
|
|
"type": "n8n-nodes-base.httpRequest",
|
|
"typeVersion": 4.2,
|
|
"position": [470, 300]
|
|
},
|
|
{
|
|
"parameters": {
|
|
"url": "http://comfyui:8188/object_info",
|
|
"options": {}
|
|
},
|
|
"id": "get-object-info",
|
|
"name": "Get Available Nodes",
|
|
"type": "n8n-nodes-base.httpRequest",
|
|
"typeVersion": 4.2,
|
|
"position": [470, 480]
|
|
},
|
|
{
|
|
"parameters": {
|
|
"jsCode": "const stats = $('Get ComfyUI Stats').first().json;\nconst nodeCount = Object.keys($('Get Available Nodes').first().json || {}).length;\n\nreturn {\n json: {\n status: 'connected',\n comfyui: {\n system_stats: stats,\n available_nodes: nodeCount,\n endpoints: {\n prompt: 'POST http://comfyui:8188/prompt',\n history: 'GET http://comfyui:8188/history/{prompt_id}',\n queue: 'GET http://comfyui:8188/queue',\n system_stats: 'GET http://comfyui:8188/system_stats',\n view_image: 'GET http://comfyui:8188/view?filename={name}&type=output'\n }\n },\n message: 'ComfyUI is running and accessible from n8n!'\n }\n};"
|
|
},
|
|
"id": "format-response",
|
|
"name": "Format Response",
|
|
"type": "n8n-nodes-base.code",
|
|
"typeVersion": 2,
|
|
"position": [690, 380]
|
|
},
|
|
{
|
|
"parameters": {
|
|
"respondWith": "json",
|
|
"responseBody": "={{ JSON.stringify($json, null, 2) }}",
|
|
"options": {}
|
|
},
|
|
"id": "respond",
|
|
"name": "Respond",
|
|
"type": "n8n-nodes-base.respondToWebhook",
|
|
"typeVersion": 1.1,
|
|
"position": [910, 380]
|
|
}
|
|
],
|
|
"connections": {
|
|
"Status Check Webhook": {
|
|
"main": [
|
|
[
|
|
{
|
|
"node": "Get ComfyUI Stats",
|
|
"type": "main",
|
|
"index": 0
|
|
},
|
|
{
|
|
"node": "Get Available Nodes",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
]
|
|
},
|
|
"Get ComfyUI Stats": {
|
|
"main": [
|
|
[
|
|
{
|
|
"node": "Format Response",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
]
|
|
},
|
|
"Get Available Nodes": {
|
|
"main": [
|
|
[
|
|
{
|
|
"node": "Format Response",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
]
|
|
},
|
|
"Format Response": {
|
|
"main": [
|
|
[
|
|
{
|
|
"node": "Respond",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
]
|
|
}
|
|
},
|
|
"settings": {
|
|
"executionOrder": "v1"
|
|
},
|
|
"meta": {
|
|
"templateCredsSetupCompleted": true
|
|
},
|
|
"tags": [
|
|
{
|
|
"name": "ComfyUI",
|
|
"id": "1"
|
|
},
|
|
{
|
|
"name": "Test",
|
|
"id": "2"
|
|
}
|
|
]
|
|
} |