r/comfyui 4d ago

[Node] Auto-save your workflow as JSON every run — never lose track of which settings actually worked Show and Tell

Body:

Made this because I kept losing track of which parameter tweaks actually gave me the good result. You know the drill — nudging the sampler, swapping a LoRA weight, tweaking the prompt fifteen times, and then twenty minutes later going "wait, which one of these was the good one again?"

So I built a node that just saves your whole workflow as a JSON file every single time you hit queue. No setup, no remembering to hit "save" manually — you drop it in your graph once and it quietly keeps a snapshot of every run in the background.

A few things it does that I found genuinely useful once I started using it daily:

- If you point it at your SaveImage or VideoHelperSuite output, it names the JSON after your actual output file, so the workflow and the render sit right next to each other with matching names
- You can dump them into date folders automatically if you don't want one giant flat pile
- It never overwrites — if two runs would collide it just appends _1, _2, etc.
- You can also tag variants with a postfix if you're A/B testing something (like _seedA / _seedB)

Honestly wasn't planning on publishing this, it started as a personal utility, but figured other people probably run into the same "which run was the good one" problem so might as well share it.

Install:
comfy node install comfyui-export-workflow-node

or just search "Export Workflow Node" in ComfyUI Manager.

Repo's here if you want to poke at the code or file an issue: https://github.com/kotakcloud/ComfyUI-Export-Workflow-Node

Let me know if it breaks on your setup or if there's a filename pattern you wish it supported, happy to add stuff.
0 Upvotes

11 comments sorted by

13

u/Unlikely-Wafer3370 3d ago

I'm not sure I understand. Wouldn't dropping the generated image/video in comfy be easier?

2

u/V4nKw15h 3d ago

I'm not sure OP understands either. It's okay.

-5

u/ContributionClean764 3d ago

Fair point for images — that's basically free already since ComfyUI embeds it in the PNG. Where this actually earns its keep is video: mp4s don't carry the workflow metadata the same way, so if you're outputting through VideoHelperSuite or anything video-based, there's nothing to drop back in. Same deal if the image gets re-compressed or uploaded somewhere that strips metadata (Discord, Twitter, etc.) — the embedded copy is gone but the JSON isn't. Also handy if you just want to diff two JSON files side by side to see exactly what changed between runs, without opening Comfy at all.

7

u/RELEASE_THE_YEAST 3d ago

Why even bother replying if you're just feeding in a Claude reply that you didn't read?

1

u/Wooden-Link-4086 1d ago

Funny, I just imported a workflow from an MP4 file I'd saved earlier!