# Round Robin Assign Single Item

Assigns an item to a user associated with a Gradient Works Queue. The item may be of any type (e.g. Account, Lead, etc). The assignment is performed immediately.

You can access the results of the assignment attempt in the [Assignment](https://docs.gradient.works/kb/automation-builder-kit-abk/models/assignment) object included in the output. It will include information about if the assignment completed successfully or if there was an error as well as information about the user that received the item. You can use this [Assignment](https://docs.gradient.works/kb/automation-builder-kit-abk/models/assignment) object as an input to other actions such as [Send Single Assignment Email](https://docs.gradient.works/kb/automation-builder-kit-abk/actions/next-steps/sendsingleemailnotificationaction) or [Send Slack Message](https://docs.gradient.works/kb/automation-builder-kit-abk/actions/next-steps/sendchatnotificationaction).

If you specify a capacity using Set Item Capacity, that value will be used in capacity calculations when assigning the item to a user. For example, if you specify a value of 5, users must have an available capacity greater than or equal to 5 to be eligible for assignment. If no capacity is specified, we assume a null capacity value for the item and do not perform any capacity calculations during assignment.

## Configuration

{% tabs %}
{% tab title="Flow Element" %}

<figure><img src="https://2378295204-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUYXbv7c6RsZzQ00WCDTM%2Fuploads%2Fgit-blob-a093813c720c4ad9ccb984431a83200babe5688d%2FAssignSingleItemAction.png?alt=media" alt=""><figcaption></figcaption></figure>
{% endtab %}

{% tab title="Apex Properties" %}

| Name               | Required | Type    | Description                                         |
| ------------------ | -------- | ------- | --------------------------------------------------- |
| item               | Yes      | SObject | The Salesforce object to assign                     |
| queue              | Yes      | String  | The target queue. May be an Id or the queue name.   |
| capacityValue      | No       | Long    | Item capacity value                                 |
| capacityValueField | No       | String  | Retrieve capacity value from this field on the item |
| {% endtab %}       |          |         |                                                     |
| {% endtabs %}      |          |         |                                                     |

## Outputs

| Name       | Type                                                                                      | Description                                                              |
| ---------- | ----------------------------------------------------------------------------------------- | ------------------------------------------------------------------------ |
| assignment | [Assignment](https://docs.gradient.works/kb/automation-builder-kit-abk/models/assignment) | Information about the assignment, including who the item was assigned to |


---

# 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.gradient.works/kb/automation-builder-kit-abk/actions/assignment/assignsingleitemaction.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.
