# Write instructions for an AI step

> State what the block should do, what guidance it should use, and what result the workflow needs.

“Review this refund” leaves two questions open. Is the block deciding where the request goes, or is it writing a recommendation? In the [refund workflow](https://outwin.ai/docs/start/quickstart/), the **Yes / No** block chooses a path and a **Think** block writes the recommendation. Each needs different instructions because the workflow uses each result differently.

## Tell the block what its result controls

For **Yes / No**, write the condition for **Yes** and say what belongs on **No**. If you followed [Set up your knowledge base](https://outwin.ai/docs/knowledge/set-up-knowledge-base/) and attached the practice refund policy, use instructions like these:

> Apply the attached refund policy to the purchase age in the request. Answer yes when the policy says the purchase qualifies for a refund recommendation. Answer no when the policy calls for review, including when the purchase age is missing.

The block gives a yes or no answer with a short reason. The run continues on the selected path with the original incoming data. In the quickstart, **No** leads to a reviewer. If you want missing information to go somewhere else, [give it a separate route](https://outwin.ai/docs/build/branch-on-a-decision/route-missing-information/).

For **Think**, say what the next person or block needs from the output. The **Think** block on the **Yes** path can use the decision already made by the flow:

> Write one sentence recommending a refund under the policy. Include the order number and purchase age from the request. If the order number is missing, say it is missing.

The instruction gives the block a concrete result to produce and tells it how to handle a missing field. The result is a recommendation someone can review.

## Give the block the facts and guidance it needs

Each AI block makes a separate model call. The block works with the information it receives for that call, so check where each fact in the instruction comes from. The request supplies the purchase age. The attached policy supplies the eligibility rule. The workflow path determines when the recommendation block runs.

When a policy changes, update the document your team maintains. Keep the block’s instructions focused on applying that guidance and producing a result. This gives the team one place to update the rule.

## Check the instruction with a case that could go wrong

Try a routine request, one outside the policy, and one missing a required fact. On the **Yes / No** block, check the reason as well as the path. If a request goes to review, the reason should reflect the purchase age or the missing information. On the **Think** block, check that the recommendation includes the facts you asked for and leaves missing details unfilled.

If the result surprises you, check [what information the block received](https://outwin.ai/docs/build/pass-information-between-steps/) before rewriting its instructions.
