> For the complete documentation index, see [llms.txt](https://apidocs.abit.vn/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://apidocs.abit.vn/cham-soc-khach-hang/api-lay-danh-sach-nhom-zalo.md).

# API lấy danh sách nhóm

API cho phép gửi File tài liệu (PDF, Word, Exel, File Ảnh) từ Zalo cá nhân của Tư vấn - sale đến một nhóm Zalo với khách hàng

{% hint style="info" %}

### Sau khi kết nối Zalo của mỗi bạn Sale, Bạn có thể lấy ID Group Zalo mà bạn sale đó tham gia và gửi tin nhắn vào nhóm nào đó bất kỳ theo hướng dân sau

{% endhint %}

Lấy ID Nhóm Zalo của nick Zalo tại đây trên giao diện Abit kết nối Zalo cá nhân

<figure><img src="https://3069215855-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F91ushNBhdXBKtwOIS6Yg%2Fuploads%2FVx3O2i5mWH9e58CiK2B2%2Flay-group-id-zalo-ca-nhan.jpg?alt=media&amp;token=1ab11d36-b3a2-4b05-9acb-68afa81a92ec" alt=""><figcaption></figcaption></figure>

Để lấy ID Nhóm Zalo, Quý khách hàng vào phần danh sách Zalo vừa kết nối, có mục **Nhóm Zalo** trên mỗi nick Zalo nhân viên&#x20;

Cách 2: Lấy ID nhóm cần gửi theo API

Phương thức: <mark style="color:green;">POST</mark>

{% tabs %}
{% tab title="URL API Example" %}

```
https://new.abitstore.vn/zalo/listAllGroupForPartner/2/{ma-shop}/{ma-truy-cap}
```

{% endtab %}

{% tab title="Body" %}

```json
{
    "phoneNumber": "84915217486"
}
```

{% endtab %}
{% endtabs %}

<table><thead><tr><th>Tham số</th><th>Giá trị</th></tr></thead><tbody><tr><td><pre><code>phoneNumber
</code></pre></td><td>SĐT Zalo dùng để gửi. Bắt buộc phải có thông tin, chú ý copy đúng định dạng số dạng <mark style="color:$danger;"><strong>84</strong></mark><strong>975xxxxxxx</strong></td></tr></tbody></table>

Kết quả gửi qua API sẽ như này, bạn có thể áp dụng để đứng ở các hệ thống ngoài Abit gửi file tài liệu&#x20;

```postman_json
{
    "number_group": 230,
    "all_groups": [
        {
            "groupId": "2277939074805121739",
            "groupname": "Nhóm A",
            "creatorId": "2054469423625461717",
            "group_avt": "",
            "number_member": 3
        },
        {
            "groupId": "22779390748051217340",
            "groupname": "Nhóm B",
            "creatorId": "2054469423625461717",
            "group_avt": "",
            "number_member": 2
        }
    ]
}
```


---

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://apidocs.abit.vn/cham-soc-khach-hang/api-lay-danh-sach-nhom-zalo.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
