> 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-gui-tin-nhan-den-nhom-zalo.md).

# API gửi tin nhắn đến nhóm Zalo

API cho phép gửi tin nhắn đến Nhóm (Group Zalo ) . Điều kiện để gửi được là cần có thông tin Group ID của nhóm Zalo mà bạn muốn gửi tới, Để có thông tin ID Nhóm Zalo thì bạn cần lấy trên Abit

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 API sau

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 URL này, Quý khách hàng vào phần danh sách Zalo vừa kết nối, có mục <mark style="color:blue;">**URL API**</mark> trên mỗi nick Zalo nhân viên và gửi đến url trên với body định dạng như mẫu dưới đây

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

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

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

{% endtab %}

{% tab title="Body" %}

```json
{
"send_from_number": "84975387753",
"send_to_groupid": "4973309772266774852",
"message": "Nội dung gửi tin nhắn đến nhóm Zalo bạn muốn"
}
```

{% endtab %}
{% endtabs %}

<table><thead><tr><th>Tham số</th><th>Giá trị</th></tr></thead><tbody><tr><td><pre><code>send_from_number
</code></pre></td><td>SĐT Zalo dùng để gửi, chú ý copy đúng định dạng số dạng <mark style="color:$danger;"><strong>84</strong></mark><strong>975xxxxxxx</strong></td></tr><tr><td><pre><code>send_to_groupid
</code></pre></td><td>ID Group Zalo cần gửi tin nhắn đến</td></tr><tr><td><pre><code>message
</code></pre></td><td>Nội dung tin nhắn Text gửi đến nhóm mà bạn muốn</td></tr></tbody></table>


---

# 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-gui-tin-nhan-den-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.
