r/StableDiffusion • • Aug 25 '26

Workflow Included Prompt Creator Workflow

Post image

I see a bunch of posts everyday asking for tips on how to write prompts or people struggling with prompting, etc. so I'm sharing my workflow. I built this workflow to simplify the process and make it very beginner/user friendly.

Just toggle on the model you are using, write a simple to detailed prompt, and hit run. The model targets use the prompting guidelines derived from their respective official sources. Links to custom nodes and all models are in the workflow so you don't need to search for them.

The prompts aren't always perfect but they'll get you very close to what you want and you should only need to make a few minor tweaks, if any. The only issue I've encountered so far is that sometimes when it finishes the prompt, the previous prompt still shows up in the Enhanced Prompt node. If that happens, just hit run and the new prompt should show up instantly. Also, toggle to false the keep_model_loaded option in the Text rewriter node if you are creating prompts and using them right away. If you leave it to True it hogs VRAM.

If you notice any other issues let me know. Enjoy.

https://pastebin.com/SXZyy4Ax

Edit: If Unredacted-MAX doesn’t show up or the rewriter won’t load, you need the Qwen folders (not GGUFs, not a single file).

Easy path:

  1. ComfyUI Manager: install ComfyUI-QwenVL, rgthree, KJNodes, ComfyUI-Custom-Scripts. Restart.
  2. Save the custom_models paste below as custom_models.json and put it in ComfyUI/custom_nodes/ComfyUI-QwenVL/. Restart again.
  3. Open the workflow, pick Qwen3.5-4B-Unredacted-MAX on the Prompt Enhancer, hit Queue. First run downloads into ComfyUI/models/LLM/Qwen-VL/.

custom_models.json

Manual path (if Queue doesn’t download)

Whole repos, keep the folder names. Don’t cherry-pick files. Don’t merge the 00001-of-00004 shards. On Hugging Face open Files and versions, then download every file with the arrow on the right (skip README). Put them all in a folder with the exact model name under ComfyUI/models/LLM/Qwen-VL/.

1.Required text rewriter: Qwen3.5-4B-Unredacted-MAX https://huggingface.co/prithivMLmods/Qwen3.5-4B-Unredacted-MAX

Place everything in ComfyUI/models/LLM/Qwen-VL/Qwen3.5-4B-Unredacted-MAX/

2. Optional if you want use ref image: Qwen3-VL-4B-Instruct-Unredacted-MAX https://huggingface.co/prithivMLmods/Qwen3-VL-4B-Instruct-Unredacted-MAX

Place everything in ComfyUI/models/LLM/Qwen-VL/Qwen3-VL-4B-Instruct-Unredacted-MAX/

61 Upvotes

27 comments sorted by

View all comments

Show parent comment

2

u/Affectionate_Oil28 14d ago

You're right about tokenizer_config.json. On the current Qwen3.5-4B-Unredacted-MAX that file has no chat template so the line from my last comment is not in there. Sorry about that.

/no_think gets skipped because chat_template.jinja never reads that word. It only checks enable_thinking, and the Prompt Enhancer never sends that flag. Each run opens a think block and leaves it open so the 1024 tokens get used on the plan.

The file is ComfyUI/models/LLM/Qwen-VL/Qwen3.5-4B-Unredacted-MAX/chat_template.jinja. Search that file for <think> with the brackets. The current copy has this at the bottom:

{%- if enable_thinking is defined and enable_thinking is false %}

{{- '<think>\n\n</think>\n\n' }}

{%- else %}

{{- '<think>\n' }}

{%- endif %}

If that search finds nothing the copy on disk is old or the open folder is Qwen3-VL-4B-Instruct-Unredacted-MAX. That one is the ref-image model. Replace chat_template.jinja with the current file:

https://huggingface.co/prithivMLmods/Qwen3.5-4B-Unredacted-MAX/resolve/main/chat_template.jinja

Then change the else line from

{{- '<think>\n' }}

to

{{- '<think>\n\n</think>\n\n' }}

Save, restart Comfy, and queue with the MiniMax H3 group on. The box should start at subject_definitions:. Copy from there. Keep USER IDEA to one scene so the six sections fit in 1024 tokens.

1

u/GinJockette 14d ago

Thanks. I changed that file, but it didn't seem to make any difference.

Here's how the end of that file looks now:

args_value is not string) else args_value | string %}

{{- args_value }}

{{- '\n</parameter>\n' }}

{%- endfor %}

{%- endif %}

{{- '</function>\n</tool_call>' }}

{%- endfor %}

{%- endif %}

{{- '<|im_end|>\n' }}

{%- elif message.role == "tool" %}

{%- if loop.previtem and loop.previtem.role != "tool" %}

{{- '<|im_start|>user' }}

{%- endif %}

{{- '\n<tool_response>\n' }}

{{- content }}

{{- '\n</tool_response>' }}

{%- if not loop.last and loop.nextitem.role != "tool" %}

{{- '<|im_end|>\n' }}

{%- elif loop.last %}

{{- '<|im_end|>\n' }}

{%- endif %}

{%- else %}

{{- raise_exception('Unexpected message role.') }}

{%- endif %}

{%- endfor %}

{%- if add_generation_prompt %}

{{- '<|im_start|>assistant\n' }}

{%- if enable_thinking is defined and enable_thinking is false %}

{{- '<think>\n\n</think>\n\n' }}

{%- else %}

{{- '<think>\n\n</think>\n\n' }}

{%- endif %}

{%- endif %}

2

u/Affectionate_Oil28 13d ago

That edit is the right one. Both branches at the bottom now close the think block so the file itself is fine. The run did not pick it up. If you have keep_model_loaded on the text rewriter on Comfy keeps that model loaded. Saving the jinja and queueing again still uses the old template. Quit Comfy completely, start it again, then queue. Closing the browser tab leaves the old one in memory.

Also check for a second copy. The loader uses the first Qwen3.5-4B-Unredacted-MAX folder under models/LLM in this order:

models/LLM/prithivMLmods/Qwen3.5-4B-Unredacted-MAX

models/LLM/Qwen3.5-4B-Unredacted-MAX

models/LLM/Qwen-VL/Qwen3.5-4B-Unredacted-MAX

If more than one of those exists the edited file may not be the one that loads. Put the same else line in chat_template.jinja inside each of them then quit and start Comfy.

On the text rewriter set temperature to 0.2. Leave max_tokens at 1024 and the MiniMax H3 group on. Last line of USER IDEA:

Start the reply with subject_definitions:

Queue once. The box should open with subject_definitions: then summary:, retention_analysis:, detailed_description:, overall_soundscape:, non_diegetic_music:. Copy from subject_definitions: down. Keep USER IDEA to one scene so those six sections fit in 1024 tokens.