Get Text
Multiline prompt slots that swap with your config profile
- text
The most obvious use of WorkflowX's Set/Get system is also the most tempting trap: you want your prompt to change when you switch profiles. Get Text is the node for that - the multiline member of the typed family, paired with Set Text. Publish a full prompt under a key in one group, a different one under the same key in another, and Get Text hands the selected profile's version to your CLIP Text Encode or whatever consumes it.
Before you wire a dozen of these up, one honest note: for a single workflow you switch by hand, a plain multiline primitive is simpler. Get Text pulls its weight when the graph is genuinely multi-profile and the prompt must follow the config - think character sheet vs. landscape, or product vs. portrait variants of one layout.
How it works
Same machinery as the other typed Gets. Set Text lives in a ComfyUI group with a key; Get Text asks for that key at its consumer. A Config SelectorX controller marks each group Active, Bypass, Mute, or Ignore per named config, and Get Text resolves to the Set Text in an Active group. Multiple matches collapse to the highest canvas id, with a warning - so keep keys unique within a scope.
The visible resolved_value, resolved_config, and resolved_digest fields are the node's provenance cache. They let Get Text skip a live re-resolve when nothing changed, and the digest check is what makes profile switching work without a browser refresh. They're managed by the frontend; don't edit them.
Inputs and outputs
key(STRING) - exact match against the Set Text key. Only field you configure.resolved_value/resolved_config/resolved_digest(STRING) - internal, UI-managed.- Output:
text(STRING) - multiline string, wired into prompt or text inputs.
The one real difference from Get String: this value is multiline and intended for prose-length text. The pack keeps the two separate on purpose - Set String for one-liners, Set Text for paragraphs - and the resolution contract stays strict: Get Text only resolves Set Text.
Install
Part of the WorkflowX-Configurator pack. ComfyUI Manager → search WorkflowX Configurator, or:
cd ComfyUI/custom_nodes
git clone https://github.com/haroonaslam/WorkflowX-Configurator
Restart ComfyUI and hard-refresh the browser. No extra Python dependencies - the pack's dependency list is empty.
Common issues
- "No Text value found for key 'x'." - no Set Text with that key in an Active group. Check spelling and that the group isn't muted in the current profile.
- Prompts won't swap. You're probably using a Set String for a prompt; Get Text only reads Set Text. Match the family.
- Changing config doesn't update the run. Re-queue after switching - resolution happens at queue time.
The pack itself is young (a couple of r/comfyui release threads, small engagement), so don't expect a huge support community. But the mechanism is plain and the code is readable if you hit an edge case.
Inputs (4)
| Name | Type | Default | Description |
|---|---|---|---|
| key | STRING | — | |
| resolved_value | STRING | — | |
| resolved_config | STRING | — | |
| resolved_digest | STRING | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| text | STRING | — |