खास जानकारी
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
बातचीत की सुविधा वाली कार्रवाइयां बनाने के लिए, आपको इन कॉम्पोनेंट को बनाना और डिप्लॉय करना होगा:
- Actions प्रोजेक्ट - यह आपके सभी
Conversational Actions, वेब सेवाओं, और वेब ऐप्लिकेशन के लिए लॉजिकल कंटेनर होता है. इसमें प्रोजेक्ट की सेटिंग और संसाधनों के बारे में भी बताया गया है. इनसे यह पता चलता है कि Actions on Google पर अपने प्रोजेक्ट को कैसे डिप्लॉय किया जाए.
- इनवोकेशन मॉडल - इससे यह तय होता है कि उपयोगकर्ता आपके प्रोजेक्ट में मौजूद कार्रवाइयों को कैसे ढूंढते हैं और उन्हें कैसे शुरू करते हैं. इंटेंट और टाइप की मदद से, इनवोकेशन मॉडल बनाया जाता है.
- बातचीत का मॉडल - इससे यह तय होता है कि उपयोगकर्ता, आपकी कार्रवाइयों से क्या कह सकते हैं और आपकी कार्रवाइयां, उपयोगकर्ताओं को कैसे जवाब देंगी. इंटेंट, टाइप, सीन, और प्रॉम्प्ट की मदद से, बातचीत वाला मॉडल बनाया जाता है.
- वेबहुक - कार्रवाइयां, वेबहुक को ट्रिगर कर सकती हैं, ताकि फ़ुलफ़िलमेंट सेवाओं को अतिरिक्त लॉजिक सौंपा जा सके. जैसे, प्रॉम्प्ट जनरेट करना, डेटा की पुष्टि करना वगैरह.
- इंटरैक्टिव कैनवस - सामान्य टेक्स्ट वाले जवाब या रिच कार्ड और इमेज भेजने के बजाय, एचटीएमएल, सीएसएस, और JavaScript की मदद से तैयार किया गया फ़ुल-स्क्रीन वाला इंटरैक्टिव वेब ऐप्लिकेशन डिलीवर किया जा सकता है.
यहां दिए गए सेक्शन में, कार्रवाइयां बनाने के लिए इस्तेमाल किए जाने वाले टूल के बारे में बताया गया है.
कार्रवाइयां
Actions API, डेवलपर टूल का एक सेट है. इसका इस्तेमाल, Google Assistant के लिए कार्रवाइयाँ बनाने के लिए किया जाता है. इसमें ये सुविधाएं शामिल हैं:
Actions प्रोजेक्ट का फ़ाइल पर आधारित ओपन सोर्स वर्शन - इंटेंट, टाइप, सीन, और प्रॉम्प्ट की मदद से, इनवॉकेशन और बातचीत के मॉडल बनाएं. अपने पसंदीदा टेक्स्ट एडिटर की मदद से, Actions प्रोजेक्ट में बदलाव किया जा सकता है. साथ ही, उन्हें सोर्स कंट्रोल में शामिल किया जा सकता है, ऑटोमेटेड प्रोसेस बनाई जा सकती हैं, और भी बहुत कुछ किया जा सकता है.
कमांड-लाइन इंटरफ़ेस (सीएलआई) - gactions
टूल, बूटस्ट्रैप करने और अपने ऐक्शन के डेवलपमेंट को अपने-आप पूरा करने के लिए सीएलआई उपलब्ध कराता है. इसकी मदद से, स्टैंडर्ड ऐक्शन प्रोजेक्ट फ़ाइलें शुरू की जा सकती हैं. साथ ही, Actions console में अपडेट पुश किए जा सकते हैं, ऐक्शन प्रोजेक्ट डिप्लॉय किए जा सकते हैं, और भी बहुत कुछ किया जा सकता है. इस टूल की मदद से, कई सामान्य वर्कफ़्लो पूरे किए जा सकते हैं. जैसे, मौजूदा प्रोजेक्ट इंपोर्ट करना या अपने पसंदीदा सोर्स कंट्रोल सिस्टम का इस्तेमाल करके, किसी फ़ीचर ब्रांच पर काम शुरू करना.
Actions API - Actions API वही एपीआई है जिसका इस्तेमाल gactions
टूल करता है. Actions API, REST एंडपॉइंट की एक सूची उपलब्ध कराता है. इसकी मदद से, अपनी कार्रवाइयों को मैनेज किया जा सकता है. इनमें कार्रवाइयों को टेस्ट करना और उन्हें बनाना भी शामिल है. इस एपीआई की मदद से, कई सामान्य वर्कफ़्लो पूरे करने के लिए JSON अनुरोधों का इस्तेमाल किया जा सकता है. Actions API का इस्तेमाल करते समय, आपको कुछ सीमाओं और सबसे सही तरीकों का ध्यान रखना चाहिए.
वेबहुक और Node.js फ़ुलफ़िलमेंट लाइब्रेरी - आपके ऐक्शन, वेबहुक और JSON पर आधारित मैसेज फ़ॉर्मैट की मदद से, कारोबार के लॉजिक को आपकी वेब सेवाओं को सौंप सकते हैं. हम Node.js की फ़ुलफ़िलमेंट लाइब्रेरी उपलब्ध कराते हैं. यह Conversation Webhook के लिए, सामान्य इंटरफ़ेस उपलब्ध कराती है. इस लाइब्रेरी की मदद से, उपयोगकर्ता के कई सामान्य फ़्लो को आसानी से लागू किया जा सकता है. उदाहरण के लिए, कुछ सुविधाओं में ये शामिल हैं: किसी उपयोगकर्ता की क्वेरी से पैरामीटर निकालना और Google Assistant के लिए मल्टीमॉडल अनुभव जनरेट करना (सिर्फ़ आवाज़ और आवाज़ और विज़ुअल).
Actions Builder
Actions Builder, आपको वेब पर आधारित एक ऐसा आईडीई देता है जो इस्तेमाल करने में आसान और असरदार है. यह Actions console में इंटिग्रेट होता है. Actions Builder को Actions API की टेक्नोलॉजी पर ही बनाया गया है. इसलिए, इसे अपनी ज़रूरतों के हिसाब से, अकेले या Actions API के साथ इस्तेमाल किया जा सकता है.
Actions Builder के यूज़र इंटरफ़ेस (यूआई) को इन हिस्सों में बांटा गया है:
- सबसे ऊपर मौजूद मेन्यू से, Actions console के अलग-अलग सेक्शन को ऐक्सेस किया जा सकता है. साथ ही, डेवलप करें टैब पर जाकर, Actions Builder को ऐक्सेस किया जा सकता है.
- बाईं ओर मौजूद मेन्यू से, कार्रवाइयां बनाने के लिए सभी कॉम्पोनेंट ऐक्सेस किए जा सकते हैं. जैसे, इंटेंट और सीन.
- बिल्ड एरिया की मदद से, उस कॉम्पोनेंट को बनाया जा सकता है जिस पर काम किया जा रहा है.
- 'जानकारी' सेक्शन में जाकर, उस कॉम्पोनेंट के बारे में ज़्यादा जानकारी कॉन्फ़िगर की जा सकती है जिस पर काम किया जा रहा है.
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 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."]]