ComfyUI Extension: ComfyUI Webhook Notifier
A simple ComfyUI custom node that sends webhook notifications when images are generated. Perfect for integrating your image generation workflow with external services or your own backend.
Custom Nodes (0)
README
ComfyUI Webhook Notifier
A simple ComfyUI custom node that sends webhook notifications when images are generated. Perfect for integrating your image generation workflow with external services or your own backend.
Features
- Sends webhook notifications when images are generated
- Attaches the generated image to the webhook request
- Includes customizable metadata and external ID support
- Saves generated images locally with metadata
Installation
- Clone this repository into your ComfyUI custom nodes directory:
cd ComfyUI/custom_nodes
git clone https://github.com/yourusername/comfyui-webhook-http
- Install the required dependencies:
pip install -r requirements.txt
- Restart ComfyUI
Usage
- Add the "Webhook Image Saver" node to your workflow
- Connect it to your image generation output
- Configure the webhook settings:
webhook_url
: Your endpoint that will receive the notificationfilename_prefix
: Prefix for saved image files (default: "ComfyUI")metadata
: Optional JSON metadata to include with the webhookexternal_uid
: Optional identifier for tracking generations or sessions
Webhook Payload
The webhook endpoint will receive a POST request with the following data:
{
"metadata": "your_custom_metadata",
"external_uid": "your_tracking_id",
"images": [
{
"filename": "ComfyUI_00001_.png",
"subfolder": "ComfyUI",
"type": "output"
}
]
}
The generated image will be attached as a file in the request.
Example Usage
Here's a basic example of how to use the node in your workflow:
- Connect your image generation output to the "Webhook Image Saver" node
- Set your webhook URL (e.g.,
https://api.yourservice.com/webhook
) - Add any custom metadata or tracking IDs
- Run your workflow - the webhook will be triggered automatically when images are generated
License
Apache License 2.0