ב-3 במאי 2023 נוציא משימוש את Transactions API, לפני ההוצאה משימוש של Conversations Actions ב-13 ביוני 2023.
כאן תוכלו לקרוא מידע נוסף על ההוצאה משימוש של 'פעולות שיחה'.
הנחיות לעיצוב
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
תכננו שיחה שתנחה את המשתמשים בכל השלבים של הפעולה העסקית שלכם. הוספנו דוגמאות להפניות שבהן תוכלו להשתמש כמדריך
לתכנון פעולות משלכם שקשורות לעסקאות.
דוגמאות
טיפים לעיצוב
ודאו שתיבות הדו-שיח נשמעות טבעיות ומעניינות, כמו שאדם אמיתי ידבר.
הטקסט שה-TTS או הקול שלכם אומרים לא חייב להיות זהה לטקסט שמוצג בבועות הצ'אט. התכונה הזו פועלת היטב אם בועות הצ'אט הן קבוצת משנה של תיבת הדו-שיח המדוברת.
מקבלים את פני המבקרים מעניינים ומעוררים עניין. שאלו אותם מה הם צריכים והציעו כמה הצעות כדי לעזור להם להתחיל.
לפני שמזמינים את המשתמשים להוסיף פריטים לעגלת הקניות, צריך לבצע בדיקה בקצה העורפי על ידי הוספת מילוי יחידות קיבולת (Slot) ושימוש בסוג המשבצת actions.type.TransactionRequirementsCheckResult
כדי לוודא שלמשתמש הוגדרו תשלומים ל-Google Assistant.
עליכם להיות מוכנים להגיב לאותן בעיות בקול כמו בחוויות אחרות בנייד או באינטרנט. לדוגמה, אפשר להציע פריט דומה כשפג התוקף של מידה או צבע מסוימים, או להזמין משתמשים להירשם כדי לקבל הודעה כשהפריט יחזור למלאי.
לתשומת ליבכם: סיכום ההזמנות מבוסס על הנתונים שאתם מעבירים דרך ה-API.
התווית 'תשלום באמצעות Google' עוזרת למשתמשים להבין ש-Google ביצעה את התשלום.
כשאתם מבקשים מידע ממשתמשים, כמו פרטי הכתובת שלהם, תצטרכו להסביר להם למה אתם שולחים את הבקשה ואיך המידע הזה יועיל להם.
Google תציג את שיטת ההרשאה לרכישה (לא נדרש אימות, סיסמה או טביעת אצבע) בהתאם להגדרות של המשתמש. בחלק מהמקרים, הערכת הסיכונים תתחיל שלב אימות נוסף, כמו אישור CVV של הכרטיס.
אחרי שהתשלום בוצע, חשוב לשלוח קבלה ואישור הזמנה. חשוב שהמשתמשים יבינו שאתם הגוף האחראי על עיבוד התשלום, ויישלחו לכם את כל הפרטים לגבי ההזמנה, ולא של Google.
כברירת מחדל, אפשר לבצע טרנזקציות על משטח עם מסך (כמו טלפון Android) או על פלטפורמה קולית בלבד (כמו Google Home).
כדי לתמוך בצורה הטובה ביותר בעסקאות קוליות בלבד, חשוב לתכנן חוויית שיחה טובה שתוביל את המשתמשים לחוויית העסקה המלאה.
לתשומת ליבכם: ייתכן שאובייקטים מסוימים של Intent עסקאות דורשים מסך. רוב הפרטים האלה (כמו הוספת כתובת חדשה למשלוח, פתרון בעיות בתשלום, קישור חשבונות) יועברו לטלפון באופן אוטומטי. אם אתם רוצים להציג בצורה הטובה ביותר את התוספות לשיחה (למשל, הצגת תשובות עשירות לגבי כרטיסים, הצגת התנאים וההגבלות או מדיניות הפרטיות של המוֹכר), צריך לבדוק אם הפלטפורמה הנוכחית תומכת בcapabilities של RICH_RESPONSE
או WEB_LINK
, ולהעביר אותה לפלטפורמה חדשה אם לא.
אם אתם מעדיפים שלא לתמוך בטרנזקציות קוליות בלבד ב-Action, תוכלו להגדיר שהפרויקט ב-Actions ידרוש מסך. לשם כך, עוברים לקטע Deploy > Surface options (פריסה > יכולות פני שטח) בקונסולה ל-Actions, ובוחרים באפשרות Yes (כן) לביצוע הפעולות הנדרשות פלט מסך.
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 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**."]]