# Tích hợp với Ahachat

## Kết nối Ahachat với SlimCRM

*Bước 1:* đăng nhập Ahachat và vào mục **\[ Trả lời tự động ]** và chọn một kịch bản cũ để chỉnh sửa hoặc tạo kịch bản mới tên là \[ Lưu dữ liệu vào SlimCRM ]\
\&#xNAN;*Bước 2:* tạo mới block **\[ JSON API ]**\
\&#xNAN;*Bước 3:* chọn phương thức **\[ POST ]** và nhập link api bạn cần sử dụng. \
\&#xNAN;*Ví dụ:* bạn cần thêm cơ hội vào SlimCRM thì có thể dùng `https://crm.slimsoft.vn/demo/api/leads` -> tham khảo [chi tiết danh sách api của SlimCRM tại đây](https://help.slimcrm.vn/tich-hop/tong-quan-cac-api)

![](/files/-MeYSXHBjAu8uAxXJ4NH)

## Lưu dữ liệu khách hàng từ Ahachat vào SlimCRM

*Bước 1:* Trong mục **\[ Live chat ]** chọn khách hàng cần lưu\
\&#xNAN;*Bước 2:* Trong ô nhập phản hồi chọn nút **\[ Chuyển tiếp kịch bản ]** sau đó chọn \[ Nhập dữ liệu vào SlimCRM ]

Ngoài ra bạn cũng có thể tự động lưu dữ liệu từ AhaChat vào SlimCRM trong bất kỳ kịch bản chatbot nào thông qua **\[ JSON API ]**

## **Danh sách các API hỗ trợ**

***Bạn có thể truy cập vào mục "Kết nối API" ngay trong hướng dẫn này hoặc*** [***bấm vào đây***](https://help.slimcrm.vn/tich-hop/tong-quan-cac-api)


---

# 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://help.slimcrm.vn/tich-hop/tich-hop-voi-ahachat.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.
