# Approval

Approval in ZBrain Flow is a workflow tool for managing approvals and permissions. It allows users to create approval requests, generate approval links, and pause flows until a decision is made, ensuring seamless process control and authorization handling.

**How to Integrate Approval with ZBrain Flow**

1. **Click the “+” button in the Flow**: Open your ZBrain Flow and click the plus sign to add a new step.
2. **Search for “Approval”**: Type “Approval” in the search bar to see the available approval-related actions.
3. **Choose the Desired Task**: Select the approval function that fits your workflow requirements.

**Tasks You Can Perform with Approval**

* **Wait for Approval**: Pauses the workflow and waits for a user to approve or reject a request before proceeding.
* **Create Approval Links**: Generates approval links that can be shared externally without pausing the flow, allowing for asynchronous decision-making.

#### **Wait for Approval** <a href="#wait-for-approval" id="wait-for-approval"></a>

Pauses the workflow and waits for a user to approve or reject a request before proceeding.

#### **How to Configure Wait for Approval** **in ZBrain Flow?** <a href="#how-to-configure-wait-for-approval-in-zbrain-flow" id="how-to-configure-wait-for-approval-in-zbrain-flow"></a>

1. **Add the Step**
   * In your ZBrain Flow, click the **+** button to add a new step.
   * Search for **“Approval”** and select **Wait for Approval** from the available options.
2. **Place in the Workflow**
   * Position the **Wait for Approval** step at the point in your flow where you need to pause execution until a decision is made.
3. **Save and Activate**
   * Since there are no additional parameters to configure, save your flow.
   * When the flow runs and reaches this step, it will pause until an approval action is taken.
4. **Approval Process**
   * Once triggered, an approval request is generated. The flow will remain on hold until someone approves or rejects the request.
   * After a decision is made, the flow resumes automatically.

#### **Create Approval Links** <a href="#create-approval-links" id="create-approval-links"></a>

Generates approval links that can be shared externally without pausing the flow, allowing for asynchronous decision-making.

#### **How to Configure Create Approval Links** **in ZBrain Flow?** <a href="#how-to-configure-create-approval-links-in-zbrain-flow" id="how-to-configure-create-approval-links-in-zbrain-flow"></a>

1. **Add the Step**
   * In your ZBrain Flow, click the **+** button to add a new step.
   * Search for **“Approval”** and select **Create Approval Links** from the available options.
2. **Place in the Workflow**
   * Position the **Create Approval Links** step at the point in your flow where you need to generate approval links for external or asynchronous decision-making.
3. **Save and Activate**
   * Since there are no additional parameters to configure, save your flow.
   * When the flow runs and reaches this step, it will generate unique approval links that can be shared as needed.
4. **Approval Process**
   * Recipients can click the shared approval links to approve or reject the request.
   * Unlike a direct wait step, the flow will continue without pausing, allowing decision-makers to act conveniently.


---

# 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://docs.zbrain.ai/zbrain-documentation/zbrain-builder/flows/flow-components/approval.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.
