# Assign document to

<figure><img src="/files/4tsSHLf0bHBt1z4Vou6c" alt="" width="563"><figcaption></figcaption></figure>

## Purpose:

The **"Assign document to \[User/group] based on decision table"** workflow card dynamically assigns documents to users or groups based on the outcome of a **decision table**. This feature ensures that document assignment is handled efficiently and consistently based on predefined conditions.

## Components of the Card:

1. **User/Group**
   * **Description:** Specifies the **user** or **group** to whom the document will be assigned.
   * **Detail:** Selected based on the outcome of the **decision table**.
2. **Decision Table**
   * **Description:** A **decision table** is used to determine the appropriate **user** or **group** for document assignment.
   * **Detail:** Uses the decision table defined in the **"and"** section.

## Functionality:

* **Condition Evaluation:** The card only executes its action if both the **"Where"** and **"And Sections"** evaluate as true.
* **Dynamic Document Assignment:** The document is assigned to the **user** or **group** determined by the **decision table**.

## Setup and Configuration:

* **Define Decision Table:** Set up the **decision table** to include the conditions for determining the target **user** or **group**.
* **Assign Document to User/Group:** The document will be dynamically assigned based on the decision table's outcome.

## Conclusion:

The **"Assign document to \[User/group] based on decision table"** workflow card provides dynamic document assignment capabilities based on decision logic. This ensures accurate and efficient processing by automatically directing documents to the appropriate **user** or **group**, enhancing workflow automation.


---

# 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.docbits.com/administration-and-setup/workflow/then/assignee/assign-document-to.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.
