# Автоподстановка в сообщения

{% hint style="info" %}
Как подставить имя подписчика в сообщение?
{% endhint %}

Добавьте в сообщении переменную: {{ name }}

{% hint style="info" %}
Как подставить номер телефона клиента в сообщение?
{% endhint %}

Добавьте в сообщении переменную: {{ phone }}

Предварительно запросив контакт у подписчика, используя:&#x20;

Блок "[Запрос номера телефона](https://help.onebot.tech/onebot-help/bloki-konstruktora/prostye/zapros-dannykh-u-podpischika)"

{% hint style="info" %}
Как подставить id клиента в сообщение или ссылку?
{% endhint %}

Добавьте в нужном месте переменную: {{ id }}

{% hint style="info" %}
Как подставить пользовательскую переменную в сообщение?
{% endhint %}

Добавьте в текст: {{ ИмяПеременной }}, соблюдая регистр.

Ознакомиться с работой переменных можно [здесь](https://help.onebot.tech/onebot-help/rabota-s-peremennymi).


---

# 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://help.onebot.tech/onebot-help/chasto-zadavaemye-voprosy/avtopodstanovka-v-soobsheniya.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.
