> For the complete documentation index, see [llms.txt](https://docs.pushsale.vn/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.pushsale.vn/huong-dan/marketing/tien-ich/ket-noi-phan-mem-thu-3/2.12.3-ket-noi-bot-ban-hang.md).

# 2.6.3.6 Kết nối Bot Bán Hàng

## **Bước 1. Thực hiện trên** [**https://pushsale.vn**](https://pushsale.vn)

1\. Sử dụng tài khoản **Marketing**, vào menu <img src="/files/-Md6MrPefSkGSHkNAutB" alt="" data-size="original"> , Chọn **2. Marketing --> 2.6 Tiện ích -->** **Kết nối phần mềm thứ 3**

![](/files/-Md6N1gy-BI0s8cI-m1i)

2\. Bấm vào biểu tượng<img src="/files/-M5aaoXC5RrWE9ZhWHV_" alt="" data-size="original"><img src="/files/-Md6NABq7JwHXRSeaY-p" alt="" data-size="original">&#x20;

Tại đây, bấm vào <img src="/files/-Md6NGf8nDp-Ye29CXJc" alt="" data-size="original"> để chuyển thành <img src="/files/-Md6NMbXOc1v0JO7y3EL" alt="" data-size="original">&#x20;

3\. Tiếp theo, hãy bấm nút <img src="/files/-Md6LLOOYrXf54VTetHS" alt="" data-size="original"> để thực hiện thêm mới kết nối cho mỗi Fanpage&#x20;

Điền thông tin để tạo nguồn mới:

* **Loại kết nối:** PartnerShip
* **Tên nguồn dữ liệu:** Tên của Fanpage\_Tên Bot
* **URL nguồn dữ liệu:** Đường dẫn về fanpage
* **Kênh quảng cáo:** Facebook Ads
* **Sản phẩm:** Phân quyền sản phẩm được chạy
* **Ưu tiên sale**: Phân quyền sale được chia data

4\. Nhấn <img src="/files/-Md6BtQJxK5AZZ9tNHH2" alt="" data-size="original">  hệ thống sẽ tự động sinh ra **Url kết nối**

5\. Copy **Url kết nối**&#x20;

## **Bước 2. Thực hiện trên** [**https://botbanhang.vn/page**](https://botbanhang.vn/page)

![](/files/-Md6Nm6OvsHBqNQ7YGg5)

1\. Bấm nút <img src="/files/-Md6O3uf0j6vpNlQLoqF" alt="" data-size="original"> trên page mà Anh/Chị đang muốn kết nối

Sau đó bấm vào biểu tượng **Chatbot** và chọn **Kịch bản**, như hình sau:

![](/files/-Md6OBKo1B4A7L88c3_W)

{% hint style="warning" %}
**Lưu ý:** Anh/Chị cần sử dụng gói **LOYALTY** để có thể kết nối với **Pushsale**
{% endhint %}

2\. Để contact về được Pushsale thì cần ít nhất 2 thông tin: Họ tên và số điện thoại

* Họ tên: Sử dụng trường `name`
* Số điện thoại: Sử dụng trường `phone`

Ngoài ra, Anh/Chị còn có thể thêm các trường thông tin khác như:

* Địa chỉ: Sử dụng trường `address`
* Tin nhắn: Sử dụng trường`message`

**Cách làm:**

* Bấm nút <img src="/files/-Md6OQdMocmeklUh0NlV" alt="" data-size="original"> và thực hiện như hình bên dưới

![](/files/-Md6OKOeUIK48VR_208l)

2\. Kết nối API với Pushsale

**Cách làm:** Tạo 1 câu hỏi cuối cùng, chọn loại **Gửi yêu cầu**

* Chọn phương thức GET
* Copy **Url kết nối** trên Pushsale và dán vào ô **Đường dẫn**
* Muốn truyền thông tin nào sang Pushsale, anh chị hãy gõ thêm vào API theo định dạng:

```
?name={{trường số 1}}&phone={{trường số 2}}&address={{trường số 3}}
```

**Ví dụ:**&#x20;

```
https://pushsale.vn/ld-api/lid/58787/sc/25558?name={{name}}&phone={{phone}}&address={{address}}&message={{message}}
```

3\. Sau đó bấm **Lưu**

Vậy là Anh/Chị đã hoàn tất thiết lập kết nối **Pushsale** và **Bot Bán Hàng.**

## **Bước 3. Kiểm tra contact về Pushsale qua kịch bản Bot Bán Hàng**

1\. Bấm vào nút <img src="/files/-Md6QBf2KLqrSE2zWzqX" alt="" data-size="original"> ở góc trên cùng, bên phải màn hình Bot bán hàng.

![](/files/-Md6QGHUpNqKl303xm2g)

2\. Thực hiện trả lời theo kịch bản

3\. Kiểm tra tại màn hình **Hồ sơ khách hàng** của Pushsale để kiểm tra số về hệ thống.


---

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.pushsale.vn/huong-dan/marketing/tien-ich/ket-noi-phan-mem-thu-3/2.12.3-ket-noi-bot-ban-hang.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.
