# 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: 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:

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

The question should be specific, self-contained, and written in natural language.
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.
