Files
light-heart-labs--dreamserver/ods/extensions/library/workflows/comfyui
wehub-resource-sync 9e8f1bbeed
Dashboard / frontend (push) Failing after 0s
Dashboard / api (push) Failing after 0s
Lint PowerShell / powershell-lint (ubuntu-latest) (push) Failing after 1s
Python Lint / Lint Python with Ruff (push) Failing after 1s
ShellCheck / Lint shell scripts (push) Failing after 1s
Matrix Smoke / linux-smoke (push) Failing after 1s
Matrix Smoke / distro: cachyos (push) Failing after 15s
Matrix Smoke / distro: linux-mint-21.3 (push) Failing after 15s
Matrix Smoke / distro: debian-12 (push) Failing after 5m21s
Matrix Smoke / distro: fedora-41 (push) Failing after 4m56s
Matrix Smoke / distro: ubuntu-24.04 (push) Failing after 2m13s
Matrix Smoke / distro: rocky-9 (push) Failing after 10m39s
Matrix Smoke / distro: manjaro (push) Failing after 12m11s
Matrix Smoke / distro: opensuse-tw (push) Failing after 11m53s
Matrix Smoke / distro: archlinux (push) Failing after 20m3s
Matrix Smoke / distro: ubuntu-22.04 (push) Failing after 13m49s
Validate .env Schema / tier-1-env-validation (push) Successful in 52s
Validate .env Schema / tier-2-env-validation (push) Successful in 44s
Validate .env Schema / tier-3-env-validation (push) Successful in 52s
Validate .env Schema / tier-4-env-validation (push) Successful in 51s
Validate Extensions Catalog / Check catalog is up-to-date (push) Failing after 9m47s
Secret Scan / Scan for secrets (push) Failing after 21m4s
Validate Docker Compose / Validate Docker Compose files (push) Has been cancelled
Python Type Check / Type check with mypy (push) Has been cancelled
Validate .env Schema / tier-0-env-validation (push) Has been cancelled
Test Linux / integration-smoke (push) Has been cancelled
Lint PowerShell / powershell-lint (windows-latest) (push) Has been cancelled
Matrix Smoke / macos-smoke (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 12:31:33 +08:00
..

ComfyUI Workflows

This directory contains n8n workflow templates for integrating ComfyUI with other services.

Available Workflows

1. LLM to Image Generation (llm-to-image.json)

This workflow enhances prompts with the LLM, then uses a predefined ComfyUI workflow with the enhanced prompt:

  1. Webhook: Receives prompts with optional API key authentication
  2. Input Validation: Validates prompt length, channel format
  3. LLM Enhancement: Sends to LLM to generate an enhanced image generation prompt
  4. ComfyUI Execution: Uses the predefined workflow with the enhanced prompt
  5. Output: Returns enhanced prompt and status to Discord

Use Case

Best for consistent, high-quality image generation with prompt engineering.

Environment Variables

  • LLM_HOST - LLM server host (default: localhost)
  • LLM_PORT - LLM port (default: 8080)
  • COMFYUI_HOST - ComfyUI host (default: localhost)
  • COMFYUI_PORT - ComfyUI port (default: 8188)
  • COMFYUI_MODEL_NAME - ComfyUI model name (default: flux1-dev.safetensors)
  • LLM_TO_IMAGE_API_KEY - Optional API key for webhook authentication

Usage

curl -X POST http://localhost:5678/webhook/llm-to-image \
  -H "Content-Type: application/json" \
  -H "X-API-Key: your-api-key" \
  -d '{
    "prompt": "A beautiful landscape with mountains",
    "channel": "#art"
  }'

2. Dynamic Workflow Generation (llm-image-gen.json)

This workflow enables AI-powered image generation by having the LLM generate the ComfyUI workflow JSON dynamically:

  1. Webhook: Receives image generation prompts via POST to /comfyui-dynamic-workflow
  2. LLM Processing: Sends the prompt to the LLM (llama-server) to generate a ComfyUI workflow JSON
  3. ComfyUI Execution: Submits the dynamically generated workflow to ComfyUI for image generation
  4. Output: Returns status to Discord

Use Case

Best when you want the LLM to adapt the ComfyUI workflow structure based on the prompt complexity and requirements.

Environment Variables

  • LLM_HOST - LLM server host (default: localhost)
  • LLM_API_PORT - LLM API port (default: 8080)
  • COMFYUI_HOST - ComfyUI host (default: localhost)
  • COMFYUI_PORT - ComfyUI port (default: 8188)
  • COMFYUI_DYNAMIC_API_KEY - Optional API key for webhook authentication

Usage

curl -X POST http://localhost:5678/webhook/comfyui-dynamic-workflow \
  -H "Content-Type: application/json" \
  -H "X-API-Key: your-api-key" \
  -d '{
    "prompt": "Create a photorealistic portrait of a cyberpunk samurai",
    "channel": "#art"
  }'

Setup

  1. Import workflows into n8n
  2. Configure environment variables in your n8n instance
  3. Ensure ComfyUI is running and accessible
  4. Ensure LLM server (llama-server) is running and accessible