Nodes/IAMCCS-nodes/IAMCCS Gemma Assist Output
ComfyUI Node

IAMCCS Gemma Assist Output

Save a Gemma suggestion to disk and see it on the graph at once

By IAMCCS·Created 11 months ago·Updated 8 days ago· 113
IAMCCS Gemma Assist Output
    • text
    text
    filename_prefixIAMCCS/gemma_assist/sheet_suggestion
    save_texttrue

    When an LLM assists your Ideogram storyboard workflow, its output is a block of text - a suggested prompt, a sheet description, a revision note. And like most generated text, it's worthless if it disappears into the ether. GemmaAssistOutput is the terminal node that fixes that: it takes a string, shows it in the ComfyUI UI, and (if you want) writes it to disk as a timestamped .txt file so you actually have it later.

    It's the output-node companion to IAMCCS_GemmaAssistLazyGate - the gate decides whether the assistant runs, and this node decides what happens to what it produced. Simple, but it closes a real gap in the pipeline.

    How it works

    The source is short and worth describing because it's exactly as safe as it looks. You feed it text (it's forceInput, so it's meant to be wired from another node, not typed). Two settings control behavior:

    • filename_prefix - defaults to IAMCCS/gemma_assist/sheet_suggestion. The prefix's directory portion (IAMCCS/gemma_assist/) becomes a subfolder inside ComfyUI's output directory, and the filename gets a Unix timestamp appended, so you get files like output/IAMCCS/gemma_assist/sheet_suggestion_1720000000.txt. Each run writes a new file - no clobbering, which is the right behavior for suggestions you might want to compare.
    • save_text - flip it off and the node becomes a pure UI pass-through that shows the text but writes nothing.

    It returns the same text you put in, so you can keep it inline in a string chain if you want. And since it's an output node (is_output_node), the text also shows up in the ComfyUI UI panel after the run.

    Inputs that matter

    • text - the thing to save/show. Wire from your Gemma/prompt-assist node.
    • filename_prefix - change it if you're tracking multiple suggestion types; the default is fine for sheet suggestions.
    • save_text - on by default; turn it off for quick dry-run previews.

    Install

    Part of IAMCCS-nodes:

    cd ComfyUI/custom_nodes
    git clone https://github.com/IAMCCS/IAMCCS-nodes.git
    

    Or ComfyUI Manager → "IAMCCS" → install → restart. No extra dependencies.

    Gotchas

    Two small things. First, the file path lives under ComfyUI's standard output directory - if you're looking for saved suggestions and can't find them, that's where to look, not your working folder. Second, if the write fails (read-only output dir, weird characters in the prefix), the node appends the error to the text and still returns it - so an error won't silently kill your run, but it also won't be obvious. And keep in mind this is a sink: it doesn't transform text, so don't expect formatting or cleanup. It saves what it's given.

    CategoryIAMCCS/Cine/Ideogram

    Inputs (3)

    NameTypeDefaultDescription
    textSTRING
    filename_prefixSTRINGIAMCCS/gemma_assist/sheet_suggestion
    save_textBOOLEANtrue

    Outputs (1)

    NameTypeDescription
    textSTRING