# Trộn dữ liệu khi gửi tin nhắn hàng loạt

Để có thể trộn dữ liệu khi gửi tin hàng loạt, tức là mỗi số điện thoại người nhận sẽ có nội dung tin nhắn gửi đi với nội dung khác nhau, đầu tiên bạn cần một file Excel chứa dữ liệu. Chẳng hạn như:

![](/files/8yajk9cMEq7C9pfzwm3I)

Trong file này, cột đầu tiên luôn là Mobile Number: số điện thoại nhận tin. Lưu ý: SĐT có thể được viết kèm mã quốc giá (+84) hoặc viết với số 0 ở đầu (098...).&#x20;

Các cột phiếu sau là dữ liệu dùng để trộn khi gửi tin. Tên cột lưu ý viết không dấu, không viết hoa, không dấu cách như hình.

Bây giờ, bạn vào mục Gửi tin nhắn của FreeSMS, kéo xuống dưới chọn Upload file Excel để gửi:

![](/files/OFKxWdllU9JSj6FvZBcf)

Ở mục Tin nhắn, bạn trộn dữ liệu với cú pháp như sau:

> Xin chao ban %name%, den tu %country%, hien nay %age% tuoi. Chung toi rat vui duoc lam quen voi ban.

Trong đó, %name% hay %country% là các cột trong file Excel.

Sau đó bạn nhấn gửi đi, các tin nhắn sẽ được trộn theo dữ liệu.


---

# 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://hd.freesms.vn/tron-du-lieu-khi-gui-tin-nhan-hang-loat.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.
