Nodes/NodeGPT/LogAll
ComfyUI Node

LogAll

How NodeGPT saves the whole agent conversation

By antonym-git·Created 3 years ago·Updated 2 years ago· 355
LogAll
  • Output_Text
    filename_prefixAutoGen

    Search for "LogAll" in ComfyUI's node menu and this is what you'll find - even though every registry and the class name itself call it TextOutput. The display name is the honest one. This node does exactly one job: dump a NodeGPT agent conversation to a text file so you can actually read what the agents said to each other. In a pack where most output ends up in the terminal, that's the closest thing to a "save my results" button.

    It's an output node - no outputs, nothing to wire onward. You hang it off the end of a chain and it writes a .txt file. That's the whole node.

    How it works

    TextOutput is built for the pack's Chat node. Chat returns a TEXT object that carries the full conversation log under a LOG key, and TextOutput grabs exactly that: it pulls Output_Text['LOG'], serializes the conversation dict into readable text, and writes it to a file with an incrementing counter so it never overwrites.

    Where it lands is the first thing to know, because it's not where you'll look: it saves to a folder literally named output_folder next to wherever ComfyUI was launched, in a TextOutput subfolder:

    <wherever you launched ComfyUI>/output_folder/TextOutput/AutoGen_00001.txt
    

    Not ComfyUI's normal output/ directory. That's a classic "I saved it, where did it go" moment, and the answer is always output_folder.

    The inputs that matter

    • Output_Text (TEXT, required) - the conversation object from a Chat node. This is the only source it's really built for.
    • filename_prefix (default AutoGen) - the filename prefix; the counter appends. Want scientist_run_00001.txt? Set it to scientist_run.

    The trap: what you can and can't feed it

    Because it reads ['LOG'] specifically, TextOutput only works cleanly with nodes that produce a log - in practice, the pack's Chat node. Feed it the plain TEXT that TextGeneration outputs (which has no LOG key) and the node throws a KeyError and dies. The README describes the intended wiring: Scientist → UserProxy → Chat → LogAll, the full agent chain, and LogAll is what catches the transcript at the end.

    There's also a small path guard in the code - "Saving text outside the output folder is not allowed" - so you can't point it somewhere sneaky. Good hygiene for an abandoned pack, honestly.

    Install

    Same pack-wide install, from the README:

    cd ComfyUI/custom_nodes
    git clone https://github.com/xXAdonesXx/NodeGPT
    

    Restart and let ComfyUI attempt the dependency install on first boot. Caveat that matters more here than anywhere else: the repo link currently returns 404. The author's account went dark and the pack is unmaintained, so the clone can fail outright - the Wayback Machine's June 2025 snapshot still has the source.

    Common issues

    The shared NodeGPT quirks apply: the auto-installer is Windows-only, so on Linux/macOS the nodes can fail to register (install pyautogen into ComfyUI's environment yourself), and don't share workflows containing API keys - the README warns about it for a reason.

    Honest take: LogAll is a thin utility even by this pack's standards, but for its one job - a readable .txt transcript of an agent conversation - it works fine. Just remember the output_folder location and that it wants a Chat log, not a plain text reply.

    CategoryAutoGen

    Inputs (2)

    NameTypeDefaultDescription
    Output_TextTEXT
    filename_prefixSTRINGAutoGen

    Outputs (0)

    No outputs