Hello, thank you for creating ComfyUI-StringConstructor.
I’ve been using it to build a modular prompt system and it works very well.
While designing larger prompt workflows, I noticed that currently the system mainly relies on chain-style DICT accumulation:
DICT → DICT → DICT → Formatter
Each StringConstructorDictFromText node receives an existing dict and adds new entries.
However, when the number of prompt modules grows (e.g., body, character, pose, outfit, environment, camera, style, etc.), this chain can become very long in ComfyUI workflows.
Feature idea
Would it be possible to support parallel DICT aggregation, for example through a node like:
DICT_A
DICT_B
DICT_C
↓
DictMerge
↓
StringConstructorFormatter
Conceptually this would just merge multiple dictionaries before passing them to the formatter, something like:
merged = {}
merged.update(dictA)
merged.update(dictB)
merged.update(dictC)
Since StringConstructorFormatter ultimately uses str.format_map() with a single dictionary, this approach should still work with the existing formatting logic.
Why this could help
For larger prompt systems this would allow workflows to be structured more like:
Prompt Modules
body
character
pose
outfit
environment
camera
style
↓
DictMerge
↓
Formatter
Instead of requiring a long sequential chain of dict nodes.
This could make large prompt graphs more compact and easier to maintain.
Question
Do you think something like a DictMerge node (or multi-DICT input support for the formatter) would fit within the design of StringConstructor?
I’d be interested to hear your thoughts on whether this would align with the intended architecture.
Thanks again for the great tool!
Hello, thank you for creating ComfyUI-StringConstructor.
I’ve been using it to build a modular prompt system and it works very well.
While designing larger prompt workflows, I noticed that currently the system mainly relies on chain-style DICT accumulation:
DICT → DICT → DICT → Formatter
Each StringConstructorDictFromText node receives an existing dict and adds new entries.
However, when the number of prompt modules grows (e.g., body, character, pose, outfit, environment, camera, style, etc.), this chain can become very long in ComfyUI workflows.
Feature idea
Would it be possible to support parallel DICT aggregation, for example through a node like:
DICT_A
DICT_B
DICT_C
↓
DictMerge
↓
StringConstructorFormatter
Conceptually this would just merge multiple dictionaries before passing them to the formatter, something like:
merged = {}
merged.update(dictA)
merged.update(dictB)
merged.update(dictC)
Since StringConstructorFormatter ultimately uses str.format_map() with a single dictionary, this approach should still work with the existing formatting logic.
Why this could help
For larger prompt systems this would allow workflows to be structured more like:
Prompt Modules
body
character
pose
outfit
environment
camera
style
↓
DictMerge
↓
Formatter
Instead of requiring a long sequential chain of dict nodes.
This could make large prompt graphs more compact and easier to maintain.
Question
Do you think something like a DictMerge node (or multi-DICT input support for the formatter) would fit within the design of StringConstructor?
I’d be interested to hear your thoughts on whether this would align with the intended architecture.
Thanks again for the great tool!