> For the complete documentation index, see [llms.txt](https://ladipage-vietnam.gitbook.io/v5-ladiflow/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ladipage-vietnam.gitbook.io/v5-ladiflow/tich-hop/huong-dan-tich-hop/tich-hop-bitrix24.md).

# Tích hợp Bitrix24

### Thêm tích hợp Bitrix24

1. Tìm và chọn ứng dụng **Bitrix24**.

   <figure><img src="https://1206056511-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMhzSb2lqVdrrRcaVOf97%2Fuploads%2FGPG0RnQHMYsnMuTEfzaE%2Fimage.png?alt=media&amp;token=d3ac330c-171a-4f4f-a024-f4d275d2dddb" alt=""><figcaption></figcaption></figure>
2. Chọn **Thêm liên kết**.
3. Điền đường dẫn tới Bitrix của bạn vào API URL.&#x20;

<figure><img src="https://content.gitbook.com/content/MhzSb2lqVdrrRcaVOf97/blobs/qpCPdTWBu42wT2lC5qsV/bitrix.png" alt=""><figcaption></figcaption></figure>

### Thêm ứng dụng trên Bitrix24

1. Mở 1 cửa sổ trình duyệt mới, **truy cập Bitrix24 và đăng nhập với tài khoản của bạn.**
2. **Tạo 1 ứng dụng cục bộ .**
   * Chọn **Ứng dụng**, sau đó chọn **Tài nguyên cho nhà phát triển.**
   * Chọn **Khác**
   * Chọn **Ứng dụng cục bộ**
   * Điền các thông tin để tạo. Trong đó **Đường dẫn xử lý và đường dẫn cài đặt ban đầu** bạn điền đường dẫn **URL chuyển hướng trên Automation.**

<figure><img src="https://content.gitbook.com/content/MhzSb2lqVdrrRcaVOf97/blobs/ZjbkY68yKpjXAF8m2bnO/image.png" alt="" width="375"><figcaption></figcaption></figure>

* Thông tin các quyền:CRM, người dùng (tối thiểu), người dùng (cơ bản).
* Chọn **Lưu**.&#x20;

3. **Tạo tương tự 1 ứng dụng Webhook ra ngoài.**

* **Cài Đặt**, chọn T**ài nguyên cho nhà phát triển**, sau đó chọn **Khác**. Chọn **Webhook ra ngoài.**
* Điền thông tin vào form sau đó chọn **Lưu.**
* **URL xử lý** **của bạn**: dán **Url webhook từ form Automation**<br>

  <figure><img src="https://content.gitbook.com/content/MhzSb2lqVdrrRcaVOf97/blobs/oJIph8FGyZy23mUSP3gD/image.png" alt="" width="372"><figcaption></figcaption></figure>
* Chọn các sự kiện: Contact updated, contact created, deal created, deal updated

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

### Nhập các thông tin vào form thêm mới liên kết trên **Automation** với dữ liệu bạn vừa tạo

1. Trên Bitrix24 đóng tab Khác, **chọn Tích hợp.**

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

Chọn **ứng dụng cục bộ bạn vừa tạo**, chọn **Sửa**.

<figure><img src="https://content.gitbook.com/content/MhzSb2lqVdrrRcaVOf97/blobs/pH9nIgud8hVCbyt8oFnK/su%CC%9B%CC%89a.png" alt=""><figcaption></figcaption></figure>

2. **Copy client\_id paste vào Client ID trên form thêm liên kết Automation.**

<figure><img src="https://content.gitbook.com/content/MhzSb2lqVdrrRcaVOf97/blobs/80VlcdICuf6yUnwT5vUK/image.png" alt=""><figcaption></figcaption></figure>

3. **Copy Khóa ứng dụng (client\_secret)** paste vào **Client Secret trên form thêm liên kết Automation.**

<figure><img src="https://content.gitbook.com/content/MhzSb2lqVdrrRcaVOf97/blobs/dRAHMbhpapeBZZKh2xiV/image.png" alt="" width="563"><figcaption></figcaption></figure>

4. **Chọn Xác thực**, **điền Tên liên kết** và **chọn Lưu liên kết.**

<figure><img src="https://1206056511-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMhzSb2lqVdrrRcaVOf97%2Fuploads%2FMnJFRjtGp3ppsd8CogDp%2Fimage.png?alt=media&amp;token=fdfdae34-c48b-4b4d-b218-3bb2769b9657" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
**Hiện tại hệ thống không giới hạn số tích hợp Bitrix24.**
{% endhint %}
