התכונה 'פעולות שיחה' הוצאה משימוש ב-13 ביוני 2023.
כאן תוכלו לקרוא מידע נוסף על ההוצאה משימוש של 'פעולות שיחה'.
Storage
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
כדי להתאים אישית טוב יותר את חוויית המשתמש עם הפעולה, ניתן לשמור נתונים בין פניות בשיחה או בשיחות מרובות עם אותו משתמש.
נתונים שמורים יכולים לספק תוצאות מועילות בשיחה יחידה, לאחסן תוצאות משחקים מסשנים שונים או לזכור פיסות מידע קטנות למשתמש.
ניתן לאחסן נתונים במספר דרכים במהלך שיחה. בשיחה אחת אפשר להשתמש בסוגים כדי להוסיף הערות לביטויי אימון בכוונות או כדי לאחסן מידע מהמשתמש במהלך מילוי יחידות הקיבולת (Slot).
אפשר גם לשמור את ערכי Action store באמצעות ה-webhook, בשיטות האחסון הבאות:
- אחסון ביקור
- אחסון משתמש
- אחסון בבית
כדאי להשתמש בשיטות האחסון האלה בשילוב של כמה מהן, כדי להתאים בצורה הטובה ביותר
לאופן שבו רוצים לשמור מידע בתוך או בין ההפעלות של הפעולה.
אחסון ביקור
כדאי להשתמש באחסון הפעלה כשרוצים לשמור על ערך של שיחה אחת, אבל לא משיחה אחת לאחרת. במהלך שיחות, כל הנתונים שנאספים באמצעות types נשמרים באחסון הסשן.
אחסון משתמש
כדאי להשתמש בנפח האחסון של המשתמשים כשרוצים לשמור ערך בכל השיחות למשתמש מאומת יחיד. לדוגמה, משחק יכול לשמור את התוצאה הגבוהה של משתמש באחסון
למשתמש ולהציג את התוצאה הגבוהה בהודעת הפתיחה בכל פעם שהמשתמש מתחיל שיחה חדשה.
אחסון בבית
להשתמש באחסון הבית כשרוצים לשמור על ערך מסוים בשיחות שונות במכשירים באותו בית (על סמך תרשים הבית). נפח האחסון בבית לא ספציפי למשתמש מסוים, ולכן כל משתמש בבית יכול לתרום לו. כשמשתמשים באחסון בבית, Google גם מציגה התראה פעם אחת למשתמשים מאומתים, ובכל הפעלה של משתמשים אורחים (עד פעם ב-10 דקות).
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-07-26 (שעון UTC).
[[["התוכן קל להבנה","easyToUnderstand","thumb-up"],["התוכן עזר לי לפתור בעיה","solvedMyProblem","thumb-up"],["סיבה אחרת","otherUp","thumb-up"]],[["חסרים לי מידע או פרטים","missingTheInformationINeed","thumb-down"],["התוכן מורכב מדי או עם יותר מדי שלבים","tooComplicatedTooManySteps","thumb-down"],["התוכן לא עדכני","outOfDate","thumb-down"],["בעיה בתרגום","translationIssue","thumb-down"],["בעיה בדוגמאות/בקוד","samplesCodeIssue","thumb-down"],["סיבה אחרת","otherDown","thumb-down"]],["עדכון אחרון: 2025-07-26 (שעון UTC)."],[[["\u003cp\u003eActions on Google can save data to customize user experiences, enabling features like reprompts and storing information across conversations.\u003c/p\u003e\n"],["\u003cp\u003eData can be saved within a single conversation using types or across conversations with session, user, or home storage, depending on the desired persistence.\u003c/p\u003e\n"],["\u003cp\u003eSession storage retains data for a single conversation, user storage saves data for a specific user across conversations, and home storage persists data for all users on devices in a household.\u003c/p\u003e\n"]]],["Data in user interactions can be saved within single or multiple conversations to enhance user experience. Data can be stored through types in intents or via webhook storage methods: session storage for single conversation data, user storage for data across conversations of a specific user, and home storage for data across conversations for all users in a household. These methods can be used in conjunction to manage how information persists.\n"],null,["To better customize a user's experience with your Action, you can save data\nbetween turns of a conversation or across multiple conversations with that user.\nSaved data can provide helpful reprompts in a single conversation, store game\nscores across sessions, or remember small pieces of information for a user.\n\nData can be stored in multiple ways during a conversation. In a single\nconversation, you can use [types](/assistant/conversational/types) to annotate training phrases in intents or\nto store information from the user during slot filling.\n\nYou can also have your Action store values using your webhook with the following\nstorage methods:\n\n- Session storage\n- User storage\n- Home storage\n\nUse these storage methods in combination with each other to best match how you\nwant to persist information within or between invocations of your Action.\n\nSession storage\n\nUse [session storage](/assistant/conversational/storage-session) when you want to persist a value for a single\nconversation, but not from one conversation to another. During a conversation,\nany data collected using [types](/assistant/conversational/types) is stored in session storage.\n\nUser storage\n\nUse [user storage](/assistant/conversational/storage-user) when you want to persist a value across conversations for a\nsingle verified user. For example, a game can save a user's high score in user\nstorage and present the high score in the welcome message each time the user\nstarts a new conversation.\n\nHome storage\n\nUse [home storage](/assistant/conversational/storage-home) when you want to persist a value across conversations for\ndevices in a single household (based on [Home Graph](/assistant/smarthome/concepts/homegraph)). Home storage isn't\nspecific to any particular user, so any user in the household can contribute\ntowards it. When using home storage, Google additionally presents a notification\nonce to verified users, and on each invocation by guest users (up to once per 10\nminutes)."]]