ComfyUI Extension: AF - Edit Generated Prompt
A ComfyUI custom node that allows you to pipe a generated prompt and either pass it as is, or copy and edit it manually. Or you can use the lower input field like any regular text input filed. The content of the lower text field will always dominate the output of the node.
Custom Nodes (0)
README
ComfyUI-AF-EditGeneratedPrompt
A ComfyUI custom node that allows you to pipe a generated prompt and either pass it as is, or copy and edit it manually. Or you can use the lower input field like any regular text input filed. The content of the lower text field will always dominate the output of the node.
Features
- Display generated prompts in a read-only field
- Copy button for easy editing
- Prioritizes manual edits over original input
- Clean, user-friendly interface
Installation
Via ComfyUI Manager (Recommended)
- Open ComfyUI Manager
- Search for "AF - Edit Generated Prompt"
- Install
Manual Installation
- Clone this repository into your
ComfyUI/custom_nodes/
directory:cd ComfyUI/custom_nodes/ git clone https://github.com/yourusername/ComfyUI-AF-EditGeneratedPrompt.git
Usage
- Add the "AF - Edit Generated Prompt" node to your workflow
- Connect a text input to the input_text input
- After running the workflow, the generated prompt will be displayed in the readonly field
- Use the "Copy Generated Prompt to Edit it" button to copy to the editable field
- Edit as needed - the edited version will be output if present, otherwise the generated prompt will be used
Version History
v0.0.16 - Put the version number and infos into the main python file, in the hopes of it showing up in the ComfyUI Manager
v0.0.15 - Fixed an issue with LiteGraph throwing an error about the spacer widgets
v0.0.14 - Inital Git Release
v0.0.01 - 0.0.13 Internal dev versions. Too many changes to list
Disclaimer
This custom node was written with the help of AI.