# Assign from queue

> Gives the lead to the next rep of a queue.

Later steps act for that rep.

| | |
|---|---|
| Type | `queue` |
| Group | Routing |

## Exits

| Exit | Name |
|---|---|
| `next` | Next |

## Settings

| Key | Label | Takes | Default | Notes |
|---|---|---|---|---|
| `queueId` | Queue | A string: a queue's id, from list_queues. |  |  |

## Fields it adds

| Field | What |
|---|---|
| `flow.rep_name` | Rep's name |
| `flow.rep_owner` | Rep's HubSpot owner ID |
| `flow.queue_name` | Queue's name |

## In a flow document

```json
{
  "id": "queue1",
  "type": "queue",
  "settings": {}
}
```
