> For the complete documentation index, see [llms.txt](https://help.windmillsoft.kr/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.windmillsoft.kr/en/simplychat/salesforce-setup-guide/set-up-auto-response/setting-up-auto-response-in-salesforce/connect-to-an-agent-when-a-button-is-clicked/displaying-the-waiting-queue.md).

# Displaying the waiting queue

When a customer clicks the "Connect to a consultant" button in the auto-response, a message is displayed showing the number of customers currently waiting ahead in the queue (Chat Request).

### Enable the waiting queue display feature

1. Before setting up auto-response, click on the gear icon in the top right corner and then click on 'Setup'.
2. Enter 'Custom Settings' in the Quick Find box and select it.

<figure><img src="https://174170309-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcMCw4RFNzatnGReKcWKb%2Fuploads%2FnlzvNndE8GpNlWhHG29n%2Fimage.png?alt=media&amp;token=546babce-1dd9-4475-89b7-9747eebb77b5" alt=""><figcaption></figcaption></figure>

3. Click on the 'Manage' button next to SC\_Setup.

<figure><img src="https://174170309-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcMCw4RFNzatnGReKcWKb%2Fuploads%2FV9weYP0s95t58C7AOL0H%2Fimage.png?alt=media&amp;token=7e29611f-265d-4d0c-aa6e-e6c1fdd2b76f" alt=""><figcaption></figcaption></figure>

4. Set 'Enabled waiting list display' to True and click Save.

<figure><img src="https://174170309-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcMCw4RFNzatnGReKcWKb%2Fuploads%2FqHZtORIh4MEr5OvBjduQ%2Fimage.png?alt=media&amp;token=baad8f3c-28d0-43b9-b628-45a4719a8b49" alt=""><figcaption></figcaption></figure>

### Set up the wating queue message

The configuration is the same as the "Connect to a consultant" message.

Use {{n}} in the message where the number of waiting customers should be displayed.

If there are multiple "Connect to a consultant" messages, use Priority to specify their display order.

<figure><img src="https://174170309-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcMCw4RFNzatnGReKcWKb%2Fuploads%2FEhAmCKzgVDAXDp61eCn3%2Fimage.png?alt=media&amp;token=269baa10-5fdc-4620-acf0-6fc3f3c1668e" alt=""><figcaption></figcaption></figure>

<figure><img src="https://174170309-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcMCw4RFNzatnGReKcWKb%2Fuploads%2F4gptXaw45M9T8gINaKeM%2Fimage.png?alt=media&amp;token=922cb3f8-e057-4913-abf4-c1b3cbc6048a" alt=""><figcaption><p>When there are people waiting</p></figcaption></figure>

<figure><img src="https://174170309-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcMCw4RFNzatnGReKcWKb%2Fuploads%2FtKg8J8nJcq50x8wsbu2P%2Fimage.png?alt=media&amp;token=b6eb353b-8884-437d-99c6-b34c75791681" alt=""><figcaption><p>When there are no people waiting</p></figcaption></figure>

{% hint style="warning" %}
If there are no waiting customers when a customer clicks "Connect to a consultant," **the auto-response displaying the waiting queue will not be shown.** Therefore, make sure to add a **default "Connect to a consultant" message.**
{% endhint %}
