ComfyUI Node

CDA Text Create

The pack's multiline text source, ready to wire

By HowToSD·Created 2 years ago·Updated about a year ago· 23
CDA Text Create
    • STRING
    data

    CDA Text Create is the node for when your input doesn't fit on one line. It's a multiline text field that outputs its contents as a string on a wire - no parsing, no transformation, just a comfortable place to type a block of text and hand it to the rest of the graph. In the Data-Analysis pack, that's usually JSON or CSV-formatted data destined for a node that will parse it.

    It's the multiline counterpart to CDA String Create (single-line) in HowToSD's ComfyUI-Data-Analysis pack. The author's description: "Creates a Python String using a value entered in a multi-line text field." Same class of IO node, different widget. The subtle part is why a multiline text source matters here: several pack nodes accept structured text that's easier to author in a big field than in a cramped widget, and this node gives that text a wireable home.

    How it works

    The implementation is a pure pass-through: return (data,). What you type is exactly what comes out. No JSON validation, no CSV parsing - those jobs belong to the consuming nodes. Its purpose is structural: it turns a large text input into a first-class node with a STRING output you can route anywhere.

    Inputs and outputs

    • data (required, STRING, multiline) - your text: JSON, a CSV snippet, or just a note.
    • STRING output - the text as a wireable string.

    When you'd reach for it

    The most useful pattern is authoring structured data comfortably and feeding it to a parser. For example, CDA JSON Create's multiline field is where you'd paste a JSON list - but if you'd rather keep that JSON in its own big, labeled node (or you want to swap between CDA JSON Create and other consumers), CDATextCreate is the source that holds the raw text. The pack's Pandas Create nodes also take CSV-style data in multiline fields; if that data is dynamic or reused, give it its own node.

    Honest caveat: for many one-off cases you can just type into the target node's own multiline field and skip this node entirely. It earns its place when the text is shared, reused, or big enough to deserve its own block on the canvas.

    Installing it

    Ships with the pack. ComfyUI Manager: search "Data analysis", install ComfyUI-Data-Analysis, restart, reload the browser tab. Manual:

    cd ComfyUI/custom_nodes
    git clone https://github.com/HowToSD/ComfyUI-Data-Analysis
    mv ComfyUI-Data-Analysis data-analysis   # README: examples expect this folder name
    pip install -r data-analysis/requirements.txt
    

    Dependencies: pandas, matplotlib, seaborn, scipy, scikit-learn, openpyxl, lxml. No GPU, no model files. Since March 2025 the PyTorch nodes live in the separate ComfyUI-Pt-Wrapper extension.

    Gotchas

    • Pass-through, no validation. A typo in your JSON or CSV won't error here - it'll error in the node that tries to parse it. Test by running the text through CDA JSON Create if you want validation.
    • Literal text is literal. Newlines and whitespace survive as-is; indentation matters if the consumer parses structured text.
    • If it's short, use CDA String Create. Single-line inputs don't need this node - one clean line in the right widget is simpler.
    CategoryData Analysis

    Inputs (1)

    NameTypeDefaultDescription
    dataSTRING

    Outputs (1)

    NameTypeDescription
    STRINGSTRING