# Điền Google Form

## Công dụng

Tính năng Google Form giúp người dùng lưu trữ dữ liệu khách hàng vào SpreadSheet của Google thông qua API của Bot Bán Hàng.

**Ví dụ:**

![Dữ liệu lưu tại Google Sheet sau khi được xử lý](/files/-MM5B1o1XaSOlTfF3Nap)

## Tạo SpreadSheet Google

* Truy cập [Google Drive](https://drive.google.com/drive/u/0/my-drive), tại giao diện của Google Drive tạo Biểu Mẫu mới:

![Tạo Google Biểu mẫu](/files/-MM5HtC6UZdr2c5RjY0r)

Lưu ý với những **Gmail doanh nghiệp** cần tắt cài đặt hạn chế để sử dụng.

![Tắt cài đặt Hạn chế trong Yêu cầu đăng nhập](/files/-MM5Jcg6tu8gPofbnY2o)

* Tạo biểu mẫu với các trường thông tin cần lưu trữ dưới dạng **Trả lời ngắn.**

![](/files/-MMrvaQ5I0GxyoJdbhkg)

Sau khi thêm xong các trường thông tin cần lưu trữ Click vào xem trước Biểu Mẫu để xem trước Form và lấy link có đuôi **viewform.**

![Click Xem trước để lấy link](/files/-MMrxHlBzIREriilDV1H)

![Lấy link có đuôi viewform](/files/-MMrxgJ4BzbsDs2ZeotJ)

Sau khi lấy link có đuôi viewform gắn vào đường dẫn trong hành động **Điền Google Form** trong **Kịch Bản** sau đó ấn Quét form.

![Gắn link đuôi viewform vào đường dẫn tại hành động Điền Google Form trong Kịch bản và ấn Quét Form](/files/-MMrzLRk3bi7hlQYaDcO)

* Điền giá trị vào các cột tương ứng (Giá trị ở đây chính là các trường dữ liệu đã được lưu trữ trước đó ví dụ **Thuộc tính tuỳ biến** hoặc **Trường dữ liệu** tại hành động **Hỏi đáp**).

![Điền giá trị vào các cột tương ứng](/files/-MMs-Ny_pf_VGX-WOFk3)

* Sau khi điền xong các giá trị quay trở lại Spread Sheet vừa tạo ấn vào **Câu trả lời** để tạo Sheet.

![](/files/-MMs4Idbk6AqAeh6uQBS)

![Bấm vào Icon trên để tạo Sheet](/files/-MMs4VY81bzXYZ4fRid5)


---

# 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://docs.botbanhang.vn/xay-dung-chatbot-voi-bot-ban-hang/kich-ban/dien-google-form.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.
