หลักเกณฑ์การออกแบบ
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
ออกแบบการสนทนาเพื่อแนะนำผู้ใช้ผ่านขั้นตอนการดำเนินการ เราได้ให้ตัวอย่างอ้างอิงที่คุณสามารถใช้เป็นแนวทางในการออกแบบการดำเนินการด้านธุรกรรมของคุณเอง
ตัวอย่าง
เคล็ดลับการออกแบบ
ตรวจสอบว่าบทสนทนา
ฟังดูเป็นธรรมชาติและพูดคุย
ในแบบที่คนจริงๆ พูด
ข้อความที่พูดโดย TTS/เสียงไม่จำเป็นต้องตรงกับข้อความที่แสดงในบับเบิลแชททุกประการ โดยจะทำงานได้ดีหากบับเบิลแชทเป็นส่วนหนึ่งของกล่องโต้ตอบที่พูด
ทักทายผู้เข้าชมของคุณและทำให้ผู้เข้าชมมีส่วนร่วม ถามสิ่งที่ลูกค้าต้องการและเสนอ
ชิปคำแนะนำอีก 2-3 รายการเพื่อเริ่มต้น
ก่อนเชิญผู้ใช้ให้เพิ่มสินค้าลงในรถเข็น ให้ตรวจสอบแบ็กเอนด์โดยเพิ่มข้อมูลในช่องและใช้ประเภทช่อง actions.type.TransactionRequirementsCheckResult
เพื่อยืนยันว่าผู้ใช้ตั้งค่าการชำระเงินสำหรับ Google Assistant แล้ว
ให้เตรียมพร้อมที่จะตอบสนองต่อปัญหาโดยใช้เสียงแบบเดียวกับประสบการณ์ใช้งานอื่นๆ ในอุปกรณ์เคลื่อนที่หรือเว็บ เช่น เสนอสินค้าที่คล้ายกันเมื่อสินค้าหมดบางขนาดหรือบางสี หรือเชิญผู้ใช้ให้ลงชื่อสมัครใช้เพื่อรับการแจ้งเตือนเมื่อสินค้านั้นกลับมาพร้อมจำหน่ายอีกครั้ง
โปรดทราบว่าข้อมูลสรุปคำสั่งซื้อสร้างขึ้นด้วยข้อมูลที่คุณส่งผ่าน API
ป้ายกำกับ "ชำระเงินด้วย Google" จะช่วยให้ผู้ใช้ทราบว่า Google ช่วยอำนวยความสะดวกในการชำระเงิน
เมื่อคุณขอข้อมูลจากผู้ใช้ เช่น ข้อมูลที่อยู่ คุณต้องแจ้งให้ผู้ใช้ทราบเกี่ยวกับเหตุผลที่คุณส่งคำขอและประโยชน์ที่ผู้ใช้จะได้รับ
Google จะแสดงวิธีการให้สิทธิ์การซื้อ (ไม่จำเป็นต้องตรวจสอบสิทธิ์ ใช้รหัสผ่าน หรือลายนิ้วมือ) โดยอิงตามการตั้งค่าของผู้ใช้ บางครั้งการประเมินความเสี่ยงของเราจะเริ่มต้นขั้นตอนการตรวจสอบสิทธิ์เพิ่มเติม เช่น การยืนยัน CVV สำหรับบัตร
หลังจากชำระเงินเรียบร้อยแล้ว อย่าลืมส่งใบเสร็จและการยืนยันการสั่งซื้อ ผู้ใช้ต้องเข้าใจว่าคุณเป็นนิติบุคคลที่ประมวลผลการชำระเงิน และจะติดตามรายละเอียดทั้งหมดเกี่ยวกับคำสั่งซื้อ ไม่ใช่ Google
โดยค่าเริ่มต้น คุณจะทำธุรกรรมบนพื้นผิวที่มีหน้าจอ (เช่น โทรศัพท์ Android) หรือพื้นผิวแบบใช้เสียงอย่างเดียว (เช่น Google Home) ก็ได้
เพื่อให้สนับสนุนการทำธุรกรรมแบบเสียงเท่านั้นได้ดีที่สุด โปรดใช้ความระมัดระวังเป็นพิเศษในการออกแบบประสบการณ์การสนทนาที่ดีซึ่งจะแนะนำผู้ใช้ตลอดการใช้งาน
โปรดทราบว่า Intent ของธุรกรรมบางรายการอาจต้องใช้หน้าจอ ที่อยู่ส่วนใหญ่ (เช่น การเพิ่มที่อยู่สำหรับจัดส่งใหม่ การแก้ไขปัญหาการชำระเงิน การลิงก์บัญชี) จะถูกส่งไปยังโทรศัพท์โดยอัตโนมัติ หากมีส่วนเพิ่มเติมใดๆ ในการสนทนาที่แสดงบนหน้าจอได้ดีที่สุด (เช่น นำเสนอคำตอบที่สมบูรณ์สำหรับการสร้างการ์ด การแสดงข้อกำหนดในการให้บริการของผู้ขาย หรือนโยบายความเป็นส่วนตัว) คุณควรตรวจสอบว่าแพลตฟอร์มปัจจุบันรองรับcapabilities RICH_RESPONSE
หรือ WEB_LINK
หรือไม่ แล้วโอนไปยังแพลตฟอร์มใหม่หากไม่มี
หากไม่ต้องการรองรับธุรกรรมแบบเสียงเท่านั้นในการดําเนินการ คุณสามารถตั้งค่าโปรเจ็กต์การดําเนินการให้ต้องมีหน้าจอได้โดยไปที่ทำให้ใช้งานได้ > ความสามารถของ Surface ใน
คอนโซล Actions และตั้งค่า
การดำเนินการต้องใช้เอาต์พุตหน้าจอเป็น Yes
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-25 UTC
[null,null,["อัปเดตล่าสุด 2025-07-25 UTC"],[[["\u003cp\u003eDesign conversational transactional flows, similar to natural human interactions, guiding users through the process.\u003c/p\u003e\n"],["\u003cp\u003eUtilize provided examples and design tips to create effective and user-friendly transactional Actions.\u003c/p\u003e\n"],["\u003cp\u003eEnsure clear communication, address potential issues proactively, and inform users about Google's role in payment processing.\u003c/p\u003e\n"],["\u003cp\u003eOptimize for both screen and voice-only interactions by tailoring the conversation and utilizing surface capabilities effectively.\u003c/p\u003e\n"],["\u003cp\u003eCustomize the user experience by enabling or disabling screen requirements based on your Action's functionalities.\u003c/p\u003e\n"]]],[],null,["# Design guidelines\n\nDesign a conversation to guide users through your transactional\nflows. We've provided reference examples that you can use as a guide\nwhen designing your own transactional Actions.\n\nExamples\n--------\n\n[](https://docs.google.com/presentation/d/1Zw-Cg4ODJWpEViJJT_LugxvFv1VeOB7Hw54wNQemrfg) [Shoe store Example](https://docs.google.com/presentation/d/1Zw-Cg4ODJWpEViJJT_LugxvFv1VeOB7Hw54wNQemrfg) \n[](https://docs.google.com/presentation/d/1RBVzklC8n7nPU98lRt1CkzDSFcBlaQf5PWVtlr58OQQ) [Ticketing example](https://docs.google.com/presentation/d/1RBVzklC8n7nPU98lRt1CkzDSFcBlaQf5PWVtlr58OQQ) \n[](https://docs.google.com/presentation/d/1icd64B_mJvba6lmhlfmUy35sejy5n-LsYYkvPXzUXgA) [Flower Shop Example](https://docs.google.com/presentation/d/1icd64B_mJvba6lmhlfmUy35sejy5n-LsYYkvPXzUXgA)\n\nDesign tips\n-----------\n\n- Make sure the dialogs\n [sound natural and conversational](/assistant/conversational/df-asdk/design)\n --- the way a real person would talk.\n\n- The text spoken by your TTS/voice does not have to exactly match the text\n shown in your chat bubbles. It works well if the chat bubbles are a subset\n of the spoken dialog.\n\n- Greet your visitors and get them engaged. Ask what they need and offer a\n few suggestion chips to get them started.\n\n- Before inviting the user to add items to the cart, do a backend check by\n adding slot filling and using the `actions.type.TransactionRequirementsCheckResult`\n slot type to confirm the user has payments set up for their Google Assistant.\n\n- Be prepared to respond to the same issues with voice as with other mobile\n or web experiences. For example, offer a similar item when you're out of a\n certain size or color, or invite users to sign up to be notified when the\n item is back in stock.\n\n- Note that the order summary is built with the data you pass via the API.\n The \"Pay with Google\" label helps users understand that Google facilitated\n the payment.\n\n- When requesting info from your users, like their address info, first let\n them know why you are making the request and how it will benefit them.\n\n- Google will present the purchase authorization method (either no auth\n required, password, or fingerprint) based on the user's settings. Sometimes\n our risk assessment will kick off an additional auth step like confirming\n CVV for a card.\n\n- After the payment is complete, be sure to send a receipt and an order\n confirmation. It's important that users understand that you are the merchant\n of record, and will follow up with all details about the order, not Google.\n\n- By default transactions can be performed on either a surface with a\n screen (such as an Android phone) or a voice-only surface (such as a Google Home).\n\n - To best support voice-only transactions, take extra care to design\n a [good conversational experience](/assistant/conversational/df-asdk/design)\n that walks users through the full transaction experience.\n\n - Note that some transactions intents may require a screen. Most of these\n (e.g. adding a new delivery address, fixing payment issues, account linking)\n will be handed off to the phone automatically. If there are any additions\n to the conversation that are best displayed on a screen\n (e.g. presenting rich responses for card building, displaying a merchant\n ToS or privacy policy), you should check if the current surface supports\n the `RICH_RESPONSE` or `WEB_LINK`\n [capabilities](/assistant/conversational/reference/rest/v1/TopLevel/fulfill#capability),\n and transfer to a new surface if not.\n\n - If you would rather not support voice-only transactions with your\n Action, you can set your Actions project to require a screen by\n navigating to **Deploy \\\u003e Surface capabilities** in the\n [Actions console](https://console.actions.google.com) and setting\n **Do your Actions require a screen output** to **Yes**."]]