Files
Amatsukast-ComfyUI-SBTools/examples/Variable Prompt.json
T
Amatsukast 3b8e6b4494 Add example workflow for prompt generation system
Add Variable Prompt workflow demonstrating:
- Basic usage of Prompt Variable, Combiner, and Compiler nodes
- Sequential and Random variable combinations
- Template-based prompt generation

Includes workflow JSON and preview image.
2026-04-17 13:27:15 +09:00

514 lines
8.8 KiB
JSON

{
"id": "056e9d3b-0b50-4aba-a87b-662002b81a64",
"revision": 0,
"last_node_id": 28,
"last_link_id": 95,
"nodes": [
{
"id": 6,
"type": "PreviewAny",
"pos": [
2120,
560
],
"size": [
400,
620
],
"flags": {},
"order": 9,
"mode": 0,
"inputs": [
{
"name": "source",
"type": "*",
"link": 89
}
],
"outputs": [],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.18.2",
"Node name for S&R": "PreviewAny"
},
"widgets_values": [
null,
null,
null
]
},
{
"id": 7,
"type": "PreviewAny",
"pos": [
2120,
380
],
"size": [
400,
120
],
"flags": {},
"order": 8,
"mode": 0,
"inputs": [
{
"name": "source",
"type": "*",
"link": 88
}
],
"outputs": [],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.18.2",
"Node name for S&R": "PreviewAny"
},
"widgets_values": [
null,
null,
null
]
},
{
"id": 3,
"type": "SBTools_PromptVariable",
"pos": [
960,
460
],
"size": [
400,
200
],
"flags": {},
"order": 0,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "var_list",
"type": "VARIABLE_LIST",
"links": [
92
]
}
],
"properties": {
"aux_id": "Amatsukast/ComfyUI-SBTools",
"ver": "a503865524260566660f89ee3bf4f58b3c6372e2",
"Node name for S&R": "SBTools_PromptVariable"
},
"widgets_values": [
"AGE",
"young\nmiddle-aged\nold",
false,
"",
""
]
},
{
"id": 4,
"type": "SBTools_PromptVariable",
"pos": [
960,
720
],
"size": [
400,
200
],
"flags": {},
"order": 1,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "var_list",
"type": "VARIABLE_LIST",
"links": [
93
]
}
],
"properties": {
"aux_id": "Amatsukast/ComfyUI-SBTools",
"ver": "a503865524260566660f89ee3bf4f58b3c6372e2",
"Node name for S&R": "SBTools_PromptVariable"
},
"widgets_values": [
"CLOTHING",
"suit\nlab coat\ncasual wear",
false,
"",
""
]
},
{
"id": 12,
"type": "SBTools_PromptVariable",
"pos": [
960,
980
],
"size": [
400,
200
],
"flags": {},
"order": 2,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "var_list",
"type": "VARIABLE_LIST",
"links": [
94
]
}
],
"properties": {
"aux_id": "Amatsukast/ComfyUI-SBTools",
"ver": "a503865524260566660f89ee3bf4f58b3c6372e2",
"Node name for S&R": "SBTools_PromptVariable"
},
"widgets_values": [
"ACCESSORY",
"glasses\nhat\n[NONE]",
"Random",
" and ",
""
]
},
{
"id": 26,
"type": "SBTools_PromptCompiler",
"pos": [
1680,
200
],
"size": [
400,
240
],
"flags": {},
"order": 6,
"mode": 0,
"inputs": [
{
"name": "var_list",
"shape": 7,
"type": "VARIABLE_LIST",
"link": 95
},
{
"name": "index",
"type": "INT",
"widget": {
"name": "index"
},
"link": 86
}
],
"outputs": [
{
"name": "prompt",
"type": "STRING",
"links": [
87
]
},
{
"name": "max_combinations",
"type": "INT",
"links": [
88
]
},
{
"name": "all_combinations",
"type": "STRING",
"links": [
89
]
}
],
"properties": {
"aux_id": "Amatsukast/ComfyUI-SBTools",
"ver": "a503865524260566660f89ee3bf4f58b3c6372e2",
"Node name for S&R": "SBTools_PromptCompiler"
},
"widgets_values": [
"A [AGE] [GENDER] in [CLOTHING][ACCESSORY].",
0,
3540651208,
"randomize",
", "
]
},
{
"id": 5,
"type": "PreviewAny",
"pos": [
2120,
200
],
"size": [
400,
120
],
"flags": {},
"order": 7,
"mode": 0,
"inputs": [
{
"name": "source",
"type": "*",
"link": 87
}
],
"outputs": [],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.18.2",
"Node name for S&R": "PreviewAny"
},
"widgets_values": [
null,
null,
null
]
},
{
"id": 25,
"type": "PrimitiveInt",
"pos": [
1680,
500
],
"size": [
280,
100
],
"flags": {},
"order": 3,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "INT",
"type": "INT",
"links": [
86
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.18.2",
"Node name for S&R": "PrimitiveInt"
},
"widgets_values": [
0,
"increment"
]
},
{
"id": 1,
"type": "SBTools_PromptVariable",
"pos": [
960,
200
],
"size": [
400,
200
],
"flags": {},
"order": 4,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "var_list",
"type": "VARIABLE_LIST",
"links": [
91
]
}
],
"properties": {
"aux_id": "Amatsukast/ComfyUI-SBTools",
"ver": "a503865524260566660f89ee3bf4f58b3c6372e2",
"Node name for S&R": "SBTools_PromptVariable"
},
"widgets_values": [
"GENDER",
"man\nwoman",
false,
"",
""
]
},
{
"id": 28,
"type": "SBTools_VariableCombiner",
"pos": [
1400,
200
],
"size": [
240,
140
],
"flags": {},
"order": 5,
"mode": 0,
"inputs": [
{
"name": "var_list1",
"shape": 7,
"type": "VARIABLE_LIST",
"link": 91
},
{
"name": "var_list2",
"shape": 7,
"type": "VARIABLE_LIST",
"link": 92
},
{
"name": "var_list3",
"shape": 7,
"type": "VARIABLE_LIST",
"link": 93
},
{
"name": "var_list4",
"shape": 7,
"type": "VARIABLE_LIST",
"link": 94
},
{
"name": "var_list5",
"shape": 7,
"type": "VARIABLE_LIST",
"link": null
},
{
"name": "var_list6",
"shape": 7,
"type": "VARIABLE_LIST",
"link": null
}
],
"outputs": [
{
"name": "var_list",
"type": "VARIABLE_LIST",
"links": [
95
]
}
],
"properties": {
"aux_id": "Amatsukast/ComfyUI-SBTools",
"ver": "a503865524260566660f89ee3bf4f58b3c6372e2",
"Node name for S&R": "SBTools_VariableCombiner"
},
"widgets_values": []
}
],
"links": [
[
86,
25,
0,
26,
1,
"INT"
],
[
87,
26,
0,
5,
0,
"STRING"
],
[
88,
26,
1,
7,
0,
"INT"
],
[
89,
26,
2,
6,
0,
"STRING"
],
[
91,
1,
0,
28,
0,
"VARIABLE_LIST"
],
[
92,
3,
0,
28,
1,
"VARIABLE_LIST"
],
[
93,
4,
0,
28,
2,
"VARIABLE_LIST"
],
[
94,
12,
0,
28,
3,
"VARIABLE_LIST"
],
[
95,
28,
0,
26,
0,
"VARIABLE_LIST"
]
],
"groups": [],
"config": {},
"extra": {
"ds": {
"scale": 0.9744472176291669,
"offset": [
-518.8485271318758,
-13.833050089594899
]
},
"frontendVersion": "1.41.21",
"VHS_latentpreview": false,
"VHS_latentpreviewrate": 0,
"VHS_MetadataImage": true,
"VHS_KeepIntermediate": true
},
"version": 0.4
}