Nodes/ComfyUI-Draggen/Draggen Extract Text
ComfyUI Node

Draggen Extract Text

Your board's notes, turned into one prompt-ready string

By kadima-tech·Created 7 months ago·Updated 7 months ago· 0
Draggen Extract Text
  • moodboard
  • STRING

Draggen Extract Text is the quiet utility of the pack: it walks every text element in the moodboard and joins them into one big STRING, in board order. That's the whole job. If your Draggen board is mostly notes - style directions, color callouts, the phrase you keep tweaking - this turns the board into a prompt-shaped blob in one step.

Mechanism is as simple as it gets: iterate the board's elements (sorted by z-index, same as everything else in the pack), keep the ones with text, join with newlines. One input (moodboard), one output: STRING.

Where it fits

Where it actually earns its place: moodboards are where you write down what you're trying to do, so the text is often a better starting prompt than anything you'd free-type later - it's your own words, refined while you were collecting references. Common moves after this node:

  • Straight into a CLIP Text Encode as your positive prompt.
  • Into a VLM/LLM node to draft a structured prompt from the notes - the "ask a model what to do with this board" crowd.
  • Into a string-format node if you want to prefix a style keyword to every run.

The blunt part

The one thing to know: it's a blunt instrument. Every text element gets included, in z-order, with nothing but newlines between them. Stray labels you didn't mean as prompt material - "DRAFT 3", a caption, a lone hex color - will show up in the output and pollute whatever you feed. There's no filtering, no length cap, no dedupe; it's "\n".join(everything), so treat the result as raw material, not a finished prompt, and glance at it before it hits a sampler.

Like the other three processors, it only accepts the moodboard custom type, so it sits downstream of either loader - the same shared type means you can switch loaders without rewiring.

Installing

Install is pack-wide: ComfyUI Manager → search ComfyUI-Draggen, or:

cd ComfyUI/custom_nodes
git clone https://github.com/kadima-tech/comfyui-draggen

then restart. No extra dependencies; the pack uses only requests and Pillow, already part of ComfyUI's environment.

It's a five-minute node in a pack full of five-minute nodes. But for the "board as prompt source" loop - collect notes in Draggen, export, extract, generate - it's the piece that makes the whole thing feel complete.

CategoryDraggen

Inputs (1)

NameTypeDefaultDescription
moodboardDRAGGEN_MOODBOARD

Outputs (1)

NameTypeDescription
STRINGSTRING