Nodes/wlsh_nodes/Save Prompt (WLSH)
ComfyUI Node

Save Prompt (WLSH)

Log your prompt, model, and seed to a text file

By wallish77·Created 3 years ago·Updated 2 years ago· 144
Save Prompt (WLSH)
      filenameinfo
      path
      positive
      negative
      modelname
      seed0
      counter0
      time_format%Y-%m-%d-%H%M%S

      This is the pack's general-purpose prompt logger - a step up from Save Positive Prompt (WLSH)'s bare-bones version, but without the KSamplerAdvanced-specific info field that its sibling Save Prompt/Info (WLSH) accepts. Per the README, it's meant to save "the prompts to a text file, along with info on model name and seed" - a clean, human-readable record you build up field by field rather than through a bundled sampler-info connection.

      What it does. Writes a text file containing whatever you've wired in: your prompt(s), optionally the negative, the model name, seed, and a counter. It's the node to use if you want a readable log alongside your generations but you're either not using this pack's KSamplerAdvanced (WLSH) node, or you'd rather wire the individual fields yourself instead of routing through its bundled INFO output.

      Inputs: filename (default "info"), path, and positive are required. Optional: negative, modelname, seed, counter, and time_format (default %Y-%m-%d-%H%M%S, only relevant if your filename or content uses a time token elsewhere in your setup). The counter field is meant to climb across runs - the README suggests wiring it from a primitive node set to "increment" so each save gets a distinct number rather than every run landing on the same value. Outputs: none - like the rest of this pack's save nodes, it's a pure file-write with no downstream connection.

      Picking between this and its two siblings: if you just want the positive prompt logged and nothing else, Save Positive Prompt (WLSH) is the leaner choice - three fields, no seed or model tracking. If you're running WLSH's own KSamplerAdvanced (WLSH) and want its bundled sampler settings captured in one wire instead of typed in by hand, Save Prompt/Info (WLSH) accepts that node's INFO output directly. This node sits in the middle: more of a record than the positive-only version, without requiring you to adopt WLSH's own sampler node to get it.

      Installing it

      ComfyUI Manager: search "wlsh_nodes" (or "WLSH Nodes"), install, restart. Manual: cd ComfyUI/custom_nodes && git clone https://github.com/wallish77/wlsh_nodes, then restart ComfyUI.

      Common issues

      The most common surprise with this whole family of save nodes is the same one every time: filename defaults to a static string ("info") with no automatic uniqueness, so if you don't wire in something that changes run to run - a counter primitive, a seed, a timestamp string - you'll overwrite your own log on every generation instead of building up a history. That's exactly why counter exists as an optional field here; use it. Also worth knowing: this pack's save nodes have a confirmed limitation where timestamp keywords only expand inside the filename field, not path - if you were hoping to route saves into date-stamped subfolders using a time token in path, that isn't supported, and you'll need to build that string yourself upstream instead.

      CategoryWLSH Nodes/IO

      Inputs (8)

      NameTypeDefaultDescription
      filenameSTRINGinfo
      pathSTRING
      positiveSTRING
      negativeoptSTRING
      modelnameoptSTRING
      seedoptINT00–18446744073709550000
      counteroptINT00–18446744073709550000
      time_formatoptSTRING%Y-%m-%d-%H%M%S

      Outputs (0)

      No outputs