> For the complete documentation index, see [llms.txt](https://agent-x-1.gitbook.io/agent-x/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://agent-x-1.gitbook.io/agent-x/kak-dobavit-pochty/gmail.md).

# Gmail

### Создаем обязательно пароль приложения в Gmail <a href="#gmail" id="gmail"></a>

Для авторизации почты в Agent-X использует три параметра:

* Login — ваша почта (например, <name@gmail.com>)
* Password — пароль от аккаунта
* App password — отдельный пароль, который выдаёт почтовый сервис для внешних программ

Если Login и Password у вас уже есть — отлично.\
Осталось создать App password. Ниже — инструкция, как его создать.

***

1. Войдите в свой почтовый ящик Gmail.

<div data-with-frame="true"><figure><img src="/files/aFI9ECeX4dLMZu7CuCXD" alt=""><figcaption></figcaption></figure></div>

2. Щелкните значок своего аккаунта и выберите ссылку Manage your Google Account (Управление аккаунтом Google ).

<div data-with-frame="true"><figure><img src="/files/bCcNG6aZqJuvqxj9qhpM" alt=""><figcaption></figcaption></figure></div>

3\. Вы будете перенаправлены на страницу своего аккаунта Google. Перейдите на вкладку **Безопасность** в левом боковом меню. Проверьте двухэтапную аутентификацию, без нее не будет доступа к генерации паролей приложений, если ее нет, включите, должно подсвечивать зеленым и писаться "Включана: <дата>":

<div data-with-frame="true"><figure><img src="/files/4aLcol4BJgeiCjWdBmhK" alt=""><figcaption></figcaption></figure></div>

4\. После перейдите на страницу паролей приложений по адресу [https://myaccount.google.com/apppasswords.](https://myaccount.google.com/apppasswords) Если у вас нет доступа к странице, то двухэтапная проверка не включена, включите ее, как показано в прошлом пункте. Вам будет предложено ввести пароль еще раз, после чего вы будете перенаправлены на страницу **паролей приложений**. В поле "Название приложения" введите Agent-X и нажмите Создать:&#x20;

<div data-with-frame="true"><figure><img src="/files/4duxaRNQJAFE40aPDb76" alt=""><figcaption></figcaption></figure></div>

5. Скопируйте пароль:

<div data-with-frame="true"><figure><img src="/files/h2txYnUI0nfI2j8JY4Ic" alt=""><figcaption></figcaption></figure></div>

6. Импортируйте логин с паролем от почты, вместе с паролем приложения в раздел Почт в Agent-X - [инструкция](https://agent-x-1.gitbook.io/agent-x/kak-dobavit-pochty/pages/eeLRapmB5BzRxIT0V6HC#id-1.-import)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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://agent-x-1.gitbook.io/agent-x/kak-dobavit-pochty/gmail.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.
