Nodes/ComfyUI-WorkflowGenerator/1. WorkflowGenerator
ComfyUI Node

1. WorkflowGenerator

Step 1 - Generates a workflow diagram from natural language instructions. This is the first stage of the pipeline, converting text to a structured plan.

By DanielPFlorian·Created 9 months ago·Updated 9 months ago· 34
1. WorkflowGenerator
    • workflow_edges
    • instruction
    instruction
    model_pathworkflow-generator-q8_0.gguf
    dtypeauto
    device_preferenceauto
    attn_implementationauto
    auto_gpu_layerstrue
    n_gpu_layers-1
    max_new_tokens8192
    context_size4096
    use_mmaptrue
    use_mlockfalse
    n_batch512
    n_threadsAuto
    temperature0.95
    top_p0.70
    allow_primitive_nodesfalse
    seed0
    CategoryWorkflowGenerator

    Inputs (17)

    NameTypeDefaultDescription
    instructionSTRINGDescription of the desired ComfyUI workflow.
    model_pathCOMBOworkflow-generator-q8_0.ggufModel file (GGUF) or directory (HuggingFace).
    dtypeCOMBOautoData type (HuggingFace only).
    device_preferenceCOMBOautoDevice preference (cuda/cpu).
    attn_implementationCOMBOautoAttention implementation (HuggingFace).
    auto_gpu_layersBOOLEANtrueAuto-calculate GPU layers based on available VRAM (prevents OOM errors) (GGUF).
    n_gpu_layersINT-1-1–1000Number of GPU layers (GGUF). -1 for all.
    max_new_tokensINT81921–32768Max tokens to generate.
    context_sizeINT4096512–131072Context window size (GGUF).
    use_mmapBOOLEANtrueUse memory-mapped loading (GGUF).
    use_mlockBOOLEANfalseLock memory to prevent swapping (GGUF).
    n_batchINT51232–2048Batch size for prompt processing (GGUF).
    n_threadsCOMBOAutoCPU threads for inference (GGUF).
    temperatureFLOAT0.950–2Sampling temperature.
    top_pFLOAT0.700–1Top-p sampling.
    allow_primitive_nodesBOOLEANfalseInclude primitive nodes in diagram. False (recommended) removes them for cleaner workflows.
    seedINT00–4294967295Random seed.

    Outputs (2)

    NameTypeDescription
    workflow_edgesSTRINGGenerated workflow diagram (JSON).
    instructionSTRINGOriginal instruction text (pass to Step 2).