# Agent State Check

This action will query the agent status and generate state variables to be used in the bot flow.

<figure><img src="https://2532694803-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvGYwUmVjfELEiJzfmWLC%2Fuploads%2F3hr3d1lmVFe5YYy7f3mh%2Fagentstate.png?alt=media&#x26;token=20dde9bf-8c3d-418b-9e1d-668373d70f9d" alt="" width="488"><figcaption></figcaption></figure>

### Settings

The action uses the following settings:

| Setting     | Description                                                                                                                                           | [Parsed](https://docs.xenioo.com/actions-and-operations/dynamic-parsing) |
| ----------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------ |
| Group       | This mode allows to filter the search of operators with a specific group of users                                                                     | :no\_entry:                                                              |
| Operator    | This mode allows to filter the search to a specific operator                                                                                          | :no\_entry:                                                              |
| Mode        | This mode allows to choose between 'STATE' or 'QUEUE' to use different conditions                                                                     | :no\_entry:                                                              |
| State Mode  | This mode allows to change the condition of filter for the users search 'IS' or 'IS NOT' in a specified status                                        | :no\_entry:                                                              |
| Status      | This mode allows to specify the status filter to use in the users search                                                                              | :no\_entry:                                                              |
| Queue Mode  | This mode allows to change the condition of filter for the users search 'LESSER THAN' or 'GREATER THAN' for the total count of assigned conversations | :no\_entry:                                                              |
| Queue Count | This mode allows to specify the total assigned conversations filter to use in the users search                                                        | :no\_entry:                                                              |

### Remarks

This action can be used to query a specific agent or group for a state and queue condition.

### Trigger

This action does not have any trigger.

### Variables

This action produces the following variables after being activated:

| Variable             | Description                                                                                   |
| -------------------- | --------------------------------------------------------------------------------------------- |
| agents\_check\_count | The amount of agents that exist in the current bot and that can satisfy the action condition. |

### Availability

Channel specific availability follows the table below:

| Channel          | Availability     |
| ---------------- | ---------------- |
| Facebook         | Fully Available. |
| WhatsApp         | Fully Available. |
| Telegram         | Fully Available. |
| Web              | Fully Available. |
| Alexa            | Fully Available. |
| Google Assistant | Fully Available. |
| Slack            | Fully Available. |
| API              | Fully Available. |
