# Configuring a conditional assignee

Using this feature, we can assign the buttons created for a step to the users whose phone numbers or email IDs match with the ones entered in any of the fields of a form.

Refer to step 6 of the **Reimbursement Workflow** as described in the [**Overview** ](/workflow-builder/introduction/overview.md)section. The member from the **Admin Team** to be assigned to the step is selected based on the **Phone Number** field in the form. The system will then match the value of this field with the phone numbers of the users in the system. Thus, the member of the **Admin Team** is the conditional assignee here.

To configure a conditional assignee for a step,

1\.    In the node, click <img src="/files/-MhJQdeYDVsJXEKuLzbo" alt="" data-size="original"> .

<figure><img src="/files/fdpA2nqhjlhjrenphRFA" alt=""><figcaption><p><em>Conditional Assignee</em></p></figcaption></figure>

&#x20;The **Define actions** window is displayed. You can set up a conditional assignee for the current step of the workflow here.

<figure><img src="/files/yzTYkbYunye1TGy9d6Td" alt=""><figcaption><p><em>Conditional Assignment</em></p></figcaption></figure>

2\.    Under the **Select form field from which email/phone will be picked up for the user details mapping,** select the field from which you want to match the value to the one in the user’s profile.\
As we see in the image above, we have selected the **Phone Number** field of the form.

3\.    Under **Select the user profile field which should be picked for assignment**, select the user list from which you want to assign a user to this step, and then select the field in the user profile to be matched with the value of the field in the form.\
As we see in the above image, we have selected the user list as **EMPLOYEE** and the field in the user profile as **phone**.

{% hint style="info" %}
The above selections ensure that the next assignee from the **Audit Team** is selected based on the **Phone Number** field in the form. The system matches the value of this field with the phone numbers of the users in the **EMPLOYEE** user list.
{% endhint %}

4\.    To save the settings, at the bottom right, click **Apply**.\
&#x20;The settings are saved, and the step will be assigned to the user whose profile details match the field value in the form.


---

# 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.senpiper.com/workflow-builder/how-to-create-workflows/define-workflow-actions/configuring-a-conditional-assignee.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.
