# Как дать ссылку на конкретный чат?

Чтобы создать ссылку, которая будет вести в конкретный чат на портале Битрикс24, сначала необходимо получить ID (идентификатор) диалога. Для этого находясь в чате нажмите на значок «Команды», выберите команду «/getDialogId» и отправьте её в чат:

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

После отправки команды, вы получите уведомление следующего вида:

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

Далее, вы можете сформировать ссылку, подставив скопированный ID диалога в данную конструкцию:

> `https://вашпортал.bitrix24.ru/online/?IM_LINES=`**chat21**


---

# 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.olchat.io/voprosy-i-otvety/rabota-s-chatami/kak-dat-ssylku-na-konkretnyi-chat.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.
