> For the complete documentation index, see [llms.txt](https://docs.xenioo.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.xenioo.com/actions-and-operations/flow/xenioo.bots.actions.base.agentstatecheckaction.md).

# Agent State Check

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

<figure><img src="/files/R2ith6ShZs1tqKWi72dr" alt="" width="488"><figcaption></figcaption></figure>

### Settings

The action uses the following settings:

| Setting     | Description                                                                                                                                           | [Parsed](/actions-and-operations/dynamic-parsing.md) |
| ----------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------- |
| 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. |
