對話動作已於 2023 年 6 月 13 日淘汰。詳情請參閱「
對話動作已淘汰」。
總覽 (Dialogflow)
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
您可以透過 Actions on Google,使用動作擴充 Google 助理的功能。使用者可以透過動作,透過對話式介面完成各種工作,例如快速下達指令來開燈,或是進行較長的對話,像是玩問答遊戲。
Dialogflow 是一種對話平台,可讓您包裝 Actions SDK 的功能,並提供易於使用的 IDE、自然語言理解 (NLU) 和機器學習等額外功能,進而設計及建構動作。
如要擴充 Google 助理功能,請按照下列步驟建構動作。
設計對話
開發前,請先設計對話或動作的使用者介面。對話會說明使用者如何叫用動作、可對動作說的有效內容,以及動作如何回應使用者。
瞭解詳情
建立 Actions on Google 開發人員專案和 Dialogflow 代理程式
前往 Actions 控制台,然後建立開發人員專案。
您可以在專案中定義動作的中繼資料,並透過核准程序管理及追蹤動作。建立專案後,您就可以建立 Dialogflow 代理程式,定義所有動作。
瞭解詳情
定義動作
您可以在 Dialogflow 代理程式中定義動作,並使用意圖定義動作功能的進入點。舉例來說,假設您想建構可購買商品、查看訂單狀態及顯示每日特惠的動作。您可以定義透過說出下列內容觸發的意圖:
- 「Ok Google,跟『我最愛的鞋店』對話,購買一些鞋子」
- 「Ok Google,與『My Favorite Shoe Store』對話,查詢我的訂單」
- 「Ok Google,請『我的愛鞋商店』顯示今天的特惠商品」
瞭解詳情
建構及部署執行要求
當系統叫用 Action 中的 Action 時,會呼叫執行要求,與使用者展開對話,以完成該 Action。
如要建立對話,請在 Dialogflow 中定義意圖,建立對話的文法,也就是使用者實際可對動作說出的內容。當使用者說出觸發意圖的內容時,系統會呼叫執行要求,並將回應傳回給使用者。
這類要求和回覆會不斷來回傳送,直到服務人員取得足夠資訊來完成工作為止。
瞭解詳情
提交動作以供核准,並開放使用者使用

瞭解詳情
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-24 (世界標準時間)。
[null,null,["上次更新時間:2025-07-24 (世界標準時間)。"],[[["\u003cp\u003eActions on Google lets you build Actions to extend Google Assistant functionality, enabling users to interact through voice commands for tasks or conversations.\u003c/p\u003e\n"],["\u003cp\u003eDialogflow simplifies Action development by providing tools like an IDE, NLU, and machine learning, wrapping the Actions SDK functionality.\u003c/p\u003e\n"],["\u003cp\u003eBuilding an Action involves designing the conversation flow, creating a developer project and Dialogflow agent, defining Actions with intents, and building and deploying fulfillment logic.\u003c/p\u003e\n"],["\u003cp\u003eBefore submitting your Action for approval, it's essential to thoroughly design the user interaction and define how users invoke and interact with your Action.\u003c/p\u003e\n"],["\u003cp\u003eActions are invoked through specific phrases or commands, triggering intents within your Dialogflow agent, which then execute fulfillment logic to handle the user request.\u003c/p\u003e\n"]]],["Actions on Google enhance Google Assistant's capabilities through conversational interfaces. Developers use Dialogflow to build these Actions. The process involves designing the conversation flow and creating a developer project and Dialogflow agent. Define Actions using intents within the Dialogflow agent, which are triggered by user phrases. When triggered, intents call on fulfillment to complete the requested task, creating an interactive conversation until the task is done. Finally, the action is submitted for approval.\n"],null,["# Overview (Dialogflow)\n\nActions on Google lets you extend the functionality of Google Assistant with\n***Actions***. Actions let users get things done through a conversational\ninterface that can range from a quick command to turn on some lights or a\nlonger conversation, such as playing a trivia game.\n\nDialogflow is a conversational platform that lets you design and build\nActions by wrapping the functionality of the [Actions SDK](/assistant/df-asdk/actions-sdk)\nand providing additional features such as an easy-to-use IDE, natural language\nunderstanding (NLU), machine learning, and more.\n\nTo extend Google Assistant, you build an Action with the following steps.\n\nDesign your Conversation\n------------------------\n\nBefore developing, you should design your conversation, or the user interface\nfor your Action. The conversation describes how users invoke your Action, the\nvalid things that they can say to your Action, and how your Action responds to\nthem.\n\n[Learn more](/assistant/df-asdk/design)\n\nCreate an Actions on Google developer project and Dialogflow Agent\n------------------------------------------------------------------\n\nGo to the [Actions console](https://console.actions.google.com/) and create a developer project.\nThe project lets you define metadata about your Action and manage and track\nyour Action through the approval process. Once you have a project, you can\ncreate a Dialogflow agent that defines all your Actions.\n\n[Learn more](/assistant/df-asdk/dialogflow/project-agent)\n\nDefine Actions\n--------------\n\nYou define Actions in your Dialogflow agent with intents that define entry\npoints into your Action's functionality. For example, say you wanted to build an\nAction that could purchase some goods, check the status of orders, and to show\nsome daily deals. You can define intents that are triggered by saying:\n\n- *\"Ok Google, talk to My Favorite Shoe Store to purchase some shoes\"*\n- *\"Ok Google, talk to My Favorite Shoe Store to check on my order\"*\n- *\"Ok Google, talk to My Favorite Shoe Store to show me today's deals\"*\n\n[Learn more](/assistant/df-asdk/dialogflow/define-actions)\n\nBuild and deploy fulfillment\n----------------------------\n\nWhen an Action in your Action is invoked, it calls fulfillment to start a\nconversation with users to fulfill the Action.\n\nTo create your conversation, you define intents in Dialogflow to create your\nconversation's grammar, or the things users can actually say to your Action.\nWhen users actually say something to trigger an intent, your fulfillment is\ncalled and returns a response back to the user.\n\nThis back and forth request and response happens repeatedly until your\nfulfillment has enough information to complete the task.\n\n[Learn more](/assistant/df-asdk/dialogflow/fulfillment)\n\nSubmit your Action for approval and make it available to users\n--------------------------------------------------------------\n\n[Learn more](/assistant/df-asdk/submit-project)"]]