@@ -80,6 +80,39 @@ When your workflow has multiple SaveImage nodes, easily distinguish different ou
80801 . Download or clone this repository to the ` custom_nodes ` directory of ComfyUI
81812 . Restart ComfyUI
8282
83+ ### 🖥️ UI Features
84+
85+ This plugin adds convenient UI features to ComfyUI's interface:
86+
87+ #### 📝 Save Workflow as API
88+
89+ ** How to use:**
90+ 1 . Right-click on the canvas (empty area)
91+ 2 . Select "🚀 Save Workflow as API"
92+ 3 . Enter a workflow name in the dialog
93+ 4 . Choose whether to overwrite if the file exists
94+ 5 . Click "Save"
95+
96+ The workflow will be saved to ` user/default/api_workflows/ ` directory as a JSON file that can be used with the API.
97+
98+ #### 🏷️ Set Node Input Parameters
99+
100+ ** How to use:**
101+ 1 . Select a single node in the workflow
102+ 2 . Right-click on the node
103+ 3 . Select "🚀 Set Node Input"
104+ 4 . Choose which field you want to parameterize from the list
105+ 5 . Enter a variable name for the parameter
106+ 6 . The node's title will be automatically updated with the parameter marker
107+
108+ ** Example:**
109+ - Select a CLIPTextEncode node
110+ - Choose "text" field
111+ - Enter "prompt" as variable name
112+ - Node title will be updated to include ` $prompt.text `
113+
114+ This feature makes it easy to mark nodes for parameter replacement without manually editing node titles.
115+
83116### 🔌 API Parameters
84117
85118```
@@ -151,7 +184,7 @@ curl -X POST "http://localhost:8188/oneapi/v1/execute" \
151184### Supported forms for the workflow parameter
152185
153186- 1 . Pass workflow as a JSON object (original logic).
154- - 2 . Pass a local workflow filename (e.g. ` 1.json ` ), which will be loaded from ` user/default/workflows /1.json ` .
187+ - 2 . Pass a local workflow filename (e.g. ` 1.json ` ), which will be loaded from ` user/default/api_workflows /1.json ` .
155188- 3 . Pass a workflow URL (e.g. ` http://xxx/1.json ` ), which will be downloaded and parsed automatically.
156189
157190How to distinguish:
@@ -165,7 +198,7 @@ How to distinguish:
165198{"workflow": {"node1": {...}, ...}}
166199
167200// 2. Pass local filename
168- // 1.json corresponds to <ComfyUI root>/user/default/workflows /1.json
201+ // 1.json corresponds to <ComfyUI root>/user/default/api_workflows /1.json
169202{"workflow": "1.json"}
170203
171204// 3. Pass URL
0 commit comments