Nodes/ComfyUI_CSM/Multi Line Text
ComfyUI Node

Multi Line Text

The boring text box that actually runs your dialog

By billwuhao·Created about a year ago·Updated about a year ago· 7
Multi Line Text
    • text
    ◄multi_line_promptâ–ș

    Multi Line Text is the least glamorous node in the CSM pack, and also the one you'll touch first. It takes one multiline text widget and passes the string through - stripped of surrounding whitespace - to its text output. That's the whole job. There are no weights, no samples, nothing to tune. If you've used ComfyUI's own text-block conventions from other audio packs, this is the same deal: a place to type a script that isn't a single cramped line.

    Why does such a nothing node exist? Because the pack's real workhorse, CSM Dialog Run, declares its text input with forceInput: True. That flag means you can't just type into it in the graph - you have to wire in a string from somewhere. Multi Line Text is that somewhere. It's the friendly multiline widget that CSM Dialog Run's one-line field refuses to be.

    The example workflow shipped in the repo wires it up exactly this way: Multi Line Text → CSM Dialog Run. So even though the node looks like filler, it's the on-ramp for every workflow in the pack. The multi_line_prompt input is the only thing you'll ever set, and the text output feeds straight into the dialog node's text port.

    Where it shines: writing a two-person script with the [S1] / [S2] format the pack expects, where each line of the widget becomes one spoken line. Where it doesn't shine: nowhere, really - it's a text box. Use it when you want your script visible and editable on the canvas instead of buried in a node's collapsed widget.

    One honest note: this node does nothing CSM-specific. If you're already comfortable wiring strings in ComfyUI, it's just a convenience. But it's shipped with the pack, costs nothing, and means you don't need a second custom node just to hold your dialog.

    Install and first run

    Install is the same as the rest of the pack - see the CSM Dialog Run article for the full walkthrough and the three model downloads it drags along. Short version:

    cd ComfyUI/custom_nodes
    git clone https://github.com/billwuhao/ComfyUI_CSM.git
    cd ComfyUI_CSM
    pip install -r requirements.txt
    

    Restart ComfyUI, then find Multi Line Text under the đŸŽ€MW/MW-CSM menu. Type your script, wire text into CSM Dialog Run, and you're off. There's no model load here, so it works instantly even before the big downloads finish.

    CategoryđŸŽ€MW/MW-CSM

    Inputs (1)

    NameTypeDefaultDescription
    multi_line_promptSTRING—

    Outputs (1)

    NameTypeDescription
    textSTRING—