๐พ Save Text
Append-only logging for prompts, transcripts, whatever
- added_text
- complete_text
- filename
- full_path
This is a plain text-logging node: give it a string and a filepath, and it appends that text to the file. Nothing clever about the mechanism - the value is in how it fits the rest of the pack. Save Text writes to a file, and a companion node, Load Text From Bjornulf Folder, reads files back out of the same location, so the intended pattern is: save prompts, character notes, or TTS lines here as you generate them, then load them back into a later workflow without retyping anything.
How it works
Point it at a filepath (it defaults to Bjornulf/Text/example.txt, inside your ComfyUI folder) and feed it text. If the file already exists, it appends your text to the end rather than overwriting - so repeated runs build up a log rather than clobbering the last one. The author's own recommendation is to keep your files under Bjornulf/Text/, specifically because the pack's folder-load node looks there by default; stray outside that folder and you lose the convenience of that pairing, though the pack's separate Load Text From Path node can still read a file from anywhere if you do want to save elsewhere.
The inputs and outputs that matter
text(STRING, multiline) - what you want to save. This is the whole point of the node.filepath(STRING, defaultBjornulf/Text/example.txt) - where it writes to, relative to your ComfyUI folder.- Outputs:
added_text(just what was appended this run),complete_text(the entire accumulated contents of the file after the append),filenameandfull_path(STRING) - handy if you want to feed the exact file location into another node further down the chain, like a text loader or a note node that references it.
How to install it
Via ComfyUI Manager: search Bjornulf_custom_nodes, install, restart. Manually:
cd ComfyUI/custom_nodes
git clone https://github.com/justUmen/Bjornulf_custom_nodes
cd Bjornulf_custom_nodes && pip install -r requirements.txt
then restart ComfyUI. This node is plain file I/O - no dependency of its own - but it's part of the same 170-node repo, so the shared requirements.txt (Ollama, FFmpeg, and more) still gets installed regardless.
Common issues & troubleshooting
The file keeps growing and you didn't expect that. There's no overwrite mode here, unlike Save Global Variables elsewhere in the pack. Every run of the workflow adds to the file. If you wanted a single fresh file per run, you'll need to point filepath somewhere new each time, or clear the file manually between sessions.
Load Text From Bjornulf Folder doesn't see your file. That loader specifically looks inside Bjornulf/Text/. If you changed filepath to save somewhere else, that pairing breaks - either keep files under the default folder, or use Load Text From Path instead, which takes an arbitrary path.
Multiple nodes writing to the same file. If you've got more than one Save Text node in a graph (or across graphs) pointed at the same filepath, you'll get interleaved appends from both, which can be confusing to read back later. Give each logging stream its own filename if you're tracking more than one thing at once.
Inputs (2)
| Name | Type | Default | Description |
|---|---|---|---|
| text | STRING | โ | |
| filepath | STRING | Bjornulf/Text/example.txt | โ |
Outputs (4)
| Name | Type | Description |
|---|---|---|
| added_text | STRING | โ |
| complete_text | STRING | โ |
| filename | STRING | โ |
| full_path | STRING | โ |