This package provides three custom nodes designed to streamline workflows involving API requests, dynamic text manipulation based on API responses, and image posting to APIs. These nodes are particularly useful for automating interactions with APIs, enhancing text-based workflows with dynamic data, and facilitating image uploads.
# Custom Workflow Nodes for API Integration
This package provides three custom nodes designed to streamline workflows involving API requests, dynamic text manipulation based on API responses, and image posting to APIs. These nodes are particularly useful for automating interactions with APIs, enhancing text-based workflows with dynamic data, and facilitating image uploads.
## Installation
To use these custom nodes, clone this repository into your `custom_nodes` directory. No external dependencies are required.
```bash
git clone https://github.com/CC-BryanOttho/ComfyUI_API_Manager.git custom_nodes
This node performs API requests and processes the responses:
auth_url
and auth_body_text
to authenticate with your target API.array_path
to specify the path to the data of interest in the API response.Utilizes API response data for dynamic text manipulation:
$attributeName
syntax to insert values from the API response.$attribute1.attribute2
to reference nested attributes.id_field_name
can be used to extract specific values from the response for further use.Facilitates the posting of images to an API:
$id
used in the URL to dynamically insert the ID.api_url
, ensuring to include $id
where the object ID should be inserted in the URL.Imagine a workflow where you need to fetch data from an API, use part of that data to generate a text prompt, and then post an image related to that prompt to another API endpoint:
These nodes are designed to be flexible and can be adjusted or extended based on specific workflow requirements. For more complex API interactions or additional dynamic capabilities, consider customizing these nodes further.
Contributions are welcome! If you have improvements or bug fixes, please submit a pull request or open an issue.