# Подключение EnvyCRM

{% hint style="info" %}
Интеграция доступна на тарифе "Премиум"
{% endhint %}

### Шаги подключения к EnvyCRM

{% stepper %}
{% step %}
**Шаг 1**

Убедитесь, что к вашей EnvyCRM подключён хотя бы один мессенджер.
{% endstep %}

{% step %}
**Шаг 2**

1. Зайдите в EnvyCRM
2. Запишите домен вашей CRM<br>

   <div align="left"><figure><img src="/files/DSR402JnlNNkmjJryMsd" alt=""><figcaption></figcaption></figure></div>
3. Откройте **Настройки → Интеграции → API**.
4. Скопируйте Ключ API<br>

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

{% endstep %}

{% step %}
**Шаг 3**

1. В сервисе Nextbot откройте Интеграции → [EnvyCRM](https://app.nextbot.ru/integrations?tab=EnvycrmSettings)
2. Введите домен вашей CRM и API-ключ<br>

   <figure><img src="/files/SCOC3Z7znxwSJvLWKiJK" alt=""><figcaption></figcaption></figure>
3. Нажмите **«Подключить»**.
   {% endstep %}

{% step %}
**Шаг 4**

1. Найдите агента, которого хотите подключить.
2. Настройте параметр **«Разрешённые этапы лидов»**.
3. Если выбран один из этапов для работы с лидами, появится опция **«Принимать лид в работу в начале диалога»**. Она позволяет автоматически создавать сделку для лида.
4. Выберите Воронку
5. Настройте **«Разрешённые этапы воронки»**.<br>

   <figure><img src="/files/R2FUZZPFKzcYou0PczvO" alt=""><figcaption></figcaption></figure>
6. Нажмите **«Подключить»**.
   {% endstep %}

{% step %}
**Шаг 5**

1. В нужной функции добавьте действие **EnvyCRM**.<br>

   <figure><img src="/files/TLu3hKVsYMZCJfZjI4KR" alt=""><figcaption></figcaption></figure>
2. Настройте перемещение по воронке при срабатывании функции.
3. Настройте заполняемые поля<br>

   <figure><img src="/files/dtqVKBHlwYnyqVMdFErD" alt=""><figcaption></figcaption></figure>
4. Нажмите **«Сохранить»**.
   {% endstep %}
   {% endstepper %}


---

# 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://doc.nextbot.ru/functional/integrations/envycrm/podklyuchenie-envycrm.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.
