> For the complete documentation index, see [llms.txt](https://docs.abot.vn/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.abot.vn/tich-hop/luu-du-lieu-len-google-sheet-voi-abot.md).

# Lưu dữ liệu lên google sheet với ABOT

### Bước 1: Copy file sheet từ Abot

<https://docs.google.com/spreadsheets/d/1U8PNUDZ3WABkSHgyEXCh8dn9jx-0LlNPebdyAKct8VI/edit?usp=sharing>

Sau khi copy, bạn có thể thêm bao nhiêu cột tùy thích nhưng nhớ đặt tên cột là viết liền không dấu. Ví dụ: điện thoại thì sẽ đặt là dien\_thoai.

Lý do cần copy file này vì có chứa một số script tương thích với Abot.

<img src="https://990984757-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MVU2Mo5OCn6t8Tsu5cJ%2Fuploads%2F1DwvrQ4xxtUAlJD25nuN%2Fimage.png?alt=media&amp;token=99eb7cc4-03bd-4401-a4ec-6eb8c264919b" alt="" data-size="original">

### Bước 2: Vào file bạn vừa copy xong, chọn Tiện ích mở rộng > Apps Script

![](https://990984757-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MVU2Mo5OCn6t8Tsu5cJ%2Fuploads%2FK0akAX6mS4yDePxwMnRc%2FScreenshot_8.png?alt=media\&token=8f45a34d-eb7f-4257-8cd9-ae936b226839)

Chọn hàm **setup** sau đó bấm **Chạy**

<figure><img src="https://990984757-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MVU2Mo5OCn6t8Tsu5cJ%2Fuploads%2Fg1FYXI2f1xXqCg9t3meE%2Fimage.png?alt=media&amp;token=da22b132-750f-42a4-b493-140f9c7feb7d" alt=""><figcaption></figcaption></figure>

Tại giao diện code, bấm **Triển khai -> Tùy chọn triển khai mới**.

![](https://990984757-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MVU2Mo5OCn6t8Tsu5cJ%2Fuploads%2F4D7CQWkw5rN3Ur9hpyBq%2FScreenshot_4.png?alt=media\&token=d990be54-a3ff-42c3-bc66-429e9f5f34f3)

Khi hộp thoại thông báo hiện ra thì bạn hãy bấm nút **Triển khai ->Ủy quyền truy cập**<br>

![](https://990984757-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MVU2Mo5OCn6t8Tsu5cJ%2Fuploads%2F0OaWKh84QLgtKZiCjmqZ%2FScreenshot_6.png?alt=media\&token=187d1a75-3494-4826-a4bb-5033689263d7)

![](https://990984757-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MVU2Mo5OCn6t8Tsu5cJ%2Fuploads%2FKsijYFBMMF1f40AmKc8F%2FScreenshot_5.png?alt=media\&token=3c3bc4b0-c128-4b3b-8cb7-dd40e8a30a4d)

![](https://990984757-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MVU2Mo5OCn6t8Tsu5cJ%2Fuploads%2Fsm67egi6HZPfqNH5Ajx3%2Fimage.png?alt=media\&token=c7e7f589-52b9-470d-8f4a-d06499766e9d)

![](https://990984757-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MVU2Mo5OCn6t8Tsu5cJ%2Fuploads%2FBJDiy54lJyUPEFJuD2Wy%2Fimage.png?alt=media\&token=60dec609-65e0-456f-ab3e-e0d9297bade0)

Tại đây cũng copy link để dùng cho bước tiếp theo.

![](https://990984757-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MVU2Mo5OCn6t8Tsu5cJ%2Fuploads%2FazrLhQHUEWQztSvNED2O%2FScreenshot_7.png?alt=media\&token=8f1c903d-3d5c-4eba-874f-9156ed6641c0)

### Bước 3: Vào Abot để tạo chiến dịch.

Vào chiến dịch, tạo một chiến dịch mới. Bấm "**Xây dựng chiến dịch**".

![](https://990984757-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MVU2Mo5OCn6t8Tsu5cJ%2Fuploads%2FM5Gllfjgpn6pEVD3Ibj5%2Fimage.png?alt=media\&token=b3fdf829-b0cb-416e-8ff5-dd40edf7113e)

Chọn **nguồn chiến dịch** và thêm một **hành động**.

![](https://990984757-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MVU2Mo5OCn6t8Tsu5cJ%2Fuploads%2FxeXFP2DfhmcVnrHtYjLe%2Fimage.png?alt=media\&token=6b6d8777-b6d0-498c-8f3e-c76b0ae79be1)

Chọn "**Gửi một webhook**"

![](https://990984757-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MVU2Mo5OCn6t8Tsu5cJ%2Fuploads%2F8rLRBlCfqzWa7vA73C6Y%2Fimage.png?alt=media\&token=63bc9f94-ff2e-4e36-9352-1a01dd123c0d)

Tại đây, **copy link ở Bước 2** vào URL.

Vào mục "**Phương thức**" chọn "**POST**" và thêm các giá trị dữ liệu.

![](https://990984757-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MVU2Mo5OCn6t8Tsu5cJ%2Fuploads%2FDhBp50iuNsvIdS43hOyI%2Fimage.png?alt=media\&token=0dbe6ea1-501b-4027-984d-92845a2ff195)
