> For the complete documentation index, see [llms.txt](https://docs.yoov.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.yoov.com/yoov-work/approval-management/how-to-set-up-a-conditional-approval-process.md).

# How to Set Up a Conditional Approval Process?

* Taking leave approval as an Example, set up a conditional process:&#x20;

Condition 1: When an employee takes less than 3 days of leave, and the leave type is annual leave Condition 2: When an employee takes more than 3 days of leave, and the leave type is annual leave

* Operation process: \
  ① Enter process design and click "Sub-condition Process" on the left \
  ② Click "Condition 1" and set according to the requirements of "When an employee takes less than 3 days of leave and the leave type is annual leave". The duration is less than 3 and the leave type selects annual leave. After setting, click "Save" \
  ③ Click "Condition 2" and set according to the requirements of "When the employee's leave days are greater than or equal to 3 days, and the leave type is annual leave", the duration is greater than or equal to 3, and the leave type is annual leave. After setting, click "Save" \
  ④ After setting, the conditional branch will be displayed as follows. Then set the "reviewer" and "cc" of each branch. After set, click "Next".&#x20;

<figure><img src="/files/EIJeqlLIkY7fUkxtD6pM" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/4jPHnEIMsKD4hPzrwmjv" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/5rEOiPGDYsU7ABQxzrVL" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/FE7FfUDR0knkublGFfza" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/UZWjCRUXamG0qQwbgAaT" alt=""><figcaption></figcaption></figure>


---

# 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://docs.yoov.com/yoov-work/approval-management/how-to-set-up-a-conditional-approval-process.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.
