# Переменные (имя и другие)

**Шаг 1.** Нажмите на кнопку «Редактировать» <img src="/files/-Lhnw56Uc4Avi_MV8-il" alt="" data-size="line">&#x20;

![](/files/-LqBj7bBgcKBOCCjvVmV)

**Шаг 2.** Добавьте переменную {firstname} - имя

![](https://lh6.googleusercontent.com/MvV6nsI3c2K11wmrMbEFRJw52wvWjPiEtStumPAI5l3SrDgHYYPdyXCAJOP9u_w34yf9pmkxxFQK_qfUgLSmOCFwYQBEktWcL1lkEOIf0N8SIlQn3TUPeaVibu5gJdVYDgW4vViT)

**Шаг 3.** Добавьте переменную «вторая половинка»

![](https://lh5.googleusercontent.com/qDyHviAVIb0p9ODVyWdCpRqh-rQlVzzolbu35aVGMuMAeSzPvXCyVyFL7TWnLdQ-r_xR0_d2ZfCSc8KM3eqbyen_yr1oDTo3PwCs-jdFIEH4CYEIZr_yrOFfQYv55wQFEP-8x0i8)

{% hint style="info" %}
При выборе переменной **{любимый(ая)}** в виджет будет подставляться имя второй половинки посетителя вашей группы.                                                &#x20;

**Пример:**\
\&#xNAN;*Ваня {имя}, твоя Маша {любимый(ая)} хочет самый лучший подарок на 8 марта!*

\
Если у посетителя в семейном положении **не указан партнер**, то имя второй половинки заменится на слово **«любимый(ая)»**                               &#x20;

**Пример:**\
\&#xNAN;*Ваня {имя}, твоя любимая {любимый(ая)} хочет самый лучший подарок на 8 марта!*
{% endhint %}

**Переменные**:                                                                                                                  &#x20;

* **{Lastname}** - фамилия посетителя
* &#x20;**{City}** - город проживания
* **{Career}** - последняя профессия - временно недоступны

![](/files/-LhnvIR5gwdw4H8HCm7g)


---

# 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://academy.spycat.ru/spycat-widget/redaktirovanie-vidzheta/kak-dobavit-v-vidzhet-imya-posetitelya.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.
