# Branch on a decision

> Give each decision a path, including cases where the workflow needs more information.

A branch determines what the workflow does next. In the [refund quickstart](https://outwin.ai/docs/start/quickstart/), the ordinary path writes a recommendation and the other path asks for approval. That works when every request outside the ordinary path needs the same review.

Now consider two requests. One gives a purchase age of 45 days. The other gives an order number but no purchase age. A reviewer can consider an exception for the first request. To assess the second, someone needs to supply a fact. If these requests arrive often, give them different paths.

## Choose the block by what should happen next

Use **Yes / No** when you can express the decision as one question with two useful outcomes. For example, “Does this purchase qualify under the policy?” can route a qualifying request to a recommendation and everything else to review.

Use **Classifier** when the request may need one of several different actions. In a refund workflow, name categories for the paths the team can act on:

| Category | When it applies | What happens next |
| --- | --- | --- |
| Within policy | The purchase age is known and within the refund window. | Write a recommendation under the policy. |
| Outside policy | The purchase age is known and outside the window. | Ask a person to review the exception. |
| Missing purchase age | The request is a refund request and its purchase age is unavailable. | Ask for the missing information. |

**Classifier** picks one category and gives a short reason. It sends the same request down the selected path. The built-in **Other** output handles cases where none of the categories fit. Decide what those cases should do too. If an output has no connection, a run that takes it ends at the Route block.

## Check the reason as well as the route

Test requests that differ in the fact the block is supposed to use. A purchase at 30 days and one at 31 days check the policy boundary. A refund request with no purchase age checks the missing-information path. A message about changing a shipping address checks what happens when no category fits.

Read the reason on the Route block in each run. If the block chose the expected path for the wrong reason, refine the category instructions before relying on the result.

[Route a request when information is missing](https://outwin.ai/docs/build/branch-on-a-decision/route-missing-information/) to add a third path to the practice workflow.
