Save Text Bridge (Yogurt Nodes)
Write text, JSON, or markdown to disk without ending the graph
- text
- path
Save Text Bridge is the text counterpart of the pack's image bridges: it writes a string to disk and hands it back, so saving never forces you to terminate the graph. But where images have a built-in save node, text barely does in stock ComfyUI - and this one throws in JSON, markdown and CSV outputs too, which is where it starts getting genuinely useful.
You feed it a string (content, multiline enabled so it's comfortable with long prompts or full blocks of text), pick a filename, and it drops a file into your output directory. On the way out you get the text back (text) plus the exact path it was written to. That path output is the quiet star of this node - it's the hook for everything else in the pack that deals with filesystem paths, and it makes "write a file, then do something with it" a single node instead of a guessing game.
The inputs that matter
- content - the text to save.
- output_dir - blank saves to the ComfyUI output directory.
- filename_prefix - base name, with
%date:yyyy-MM-dd%token support. - suffix -
.txt,.json,.md,.csv, or Custom. - custom_suffix - used only when the suffix is set to Custom (a non-empty custom suffix overrides the dropdown otherwise).
- overwrite - off by default; numbered files instead of clobbering.
Where you'd actually use it
Three spots come up constantly. LLM nodes that return JSON (this pack ships a pile of them - Gemini, OpenAI, Grok, and friends) want their output captured as a .json file; a workflow that assembles prompts can log every generation's prompt as .md; and if you're building datasets, .csv gives you a file you can open in anything. Since the text passes straight through, you can also treat this as "log a copy without derailing the pipeline." For automation, the path output beats hunting through folders - wire it into the pack's path or file nodes and you have a poor man's file pipeline.
Install
Same pack as the rest of Yogurt Nodes:
cd ComfyUI/custom_nodes
git clone https://github.com/yogurt7771/ComfyUI-YogurtNodes.git
cd ComfyUI-YogurtNodes
pip install -r requirements.txt
or via ComfyUI Manager → ComfyUI-YogurtNodes → install → restart. It's under Yogurt Nodes → IO.
Gotchas
The extension is cosmetic - setting .json doesn't validate or format your content as JSON, it just names the file .json. If you're saving an actual object, stringify it upstream (the pack has JsonStringify for that). And the usual counter behavior: overwrite defaults to false, so repeated runs stack numbered files. If your filename_prefix includes %date%, that usually keeps things tidy without ever needing overwrite on.
Inputs (6)
| Name | Type | Default | Description |
|---|---|---|---|
| content | STRING | The text to save. | |
| output_dir | STRING | The directory to save the text to, leave blank to save to the ComfyUI output directory. | |
| filename_prefix | STRING | ComfyUI | The prefix for the file to save. This may include formatting information such as %date:yyyy-MM-dd%. |
| overwrite | COMBO | false | Overwrite existing files. |
| suffix | COMBO | .txt | The file extension to save the text as. |
| custom_suffix | STRING | The file extension to save the text as. If this is not empty, the suffix option will be ignored. Otherwise, the suffix option will override above suffix option. |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| text | STRING | — |
| path | STRING | — |