Files
wawahuy-ComfyUI-HTTP/sample-workflow/demo.json
T

673 lines
12 KiB
JSON

{
"id": "4260cd7a-b9f6-49a2-914e-db0f5ed5e153",
"revision": 0,
"last_node_id": 16,
"last_link_id": 16,
"nodes": [
{
"id": 6,
"type": "HTTPFormDataNode",
"pos": [
2594.976806640625,
573.031982421875
],
"size": [
146.46542358398438,
106
],
"flags": {},
"order": 7,
"mode": 0,
"inputs": [
{
"name": "item1",
"shape": 7,
"type": "FORM_DATA_ITEM",
"link": 13
},
{
"name": "item2",
"shape": 7,
"type": "FORM_DATA_ITEM",
"link": null
},
{
"name": "item3",
"shape": 7,
"type": "FORM_DATA_ITEM",
"link": null
},
{
"name": "item4",
"shape": 7,
"type": "FORM_DATA_ITEM",
"link": null
},
{
"name": "item5",
"shape": 7,
"type": "FORM_DATA_ITEM",
"link": null
}
],
"outputs": [
{
"name": "form_data",
"type": "FORM_DATA",
"links": [
7
]
}
],
"properties": {
"Node name for S&R": "HTTPFormDataNode"
}
},
{
"id": 2,
"type": "PreviewAny",
"pos": [
2306.33740234375,
-218.2305908203125
],
"size": [
375.2432861328125,
177.1891632080078
],
"flags": {},
"order": 1,
"mode": 0,
"inputs": [
{
"name": "source",
"type": "*",
"link": 1
}
],
"outputs": [],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.44",
"Node name for S&R": "PreviewAny"
},
"widgets_values": []
},
{
"id": 10,
"type": "HTTPGetJSONFieldNode",
"pos": [
1809.3271484375,
321.3193359375
],
"size": [
379.07025146484375,
200
],
"flags": {},
"order": 2,
"mode": 0,
"inputs": [
{
"name": "json_input",
"type": "STRING",
"widget": {
"name": "json_input"
},
"link": 9
}
],
"outputs": [
{
"name": "field_value",
"type": "STRING",
"links": [
10,
11
]
},
{
"name": "error_message",
"type": "STRING",
"links": null
},
{
"name": "found",
"type": "BOOLEAN",
"links": null
}
],
"properties": {
"Node name for S&R": "HTTPGetJSONFieldNode"
},
"widgets_values": [
"{\"data\": {\"message\": \"Hello World\"}, \"status\": \"success\"}",
"imageBase64",
"",
true
]
},
{
"id": 11,
"type": "PreviewAny",
"pos": [
2177.77685546875,
37.96884536743164
],
"size": [
290.3134765625,
108.34597778320312
],
"flags": {},
"order": 4,
"mode": 0,
"inputs": [
{
"name": "source",
"type": "*",
"link": 11
}
],
"outputs": [],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.44",
"Node name for S&R": "PreviewAny"
},
"widgets_values": []
},
{
"id": 1,
"type": "HTTPGetNode",
"pos": [
1724.5255126953125,
-168.981201171875
],
"size": [
400,
318
],
"flags": {},
"order": 0,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "response_text",
"type": "STRING",
"links": [
1
]
},
{
"name": "response_json",
"type": "STRING",
"links": [
9
]
},
{
"name": "status_code",
"type": "INT",
"links": null
},
{
"name": "success",
"type": "BOOLEAN",
"links": null
},
{
"name": "workflow_id",
"type": "STRING",
"links": null
}
],
"properties": {
"Node name for S&R": "HTTPGetNode"
},
"widgets_values": [
"http://172.17.0.1:3000/test-get",
"{\"Content-Type\": \"application/json\", \"User-Agent\": \"ComfyUI-HTTPPull-Starter/1.01\"}",
"{\"workflow\": \"started\", \"source\": \"comfyui\"}",
30,
1,
5
]
},
{
"id": 9,
"type": "PreviewAny",
"pos": [
2817.355712890625,
-22.287996292114258
],
"size": [
325.22808837890625,
152.39352416992188
],
"flags": {},
"order": 9,
"mode": 0,
"inputs": [
{
"name": "source",
"type": "*",
"link": 8
}
],
"outputs": [],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.44",
"Node name for S&R": "PreviewAny"
},
"widgets_values": []
},
{
"id": 5,
"type": "PreviewImage",
"pos": [
2524.9423828125,
130.2561492919922
],
"size": [
140,
246.00001525878906
],
"flags": {},
"order": 5,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 4
}
],
"outputs": [],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.44",
"Node name for S&R": "PreviewImage"
},
"widgets_values": []
},
{
"id": 3,
"type": "Base64ToImageNode",
"pos": [
2245.94384765625,
245.8096923828125
],
"size": [
210,
112
],
"flags": {},
"order": 3,
"mode": 0,
"inputs": [
{
"name": "base64_string",
"type": "STRING",
"widget": {
"name": "base64_string"
},
"link": 10
}
],
"outputs": [
{
"name": "image",
"type": "IMAGE",
"links": [
4,
12
]
}
],
"properties": {
"Node name for S&R": "Base64ToImageNode"
},
"widgets_values": [
"",
true
]
},
{
"id": 14,
"type": "PreviewImage",
"pos": [
3252.34765625,
573.1357421875
],
"size": [
140,
246.00001525878906
],
"flags": {},
"order": 12,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 14
}
],
"outputs": [],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.44",
"Node name for S&R": "PreviewImage"
},
"widgets_values": []
},
{
"id": 15,
"type": "Base64ToImageNode",
"pos": [
2937.354248046875,
670.4590454101562
],
"size": [
210,
112
],
"flags": {},
"order": 11,
"mode": 0,
"inputs": [
{
"name": "base64_string",
"type": "STRING",
"widget": {
"name": "base64_string"
},
"link": 16
}
],
"outputs": [
{
"name": "image",
"type": "IMAGE",
"links": [
14
]
}
],
"properties": {
"Node name for S&R": "Base64ToImageNode"
},
"widgets_values": [
"",
true
]
},
{
"id": 13,
"type": "HTTPFormImageItemNode",
"pos": [
2264.93408203125,
550.0385131835938
],
"size": [
270,
106
],
"flags": {},
"order": 6,
"mode": 0,
"inputs": [
{
"name": "image_input",
"type": "IMAGE",
"link": 12
}
],
"outputs": [
{
"name": "image_item",
"type": "FORM_DATA_ITEM",
"links": [
13
]
}
],
"properties": {
"Node name for S&R": "HTTPFormImageItemNode"
},
"widgets_values": [
"image",
"png",
"photo"
]
},
{
"id": 8,
"type": "HTTPPostFormDataNode",
"pos": [
2756.495849609375,
231.32150268554688
],
"size": [
400,
264
],
"flags": {},
"order": 8,
"mode": 0,
"inputs": [
{
"name": "form_data",
"type": "FORM_DATA",
"link": 7
}
],
"outputs": [
{
"name": "response_text",
"type": "STRING",
"links": [
8
]
},
{
"name": "response_json",
"type": "STRING",
"links": [
15
]
},
{
"name": "status_code",
"type": "INT",
"links": null
},
{
"name": "success",
"type": "BOOLEAN",
"links": null
},
{
"name": "request_id",
"type": "STRING",
"links": null
}
],
"properties": {
"Node name for S&R": "HTTPPostFormDataNode"
},
"widgets_values": [
"http://172.17.0.1:3000/test-post-form-data",
"{\"User-Agent\": \"ComfyUI-HTTPPost/1.0\"}",
30,
1,
5
]
},
{
"id": 16,
"type": "HTTPGetJSONFieldNode",
"pos": [
3250.81103515625,
200.1404571533203
],
"size": [
210,
200
],
"flags": {},
"order": 10,
"mode": 0,
"inputs": [
{
"name": "json_input",
"type": "STRING",
"widget": {
"name": "json_input"
},
"link": 15
}
],
"outputs": [
{
"name": "field_value",
"type": "STRING",
"links": [
16
]
},
{
"name": "error_message",
"type": "STRING",
"links": null
},
{
"name": "found",
"type": "BOOLEAN",
"links": null
}
],
"properties": {
"Node name for S&R": "HTTPGetJSONFieldNode"
},
"widgets_values": [
"{\"data\": {\"message\": \"Hello World\"}, \"status\": \"success\"}",
"imageBase64",
"",
true
]
}
],
"links": [
[
1,
1,
0,
2,
0,
"*"
],
[
4,
3,
0,
5,
0,
"IMAGE"
],
[
7,
6,
0,
8,
0,
"FORM_DATA"
],
[
8,
8,
0,
9,
0,
"*"
],
[
9,
1,
1,
10,
0,
"STRING"
],
[
10,
10,
0,
3,
0,
"STRING"
],
[
11,
10,
0,
11,
0,
"*"
],
[
12,
3,
0,
13,
0,
"IMAGE"
],
[
13,
13,
0,
6,
0,
"FORM_DATA_ITEM"
],
[
14,
15,
0,
14,
0,
"IMAGE"
],
[
15,
8,
1,
16,
0,
"STRING"
],
[
16,
16,
0,
15,
0,
"STRING"
]
],
"groups": [],
"config": {},
"extra": {
"ds": {
"scale": 0.8264462809917354,
"offset": [
-1267.1626050558043,
166.89358320027654
]
},
"frontendVersion": "1.23.4"
},
"version": 0.4
}