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

# Yes/No Question

> Ask an OpenAI model for a boolean decision.

**Yes/No Question** turns a natural-language question and optional context into
a strict boolean. Use it when a workflow needs an AI judgment that can connect
directly to conditional logic.

## Inputs

| Input                   | Type           | Required | Description                                  |
| ----------------------- | -------------- | -------- | -------------------------------------------- |
| **Third-party account** | OpenAI account | Yes      | The API key used for the request.            |
| **Model**               | OpenAI model   | Yes      | Defaults to GPT-5 Mini.                      |
| **Question**            | String         | Yes      | A question that can be answered yes or no.   |
| **Additional Text**     | String         | No       | The content or facts the model should judge. |

## Output

| Output       | Type    | Description                        |
| ------------ | ------- | ---------------------------------- |
| **Decision** | Boolean | `true` for yes and `false` for no. |

## Example: decide whether a message needs escalation

* **Question** — `Does this customer message describe an urgent safety risk?`
* **Additional Text** — Connect the incoming message.

Route **Decision** into an **If**-style branch: `true` can alert an on-call
person, while `false` continues normal processing.

<Tip>
  Make the decision criteria explicit. “Is this important?” is ambiguous; “Does
  this mention account takeover, exposed credentials, or unauthorized access?”
  gives the model a usable rule.
</Tip>
