# 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. |


---

# 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.xenioo.com/actions-and-operations/flow/xenioo.bots.actions.base.agentstatecheckaction.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.
