Nodes/comfyui-prompt-library-nodes/Smart T2I Prompt Source
ComfyUI Node

Smart T2I Prompt Source

Same node as Picker, with the search aliases to prove it

By 2223290690z-hue·Created 3 months ago·Updated 2 months ago· 1
Smart T2I Prompt Source
    • positive
    • library_path
    prefix
    role_1
    outfit_1(first outfit)
    role_2
    outfit_2(first outfit)
    picker_appearance
    picker_pose
    picker_scene
    picker_camera
    picker_prop
    picker_clothing
    additions
    manual_prompt
    selected_terms_preview
    prompt_preview
    negative_preset
    negative_terms
    seed0

    The name promises intelligence, so let's calibrate expectations: Smart T2I Prompt Source is byte-for-byte the same class as Picker T2I Prompt Source and the original Unified T2I Prompt Source in comfyui-prompt-library-nodes. One class, three registered names. The "smart" in the name is branding, not a feature gap - the intelligence is in the library lookups and the additions syntax, which all three share.

    What it does: assembles a positive prompt from a JSON prompt library. Pick a quality prefix, choose up to two role entries with outfit dropdowns, sprinkle in appearance/pose/scene/camera/prop/clothing via the picker_* menus, and the node returns a finished, deduplicated positive string plus the loaded library path.

    Where the "smart" actually lives

    Two places, and they're worth understanding because they're the real value of this node.

    First, the selection logic. Role dropdowns don't just store text - each selection is scored against library entries (exact id beats title match beats tag match beats content match), so you can refer to an entry by a short name and the node resolves it to the right content, including its outfits. (random) picks a seeded random entry, and seed controls it, so random is reproducible rather than a dice roll every queue.

    Second, the additions syntax. The picker_* dropdowns are convenience wrappers that append alias: Title lines into additions. But additions is also a mini prompt language: @1.2 applies a (term:1.2) weight, -term removes a term from the final prompt, no.1girl ... scopes an addition to one of the two subjects, and scene: / pose: / camera: etc. resolve to library folders. This is where the node stops being a dropdown picker and starts being a prompt-engineering surface - you can do most of your A/B experimentation from the additions box without touching the library file.

    Inputs and outputs

    All widgets, no sockets. The ones you'll set: prefix, role_1/role_2, outfit_1/outfit_2, the six picker_* dropdowns, additions, manual_prompt, and seed. The two *_preview boxes are read-only, refreshed by the frontend extension so you can check the composition live.

    Outputs: positive (STRING) → your positive CLIPTextEncode; library_path (STRING) → metadata or a debug note.

    Same caveats as its twins: the negative_preset/negative_terms widgets in the schema are ignored by the code - never put your negatives here, use Negative Prompt Source. And the sanitizer strips Chinese characters from the final prompt, so keep library content in English tags if you want it to survive.

    Installing it

    Zero dependencies - no requirements.txt, nothing to pip. ComfyUI Manager → search "comfyui-prompt-library-nodes" → install → restart, or:

    cd ComfyUI/custom_nodes
    git clone https://github.com/2223290690z-hue/comfyui-prompt-library-nodes.git
    

    Look for Smart T2I Prompt Source under Prompt Manager.

    The honest recommendation

    Because Smart, Picker, and the original Unified are all the same node, the choice between them is aesthetic. The one that's actually a different animal is Unified T2I Prompt Source v2 - it has a third role slot, a lighting picker, and no dead negative widgets. My advice: bookmark v2 as the node to actually use, and treat "Smart" as a search term you might run into while migrating old workflows. It'll work identically, just without the newer features.

    CategoryPrompt Manager

    Inputs (18)

    NameTypeDefaultDescription
    prefixCOMBO5 options: illustration quality, photo quality, concept art quality, quality only, none
    role_1COMBO4 options: (none), (random), Explorer, Researcher
    outfit_1COMBO(first outfit)5 options: (none), (first outfit), Explorer / Field Gear, Researcher / Lab Coat, Explorer / City Casual
    role_2COMBO4 options: (none), (random), Explorer, Researcher
    outfit_2COMBO(first outfit)5 options: (none), (first outfit), Explorer / Field Gear, Researcher / Lab Coat, Explorer / City Casual
    picker_appearanceCOMBO2 options: (add appearance), appearance: Soft Backlight
    picker_poseCOMBO2 options: (add pose), pose: Looking Over Map
    picker_sceneCOMBO2 options: (add scene), scene: Old Observatory
    picker_cameraCOMBO2 options: (add camera), camera: Medium Shot
    picker_propCOMBO2 options: (add prop), prop: Weathered Map
    picker_clothingCOMBO1 options: (add clothing)
    additionsSTRING
    manual_promptSTRING
    selected_terms_previewSTRING
    prompt_previewSTRING
    negative_presetCOMBO2 options: standard, none
    negative_termsSTRING
    seedINT00–18446744073709550000

    Outputs (2)

    NameTypeDescription
    positiveSTRING
    library_pathSTRING