Nodes/WFA Node Suite (WaifuArchitect)/WFA Save Prompt .txt ⚡ (WFA Suite)
ComfyUI Node

WFA Save Prompt .txt ⚡ (WFA Suite)

A ComfyUI node in WFA Node Suite/IO with 16 inputs and 3 outputs.

By WAonGHub·Created 22 days ago·Updated 2 days ago· 1
WFA Save Prompt .txt ⚡ (WFA Suite)
  • prompt_index
  • model
  • lora_stack
  • trigger
  • image_path
  • text
  • filepath
◄subfolder►
◄characteroutput►
◄char_foldertrue►
◄separatorunderscore►
◄save_modeoverwrite►
◄headersfalse►
◄enabledtrue►
◄raw_prompt—►
◄raw_negative—►
◄refined_prompt—►
◄final_prompt—►
◄final_negative—►
CategoryWFA Node Suite/IO

Inputs (16)

NameTypeDefaultDescription
subfolderSTRINGTop-level folder inside ComfyUI's 'output' directory (e.g. 'T2I MAIN'). Leave empty to use 'ComfyUI/output/' directly, or enter an absolute path (e.g. 'D:/Outputs/Project'). Missing folders are created automatically.
characterSTRINGoutputSubject/group name used both as a sub-subfolder (`subfolder/character/`) and as the base filename (`character_index.txt`). Can also be wired from a STRING node.
char_folderBOOLEANtrueWhen Yes, automatically places files inside a `<subfolder>/<character>/` sub-subfolder.
separatorCOMBOunderscoreCharacter placed between `character` and `prompt_index` in the filename (e.g. 'name_1.txt' or 'name 1.txt').
save_modeCOMBOoverwrite• overwrite: Replaces the .txt file if it already exists. • append: Adds the new log entry to the bottom of the existing .txt file. • auto_number: Never overwrites — creates '_01.txt', '_02.txt', etc. if the file exists.
headersBOOLEANfalseWhen Shown, adds section labels ([MODEL], [USED LORAS], [RAW PROMPT], [FINAL PROMPT], etc.) above each non-empty block.
enabledBOOLEANtrueEnable or bypass writing the .txt file to disk (`image_path` and `text` outputs still work when Bypassed).
prompt_indexopt*Optional batch/prompt index (accepts INT or STRING directly — e.g. wire straight from WFA Loop Iterator `index`).
modelopt*Connect the used checkpoint/model name (STRING / COMBO) OR wire a MODEL / PIPE link directly to log which model was used.
lora_stackopt*Connect a LORA_STACK directly (converts to `<lora:name:model_wt:clip_wt>` automatically) or a LoRA STRING.
raw_promptoptSTRINGRaw positive prompt (before wildcard/tag expansion or refinement).
raw_negativeoptSTRINGRaw negative prompt.
refined_promptoptSTRINGRefined / intermediate positive prompt.
final_promptoptSTRINGFinal positive prompt used for generation.
final_negativeoptSTRINGFinal negative prompt used for generation.
triggeropt*Optional execution-order trigger if nothing downstream is wired from `image_path`. Note: Leave unconnected if you wire `image_path` into your Save Image node.

Outputs (3)

NameTypeDescription
image_pathSTRING—
textSTRING—
filepathSTRING—