AI_PresetSave
Why every AI node's preset dropdown says just 'None'
- result
If you've opened any of this pack's AI chat nodes - AI_GLM_text, AI_Qwen, AI_Ollama_image, and the rest - and noticed the preset dropdown only ever offers one option, "None," this is the node that fixes that. It's the write side of a preset system the other AI nodes only read from.
It's plain by design: target_dict picks which of two buckets you're writing into, TEXT_PROMPTS or IMAGE_PROMPTS, prompt_title is the name it'll show up under later, and prompt_content is the actual multi-line text you want saved - a system prompt, a recurring instruction, whatever you're tired of retyping into every AI node. Run it once and it writes into a shared file the whole pack reads from, AiPromptPreset.json; the node's own description spells out the mapping directly - TEXT_PROMPTS corresponds to the TEXT_PROMPTS dict in that file, IMAGE_PROMPTS to the IMAGE_PROMPTS dict. The single output, result, just confirms what got saved.
The reason this matters more than it looks: nearly every AI chat node in this pack - GLM, Qwen, Ollama, ModelScope - has a preset field that only shows real options once you've populated AiPromptPreset.json through this node. Until you run AI_PresetSave at least once, that dropdown staying stuck on "None" isn't a bug you need to troubleshoot, it's just an empty preset library. Save a preset here, and it becomes a reusable, named system-prompt/instruction you can pick from a dropdown across every AI node in the pack instead of pasting the same text into a custom_system_prompt field over and over.
Worth setting expectations correctly: this is a title-and-content saver, not a full snapshot of every parameter on a node (temperature, max tokens, and so on aren't part of what this node writes) - it's specifically for reusing prompt/system-prompt text, matching the README's broader "preset saving" language used elsewhere in the pack for model/sampler combinations.
Installing it: ComfyUI Manager, search "ComfyUI-Apt_Preset," or clone directly - cd ComfyUI/custom_nodes && git clone https://github.com/cardenluo/ComfyUI-Apt_Preset - then install.bat and restart. Nothing model-related to fetch; it's a local file writer.
Troubleshooting: the one gotcha that trips people up consistently across this pack is that a newly saved preset doesn't appear in other nodes' preset dropdowns until you restart ComfyUI - the README states this explicitly for the pack's model/sampler presets, and the same rule holds here. Save your preset, restart, then go check the dropdown on whichever AI node you meant to use it with; don't assume the save silently failed just because the option isn't there yet in your current session.
Inputs (3)
| Name | Type | Default | Description |
|---|---|---|---|
| target_dict | COMBO | TEXT_PROMPTS | 2 options: TEXT_PROMPTS, IMAGE_PROMPTS |
| prompt_title | STRING | — | |
| prompt_content | STRING | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| result | STRING | — |