# Tạo cấu hình

Người dùng có thể tạo các cấu hình khác nhau cho từng loại cấu hình. Salework CRM đang có 4 loại cấu hình chính:

* Sau khi liên hệ đăng ký
* Sau khi đơn hàng thành công
* Trước khi sản phẩm hết thời gian sử dụng
* Khi cơ hội vượt quá thời gian chăm sóc

Để thêm 1 cấu hình bạn chọn **Thiết lập** >**Cấu hình tự động**  >**Thêm mới:**

<figure><img src="https://1829614902-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FluaLLHIF63D42y9TMLRc%2Fuploads%2FkTPaoh9fUfMA8hkFY51J%2Fimage.png?alt=media&#x26;token=19173870-a98a-41d8-ae94-969ff37b1bde" alt=""><figcaption></figcaption></figure>

Chọn "Sử dụng" cho loại cấu hình cần tạo cấu hình , ví dụ loại Sau khi Liên hệ đăng ký:

<figure><img src="https://1829614902-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FluaLLHIF63D42y9TMLRc%2Fuploads%2F7OFRFJVm7TeGNHh0oPhq%2Fimage.png?alt=media&#x26;token=c1dcd83d-09d1-451e-9416-46b62fc4b8cd" alt=""><figcaption></figcaption></figure>

Hệ thống sẽ hiển thị màn "Thiết lập cấu hình tự động", bạn sẽ điền các thông tin:

* Thông tin cấu hình: Tên, ghi chú cho cấu hình đang tạo
* Điều kiện: Tùy loại cấu hình mà điều kiện sẽ khác nhau, ở ví dụ này điều kiện là: "Mặc định Liên hệ ngay sau khi đăng ký"
* Thiết lập hành động: Tạo cơ tự động bạn cần chọn Loại cơ hội sẽ được tạo, nếu muốn gửi ZNS bạn chọn Gửi ZNS

<figure><img src="https://1829614902-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FluaLLHIF63D42y9TMLRc%2Fuploads%2FYOVG5h5QkZMhVOKXiiTL%2Fimage.png?alt=media&#x26;token=51c9e521-d125-42bf-ba07-0aa273d38f45" alt=""><figcaption></figcaption></figure>

Đối với gửi ZNS tự động người dùng sẽ cần thiết lập các biến đang có trong hệ thống tương ứng với các biến trong template đã đăng ký với Zalo thông qua công ty ESMS:

Ví dụ Salework đăng ký 1 template như sau

<figure><img src="https://lh4.googleusercontent.com/2A7Oi02neiZHkgxMjYCbdnJIsNAmi8DSdUCsvQW8dRJrSzy4yfrcIw5voim02_wwVGRgpzwSfmnYaBH28P-eXPLukGHthmB7gjByJPUUr5Cl25hC4Sqz-48BaKKHLLsplHxSar0xQ_6rOCKTXoQWBXI" alt=""><figcaption></figcaption></figure>

Trong template có 4 biến là: tên khách hàng, ngày đăng ký, tài khoản, số điện thoại, các biến này cần bạn thiết lập tương ứng với các biến đang có trên hệ thống Salework CRM.

<figure><img src="https://lh3.googleusercontent.com/X4s6nI1EPjya8OvFAyYz5ekRbi927wMZhBlNeaIhvD75-9mXdsOS1mjvQMPBBZY1x9F3C-hUx4KlGPiL8Pg9ItiF283RHfA35i12RC9PwbctscnasWJxDtElR194D46GCNSP1VE-xWo7L3V7-LawJKs" alt=""><figcaption></figcaption></figure>

Sau khi điền các thông tin bạn chọn **Lưu** để hoàn tất.<br>


---

# 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://docs.salework.net/salework-tai-lieu/salework-crm/thiet-lap-he-thong/cau-hinh-tu-dong/tao-cau-hinh.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.
