# วิธีเชื่อมต่อ

{% hint style="warning" %}
คุณต้องมีบัญชี Gmail เพื่อเข้าถึงการเชื่อมต่อนี้ ซึ่งอาจเป็นบัญชี Gmail ส่วนตัว (เช่น <acme@gmail.com>) หรือบัญชี Google Workspace ที่มีชื่อโดเมนแบบกำหนดเอง (เช่น <user@acme.com>)
{% endhint %}

1. ไปที่ **การผสานการทำงาน** พื้นที่ – ไปที่ การตั้งค่า > การเชื่อมต่อ ใน Zaapi.
2. คลิก "**เชื่อมต่อ**" – ค้นหาการ์ด Gmail ในรายการการเชื่อมต่อ แล้วคลิกปุ่ม + เชื่อมต่อ.
3. เลือกบัญชี – หน้าต่างลงชื่อเข้าใช้ Google จะปรากฏขึ้น เลือกบัญชี Google ที่คุณต้องการเชื่อมต่อกับ Zaapi.
4. อนุญาตการเข้าถึง – ตรวจสอบสิทธิ์ที่ Zaapi ขอ แล้วคลิก ดำเนินการต่อ เพื่ออนุญาตการเชื่อมต่อ.
5. กำหนดค่าการตั้งค่านำเข้า – คุณจะถูกนำกลับไปยัง Zaapi เพื่อกำหนดตัวเลือก "การนำเข้า Gmail":
   * นำเข้าประวัติอีเมลและป้ายกำกับ: เปิดสวิตช์นี้เพื่อimportประวัติย้อนหลัง 7 วันล่าสุดของคุณ
   * เลือกหมวดหมู่: ทำเครื่องหมายในช่องสำหรับโฟลเดอร์อีเมลที่ต้องการซิงก์โดยเฉพาะ (เช่น INBOX, SPAM, CATEGORY PROMOTIONS เป็นต้น).
     * หลังจากการเชื่อมต่อเริ่มต้นแล้ว อีเมลจากหมวดหมู่ที่เลือกเท่านั้นที่จะปรากฏในกล่องจดหมาย Zaapi อีเมลทั้งหมดจะยังคงมองเห็นได้ภายในบัญชี Gmail เดิม
6. เสร็จสิ้นการตั้งค่า – เมื่อคุณเลือกการตั้งค่าที่ต้องการแล้ว ให้คลิก ยืนยัน เพื่อเสร็จสิ้นการเชื่อมต่อ.


---

# 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://help.zaapi.com/th/integrations/gmail/how-to-connect.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.
