Get String
Profile-aware text values without the prompt-copying ritual
- string
Some strings aren't prompts and shouldn't live inside prompt boxes. Model-path prefixes, a style tag you append, a filename base - short text you want to switch per profile without copying it around. Get String is the read side of WorkflowX's key/value store for exactly that: a Set String node publishes a value under a key, and Get String hands you the value that belongs to the currently selected config.
It's the plain-text member of the typed Set/Get family, and it's the most flexible of them because strings are where your workflow's configuration usually hides - the things you'd otherwise be retyping into widget fields that happen to be text.
How it works
Same core as every typed Get in this pack. Both Set String and Get String carry a key, both sit inside ComfyUI groups, and a Config SelectorX controller decides which group is Active per named config. At queue time Get String reads the workflow JSON, matches Set String nodes by key, filters to Active groups for the selected profile, and returns the winner (last canvas id if multiple remain, with a warning).
The resolved_value, resolved_config, and resolved_digest widgets are UI-managed provenance - a digest the node checks to decide whether it can reuse the cached value or must re-resolve live. That's why flipping profiles and re-queueing just works, no refresh. Treat those three fields as read-only.
Inputs and outputs
key(STRING) - must match the Set String key exactly. The only input you configure.resolved_value/resolved_config/resolved_digest(STRING) - internal, managed by the frontend extension.- Output:
string(STRING) - a single-line text value you wire anywhere text is consumed.
Good uses: a model-name prefix feeding a save path, a per-profile quality tag appended to a prompt via concatenation, a negative-style string. If you need multiline text, the pack's Get Text is the sibling for that; Get String is the one-line version.
Install
In the WorkflowX-Configurator pack - ComfyUI Manager search WorkflowX Configurator, or:
cd ComfyUI/custom_nodes
git clone https://github.com/haroonaslam/WorkflowX-Configurator
Restart, hard-refresh the browser tab. No extra dependencies to install.
Common issues
- "No String value found for key 'x'." - no matching Set String in an Active group. Keys are exact; a trailing space will bite you.
- Multiline text doesn't fit. If the Set String value has line breaks, use the Text family (Set Text / Get Text) instead - that's what it's for.
- Value stale after switching configs. Make sure you re-queued; the resolve happens right before queueing, not live during canvas editing.
One thing to be straight about: this pack is new and has a small community footprint, so it's not the battle-tested default. For a single-profile workflow, a plain string primitive is simpler. Get String earns its place when one graph needs several named text profiles.
Inputs (4)
| Name | Type | Default | Description |
|---|---|---|---|
| key | STRING | — | |
| resolved_value | STRING | — | |
| resolved_config | STRING | — | |
| resolved_digest | STRING | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| string | STRING | — |