Extensions/ComfyUI-Simple-HTTP
ComfyUI Extension

ComfyUI-Simple-HTTP

A lightweight custom node for ComfyUI that sends an HTTPS GET request upon the completion of a workflow.

By nikmess·Created 7 months ago·Updated 7 months ago· 0
nikmess/ComfyUI-Simple-HTTP
Nodes
On cloudLocal install
Stars0
Updated7 months ago
Readme

ComfyUI Simple HTTPS GET Node

A lightweight custom node for ComfyUI that sends an HTTPS GET request upon the completion of a workflow.

This is useful for triggering webhooks, sending notifications (e.g., ntfy.sh, IFTTT, Home Assistant), or logging data when your image generation is finished.

✨ Features

  • Customizable Endpoint: Define a base URL and dynamic text to append.
  • Execution Control: Uses a "Pass-through" image input to ensure the request is only sent after the image has been generated.
  • Server Response: Outputs the server's status code and response body as a string for debugging or further processing.
  • Non-Blocking: Includes a timeout to prevent your workflow from hanging if the server is unreachable.

📥 Installation

Method 1: Manual Installation

  1. Navigate to your ComfyUI custom_nodes directory via your terminal/command prompt.
  2. Clone this repository:
    git clone https://github.com/your-username/ComfyUI-Simple-HTTP.git
    
  3. Restart ComfyUI.

Method 2: Manual Copy

  1. Download the repository as a ZIP file.
  2. Extract the folder into ComfyUI/custom_nodes/.
  3. Restart ComfyUI.

🛠️ Usage

How to ensure it runs at the end

ComfyUI executes nodes based on dependency. If you place this node on the canvas but don't connect inputs, it might run immediately.

To make it run after generation:

  1. Add the node: Add Node > Network > HTTPS GET Notification.
  2. Connect your Save Image or KSampler output (IMAGE) into the trigger_image input of this node.
  3. (Optional) Connect the pass_through_image output to a Preview Image node if you want to see the image pass through.

Inputs

| Input Name | Type | Description | | :--- | :--- | :--- | | url | STRING | The base URL (e.g., https://ntfy.sh/mytopic?message=). | | text_to_append | STRING | Text to add to the end of the URL (e.g., Done). | | trigger_image | IMAGE | (Important) Connect the result of your generation here to force the request to wait until the image is ready. |

Outputs

| Output Name | Type | Description | | :--- | :--- | :--- | | pass_through_image | IMAGE | The image passed into the trigger_input (unchanged). | | server_response | STRING | The HTTP status code and text response from the server. |

📦 Requirements

This node relies on the standard Python requests library. This is usually included in standard Python environments, but if you are using the ComfyUI portable version and run into issues, you can install it via:

pip install requests

📄 License & Credits

Author: Code generated by an AI Assistant (ChatGPT [actually Gemini 3 Pro Preview, it apparently doesn't like taking credit --nikmess]) based on user specifications.

This project is open-source. Feel free to modify and distribute.