התכונה 'פעולות שיחה' הוצאה משימוש ב-13 ביוני 2023.
כאן תוכלו לקרוא מידע נוסף על ההוצאה משימוש של 'פעולות שיחה'.
סקירה כללית על פיתוח
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
כדי ליצור פעולות שיחה, צריך ליצור ולפרוס את הרכיבים הבאים:
- פרויקט פעולות – המאגר הלוגי של כל הפעולות לשיחה, שירותי האינטרנט ואפליקציות האינטרנט. הוא גם מגדיר את ההגדרות והמשאבים של הפרויקט, שמתארים איך לפרוס את הפרויקט ב-Actions on Google.
- מודל ההפעלה – מגדיר איך משתמשים יכולים למצוא ולהתחיל את הפעולות בפרויקט. אתם בונים את מודל ההפעלה באמצעות כוונות וסוגים.
- מודל שיחה – מגדיר מה המשתמשים יכולים להגיד לאקשנים ואיך האקשנים מגיבים למשתמשים. אתם בונים את המודל לשיחה באמצעות כוונות, סוגים, סצנות והנחיות.
- Webhooks – פעולות יכולות להפעיל webhooks כדי להעביר לוגיקה נוספת לשירותי הביצוע שלכם, כמו יצירת הנחיות, אימות נתונים ועוד.
- Interactive Canvas – במקום לשלוח תשובות פשוטות בטקסט או כרטיסים ותמונות עשירים, אתם יכולים לספק אפליקציית אינטרנט אינטראקטיבית במסך מלא שמבוססת על HTML, CSS ו-JavaScript.
בקטעים הבאים מתוארים הכלים שבהם תשתמשו כדי ליצור פעולות.
פעולות
Actions API הוא קבוצה של כלים למפתחים ליצירת פעולות ל-Google Assistant. הוא כולל את התכונות הבאות:
ייצוג פתוח של פרויקט Actions שמבוסס על קבצים – אפשר ליצור מודלים של הפעלה ושיחה באמצעות כוונות, סוגים, סצנות והנחיות. אתם יכולים לערוך את פרויקטי הפעולות שלכם באמצעות עורך הטקסט המועדף, להכניס אותם לבקרת מקור, ליצור תהליכים אוטומטיים ועוד.
ממשק שורת פקודה (CLI) – הכלי gactions
מספק CLI לאתחול ולאוטומציה של פיתוח הפעולות. הוא מאפשר לאתחל קבצים של פרויקטים רגילים של פעולות, לשלוח עדכונים למסוף הפעולות, לפרוס פרויקטים של פעולות ועוד. הכלי מאפשר לבצע הרבה תהליכי עבודה נפוצים, כמו ייבוא של פרויקטים קיימים או התחלת עבודה על ענף תכונות באמצעות מערכת בקרת המקורות המועדפת עליכם.
Actions API – זהו אותו API שבו נעשה שימוש בכלי gactions
. Actions API מספק רשימה של נקודות קצה של REST לניהול הפעולות, כולל לבדיקה ולבנייה. ה-API מאפשר לכם להשתמש בבקשות JSON כדי לבצע הרבה תהליכי עבודה נפוצים. כשמשתמשים ב-Actions API, יש מגבלות מסוימות ושיטות מומלצות שכדאי להכיר.
Webhooks וספריית מילוי בקשות Node.js – הפעולות שלכם יכולות להעביר לשרתי האינטרנט שלכם לוגיקה עסקית באמצעות webhooks ופורמט הודעות מבוסס-JSON. אנחנו מספקים ספריית Node.js לביצוע פעולות, שכוללת ממשקי תכנות אידיומטיים לConversation Webhook. הספרייה הזו מאפשרת להטמיע בקלות הרבה תהליכי משתמש נפוצים. לדוגמה, חלק מהתכונות כוללות חילוץ פרמטרים משאילתת משתמש ויצירת חוויה מולטימודלית (קול בלבד וקול עם תמונות) עבור Google Assistant.
Actions Builder
Actions Builder הוא סביבת פיתוח משולבת (IDE) עוצמתית ונוחה לשימוש שמבוססת על אינטרנט ומשולבת במסוף Actions. Actions Builder מבוסס על אותן טכנולוגיות כמו Actions API, ולכן אפשר להשתמש בו לבד או ביחד עם Actions API, בהתאם לצרכים שלכם.
ממשק המשתמש של Actions Builder מחולק לאזורים הבאים:
- התפריט העליון מאפשר גישה לאזורים השונים ב-Actions console, ואפשר לגשת ל-Actions Builder בכרטיסייה Develop (פיתוח).
- בתפריט הימני אפשר לגשת לכל הרכיבים שנדרשים ליצירת פעולות, כמו כוונות וסצנות.
- באזור הבנייה אפשר לבנות את הרכיב שעליו עובדים.
- באזור הפרטים אפשר להגדיר פרטים נוספים על הרכיב שעליו עובדים.
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-07-24 (שעון UTC).
[null,null,["עדכון אחרון: 2025-07-24 (שעון UTC)."],[[["\u003cp\u003eConversational Actions are built using an Actions project, an invocation model, a conversation model, webhooks, and optionally Interactive Canvas.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can utilize the Actions API, which includes an open file-based project representation, a command-line interface, a REST API, and webhook support with a Node.js library.\u003c/p\u003e\n"],["\u003cp\u003eActions Builder provides a web-based IDE within the Actions console, offering a user-friendly interface for building and managing conversational actions, integrated with the Actions API.\u003c/p\u003e\n"]]],[],null,["# Build overview\n\nTo build Conversational Actions, you create and deploy the following components:\n\n- **[Actions project](/assistant/conversational/build/projects)** - The logical container for all of your Conversational Actions, web services, and web apps. It also defines project settings and resources that describe how to deploy your project to Actions on Google.\n- **[Invocation model](/assistant/conversational/build/invocation)** - Defines how users discover and start the Actions inside your project. You build your invocation model with [intents](../intents) and [types](../types).\n- **[Conversation model](/assistant/conversational/build/conversation)** - Defines what users can say to your Actions and how your Actions respond to users. You build your conversational model with [intents](../intents), [types](../types), [scenes](../scenes), and [prompts](../prompts).\n- **[Webhooks](../webhooks)** - Actions can trigger webhooks to delegate additional logic to your fulfillment services, like generating prompts, validating data, and more.\n- **[Interactive Canvas](/assistant/interactivecanvas)** - Instead of sending simple text responses or rich cards and images, you can deliver a full-screen, interactive web app powered by HTML, CSS, and JavaScript.\n\nThe following sections describe the tools that you'll use to build Actions.\n\n### Actions\n\nThe Actions API is a set of developer tools for building Actions for the\nGoogle Assistant. It consists of the following features:\n\n- **An open, file-based representation of an Actions project** - Build your\n invocation and conversation models with\n [intents](/assistant/conversational/intents),\n [types](/assistant/conversational/types),\n [scenes](/assistant/conversational/scenes), and\n [prompts](/assistant/conversational/prompts). You can edit your Actions\n projects with your favorite text editor, check them into source control, build\n automated processes, and more.\n\n- **A command-line interface (CLI)** - The\n [`gactions` tool](/assistant/actionssdk/gactions) provides a CLI to bootstrap and\n automate development of your Actions. It lets you initialize standard Action\n project files, push updates to the Actions console, deploy Action projects,\n and more. The tool lets you perform many common workflows, such as importing\n existing projects or starting work on a feature branch using your favorite\n source control system.\n\n- **The Actions API** - The Actions API is the same API used by\n the `gactions` tool. The Actions API provides a list of REST endpoints to\n manage your Actions, including for testing and building. The API lets you use\n JSON requests to perform many common workflows. When\n [using the Actions API](/assistant/actions/api) there are\n certain limits and best practices that you should consider.\n\n- **Webhooks and a Node.js fulfillment library** - Your Actions can delegate\n business logic to your web services with webhooks and a JSON based messaging\n format. We provide a Node.js fulfillment library that provides idiomatic interfaces for the\n [Conversation Webhook](/assistant/conversational/webhooks). This library makes it\n easy to implement many common user flows. For example, some features include\n extracting parameters from a user query and generating a multimodal experience\n (voice only and voice and visuals) for Google Assistant.\n\n### Actions Builder\n\nActions Builder gives you a powerful and easy-to-use, web-based IDE that's\nintegrated into the Actions console. Since Actions Builder is built on the\nsame technologies as the Actions API, you can use it on its own or together with\nthe Actions API depending on your needs. \n\nThe Actions Builder UI is split into the following areas:\n\n1. The top menu provides access to the different areas of the Actions console, and you can access Actions Builder on the **Develop** tab.\n2. The left menu lets you access all the components to build Actions, like intents and scenes.\n3. The build area lets you build the component you're working on.\n4. The details area lets you configure more details about the component you're working on."]]