> For the complete documentation index, see [llms.txt](https://help.quickappflow.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.quickappflow.com/workflow/ai-stages/decision-yes-no.md).

# Decision-Yes/No

Select the stage by clicking on the radio button next to it.

Click OK to confirm your selection.

![](/files/EtqedSbfuKi2Zz0fozBm)

Once you have selected Decision-Yes/No, you will be prompted to set up the AI decision. Enter your prompt in the Ask AI text box.

Click on Use Prompt.

![](/files/ABuD2tfIORQ1FdukcSFm)

Create a Prompt

In the prompt creation screen, you will need to define the AI prompt and expected answers.

Write your prompt in the Create a prompt text box and Save the Prompt

![](/files/8erF6GlUgdapCgKuIbpq)

Add Stages for Decision Outcomes

You will see two branches for Yes and No outcomes.

![](/files/YuYUU9YUYM4OKQMH1rd2)

Click on + Stage under each branch to add subsequent stages based on the AI decision.

Under Expected Answer, enter the possible options for the AI decision. For a Yes/No decision, fill in:

Option-1: Yes

Option-2: No

![](/files/qqjNCliFmMvaXBE592n3)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://help.quickappflow.com/workflow/ai-stages/decision-yes-no.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
