Omówienie kompilacji
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Aby tworzyć działania konwersacyjne, musisz utworzyć i wdrożyć te komponenty:
- Projekt działań – logiczny kontener wszystkich działań konwersacyjnych, usług internetowych i aplikacji internetowych. Określa też ustawienia i zasoby projektu, które opisują sposób wdrażania projektu w Actions on Google.
- Model wywołania – określa, w jaki sposób użytkownicy mogą odkrywać i uruchamiać działania w projekcie. Model wywołania tworzysz za pomocą intencji i typów.
- Model konwersacji – określa, co użytkownicy mogą powiedzieć Twoim działaniom i jak działania odpowiadają użytkownikom. Model konwersacyjny tworzysz za pomocą intencji, typów, scen i promptów.
- Webhooki – działania mogą wywoływać webhooki, aby przekazywać dodatkową logikę do usług realizacji, np. generowanie promptów, sprawdzanie poprawności danych itp.
- Interactive Canvas – zamiast wysyłać proste odpowiedzi tekstowe lub karty multimedialne i obrazy możesz dostarczać interaktywną aplikację internetową na pełnym ekranie opartą na HTML, CSS i JavaScript.
W sekcjach poniżej znajdziesz opis narzędzi, których będziesz używać do tworzenia działań.
Działania
Interfejs Actions API to zestaw narzędzi dla programistów do tworzenia działań dla Asystenta Google. Obejmuje on te funkcje:
Otwarta reprezentacja projektu w Actions oparta na plikach – twórz modele wywoływania i rozmowy za pomocą intencji, typów, scen i promptów. Możesz edytować projekty działań w ulubionym edytorze tekstu, sprawdzać je w systemie kontroli wersji, tworzyć zautomatyzowane procesy i wykonywać inne czynności.
Interfejs wiersza poleceń – narzędzie gactions
udostępnia interfejs wiersza poleceń do uruchamiania i automatyzowania tworzenia działań. Umożliwia inicjowanie standardowych plików projektu Action, przesyłanie aktualizacji do Konsoli Actions, wdrażanie projektów Action i nie tylko. Narzędzie umożliwia wykonywanie wielu typowych procesów, takich jak importowanie istniejących projektów czy rozpoczynanie pracy nad gałęzią funkcji przy użyciu ulubionego systemu kontroli wersji.
Interfejs Actions API – ten sam interfejs API, którego używa narzędzie gactions
. Interfejs Actions API udostępnia listę punktów końcowych REST do zarządzania działaniami, w tym do testowania i tworzenia. Interfejs API umożliwia wykonywanie wielu typowych procesów za pomocą żądań JSON. Podczas korzystania z interfejsu Actions API musisz pamiętać o pewnych limitach i sprawdzonych metodach.
Webhooki i biblioteka realizacji Node.js – Twoje działania mogą delegować logikę biznesową do usług internetowych za pomocą webhooków i formatu wiadomości opartego na JSON. Udostępniamy bibliotekę realizacji Node.js, która zapewnia idiomatyczne interfejsy dla elementu webhook rozmowy. Ta biblioteka ułatwia wdrażanie wielu typowych ścieżek użytkownika. Niektóre funkcje obejmują na przykład wyodrębnianie parametrów z zapytania użytkownika i generowanie dla Asystenta Google interakcji multimodalnej (tylko głosowej oraz głosowej i wizualnej).
Kreator działań
Kreator działań to zaawansowane i łatwe w użyciu internetowe środowisko IDE zintegrowane z konsolą Actions. Narzędzie Actions Builder jest oparte na tych samych technologiach co interfejs Actions API, więc możesz go używać samodzielnie lub w połączeniu z interfejsem Actions API w zależności od potrzeb.
Interfejs Kreatora działań jest podzielony na te obszary:
- Menu u góry umożliwia dostęp do różnych obszarów konsoli Actions, a do narzędzia Actions Builder możesz przejść na karcie Rozwijanie.
- Menu po lewej stronie umożliwia dostęp do wszystkich komponentów do tworzenia działań, takich jak intencje i sceny.
- Obszar tworzenia umożliwia tworzenie komponentu, nad którym pracujesz.
- W obszarze szczegółów możesz skonfigurować więcej informacji o komponencie, nad którym pracujesz.
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2025-07-24 UTC.
[null,null,["Ostatnia aktualizacja: 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."]]