# Integration with Bitrix24

[*Bitrix24*](https://www.bitrix24.ru/) *helps businesses operate and takes control of all communication channels with clients, suggests what to do and automates sales*.

Integration setup is done using the Make service. The first step is setting up the connection **Selarti + Make** was covered in a [separate article](https://manual.selarti.com/manual-en/external-integrations/integration-using-the-make-service). In this article, the second part of the setup is covered — the connection **Bitrix24 + Make**.

### Creating an action in the Make service

In the Make service, click on the «*+*»*.*

<figure><img src="https://content.gitbook.com/content/sBua8zDbkZPvmgjidnwA/blobs/Xo0K3TUycYS6xgmDvohp/image.png" alt=""><figcaption></figcaption></figure>

A menu will open, select «*Bitrix24*».

<figure><img src="https://content.gitbook.com/content/sBua8zDbkZPvmgjidnwA/blobs/Cb6VMURnAeTl1AYVFc8T/%D0%B1%D0%B8%D1%82%D1%80%D0%B8%D0%BA%D1%81%20+.png" alt=""><figcaption></figcaption></figure>

Next, select the action you need, for example, creating a new lead: «*Create a Lead*».

<figure><img src="https://content.gitbook.com/content/sBua8zDbkZPvmgjidnwA/blobs/0TMD6QKO4JnViIKNtCIw/%D0%A1%D0%BD%D0%B8%D0%BC%D0%BE%D0%BA%20%D1%8D%D0%BA%D1%80%D0%B0%D0%BD%D0%B0%202024%2007%2026%20%D0%B2%2014.15.03.png" alt="" width="375"><figcaption></figcaption></figure>

Connect your Bitrix24 account. To do this, in the field «*Connection name*» enter any name, and in the field «*Domain URL*» the URL of your domain in the format: <https://domain\\_name.bitrix24.ru>. Click «*Save*»*.*

<figure><img src="https://content.gitbook.com/content/sBua8zDbkZPvmgjidnwA/blobs/9IsLoetVBVfIJDmdsHse/image.png" alt=""><figcaption></figcaption></figure>

After successful authorization, select the values you want to receive and click «*OK*».

<figure><img src="https://content.gitbook.com/content/sBua8zDbkZPvmgjidnwA/blobs/xStRRLdtuOEdPsyzwnKv/image.png" alt=""><figcaption></figcaption></figure>

After setting up the actions, click the button «*Run once*».

<figure><img src="https://content.gitbook.com/content/sBua8zDbkZPvmgjidnwA/blobs/UlpGBlEkILgCV0li4zQ9/image.png" alt=""><figcaption></figcaption></figure>

Done!

### Description of webhook fields

<mark style="color:purple;">**`title`**</mark> — name of the dialog (First Name Last Name/profile name).\ <mark style="color:purple;">**`contacts`**</mark> — interlocutor's contacts. Phone, username.\ <mark style="color:purple;">**`success`**</mark> — AI agent marked the dialog as successful (yes/no).\ <mark style="color:purple;">**`get_contact`**</mark> — AI agent received additional contacts of the interlocutor (yes/no).\ <mark style="color:purple;">**`close`**</mark> — dialog closed (yes/no).\ <mark style="color:purple;">**`is_bot`**</mark> — dialog identified as a bot (yes/no).\ <mark style="color:purple;">**`share_url`**</mark> — link to view the dialog.\ <mark style="color:purple;">**`company_id`**</mark> — company id.\ <mark style="color:purple;">**`task_id`**</mark> — task id.\ <mark style="color:purple;">**`thread_id`**</mark> — dialog id.\ <mark style="color:purple;">**`dialog`**</mark> — AI dialog with the user in text.
