# Agent Availability Block

{% hint style="info" %}
The Salesforce connector is available is part of the **Enterprise** plan
{% endhint %}

You can make use of the **Salesforce - Agent Availability** block to check if the agents are available to do live chat in a specific group.

<figure><img src="/files/eVJnuO8xTLMNlBQVfLkA" alt=""><figcaption></figcaption></figure>

### Setup

<figure><img src="/files/aSiuM2PbKPdGJzGNbolk" alt=""><figcaption></figcaption></figure>

You will need to define the following parameters:

1. Live Agent Url
2. Salesforce Organization Id
3. Deployment Id
4. Button Id

Once you define the node, the node will check for availability of agents and then set the parameter

```
availability = available (if agents are available)
availability = no (if no agents are available)
```

You can then use the parameter in subsequent rules to route the conversation accordingly.


---

# 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.deepconverse.com/product-docs/conversational-flow-builder/conversation-blocks/salesforce-blocks/agent-availability-block.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.
