# Разные ответы в зависимости от пола пользователя

Чтобы бот отвечал по-разному в зависимости от пола пользователя можно использовать [условия на переменную](/sozdanie-scenariev/usloviya.md#usloviya-na-peremennye) **%пол%.**

С помощью SQ можно делать то же самое, но прямо внутри текста сообщений, например:

![](/files/-M8A_N3NddmX02E71-6p)

![](/files/-M8A_q4UgQwOYw7uDb1t)

Код:

```python
Ты {{ "набрала" if %пол% == "женский" else "набрал" }} 10 баллов!
```


---

# 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.smartbot-vk.ru/smartquery/recipes/raznye-otvety-v-zavisimosti-ot-pola-polzovatelya.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.
