> ## Documentation Index
> Fetch the complete documentation index at: https://docs.comfy.org/llms.txt
> Use this file to discover all available pages before exploring further.

# HeyGen Decision (Score) - ComfyUI Built-in Node Documentation

> Rate the text, images, audio or video you connect from 1 to 10, and get the score plus a boolean that flips at a threshold you set.

Rate the text, images, audio or video you connect from 1 to 10, and get the score plus a boolean that flips at a threshold you set. Use it to filter or sort outputs, and connect `result` to an If/Else Switch node to act on the score.

## Inputs

| Parameter | Description | Data Type | Required | Range |
| - | - | - | - | - |
| `model` | Model to use. `heygen-decision-1-turbo` is faster and costs less than `heygen-decision-1` (default: `"heygen-decision-1"`). | COMBO | Yes | `"heygen-decision-1"` `"heygen-decision-1-turbo"` |
| `question` | What to rate, saying what 1 and 10 mean (default: "Rate the technical quality of the image from 1 (worst) to 10 (best)."). | STRING | Yes | 1 to 5000 characters |
| `threshold` | `result` is true when the score is at least this value. Clean, sharp images score about 7, badly damaged ones about 3 to 5 (default: 6.0). | FLOAT | Yes | 1.0 to 10.0 (step 0.1) |
| `images` | Images to rate, up to 4 in total, counting every frame of a batch. They are numbered `image_1` to `image_4` in order across the sockets. | IMAGE | No | Up to 4 images |
| `audio_1` | Audio to rate, up to 30 minutes. | AUDIO | No | Up to 30 minutes |
| `video_1` | Video to rate, up to 60 seconds. | VIDEO | No | Up to 60 seconds |
| `text` | Text the question is about, such as a prompt or an LLM response, up to 20000 characters. | STRING | No | Up to 20000 characters |

Connect at least one input to rate and name them by socket inside the question, for example "How sharp is image\_1?".

## Outputs

| Output Name | Description | Data Type |
| - | - | - |
| `result` | True when the score is at least `threshold`, otherwise false. | BOOLEAN |
| `score` | The rating from 1 to 10. | FLOAT |

> This documentation was AI-generated. If you find any errors or have suggestions for improvement, please feel free to contribute! [Edit on GitHub](https://github.com/Comfy-Org/embedded-docs/blob/main/comfyui_embedded_docs/docs/HeyGenDecisionScore/en.md)

***

**Source fingerprint (SHA-256):** `47f7aeab15292a2156b8da23c9911f4155c5b05c9ea9c0c502c30221aa522b58`


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.