> For the complete documentation index, see [llms.txt](https://doc.nextbot.ru/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.nextbot.ru/functional/functions/sending-result/envycrm.md).

# EnvyCRM

Настройка отправки данных в EnvyCRM

Для отправки данных и перемещения сделки необходимо подключить интеграцию [EnvyCRM](https://doc.nextbot.ru/functional/integrations/envycrm/podklyuchenie-envycrm.md)

### Перемещение сделки по воронке

Перемещение позволяет передвинуть сделку на другой этап после выполнения функции<br>

<figure><img src="https://2593311972-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fef2EBU68XAlye1NtG8DF%2Fuploads%2Fua8H7gmc7fY4kqjYF1Sx%2Fimage.png?alt=media&amp;token=87d1a03e-9540-449a-b1f9-89249e0307ae" alt=""><figcaption><p>Перемещение по воронке</p></figcaption></figure>

Доступны две настройки:

* **Воронка** - вы выбираете в какую воронку будет перемещаться сделка либо не будет перемещаться вовсе
* **Название этапа** - вы выбираете этап, куда будет перемещаться сделка

<br>

<figure><img src="https://2593311972-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fef2EBU68XAlye1NtG8DF%2Fuploads%2FazTOQRDQ7XWcY0y1JSnG%2Fimage.png?alt=media&amp;token=7781346a-d2b6-4cc1-80f7-230d55d0bb30" alt=""><figcaption><p>Поля для заполнения</p></figcaption></figure>

### Заполнение полей crm

Для заполнения доступны 3 вида полей:

* Поле сделки
* Поле клиента
* Поле контакта клиента

Для заполнения полей выберите:

1. Тип поля который берется из EnvyCRM, например: email, название сделки, телефон контакта.
2. Источник источник откуда будут браться данные и передаваемые значения:
   * текст - можно написать свой заданный текст и добавить в CRM;
   * параметр из функции - добавить результат из функции в CRM;
   * данные пользователя - добавить системные поля в CRM.
   * пользовательская переменная - использовать пользовательскую переменную агента или диалога

###


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://doc.nextbot.ru/functional/functions/sending-result/envycrm.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
