對話動作已於 2023 年 6 月 13 日淘汰。詳情請參閱「
對話動作已淘汰」。
設定 (Dialogflow)
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
本頁面將說明如何建立動作專案和設定 Dialogflow 代理程式。
設定 Firebase
您可以透過一項工具 (Firebase CLI) 為互動式 Canvas 動作託管 Webhook 邏輯和網頁應用程式。建立 Actions 專案和 Dialogflow 代理程式之前,請按照開始使用 Firebase 託管中的操作說明安裝及設定 Firebase。
建立專案
- 前往動作控制台。
- 按一下 [新專案]。
- 輸入專案名稱,然後按一下「建立專案」。
- 按一下「遊戲與樂趣」資訊卡。
按一下「對話」資訊卡。

按一下頂端選單中的「Deploy」(部署)。然後按一下「目錄資訊」。
在頁面底部查看「互動畫布」底下的選項。

按一下頂端選單中的「總覽」。
依序點選「Build your Action」和「Add Action(s)」。

按一下「新增第一個動作」。
在「內建意圖」下方,選取「Play game」,然後按一下「開始使用 Dialogflow」。

在代理程式建立頁面中,確認代理程式的預設語言、時區和名稱,然後按一下 [CREATE] (建立)。

在「Intents」(意圖) 頁面中,按一下「DefaultWelcome Intent」(預設歡迎意圖)。

按一下頁面底部的「執行要求」,展開該部分。
按一下「啟用這個意圖的 Webhook 呼叫」。

點選「儲存」。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-26 (世界標準時間)。
[null,null,["上次更新時間:2025-07-26 (世界標準時間)。"],[[["\u003cp\u003eThis guide details setting up an Actions project and configuring its corresponding Dialogflow agent for Interactive Canvas integration.\u003c/p\u003e\n"],["\u003cp\u003eFirebase CLI is recommended for hosting both the webhook logic and web app for your Action, requiring prior setup following Firebase's guidelines.\u003c/p\u003e\n"],["\u003cp\u003eProject creation involves steps within the Actions console, guiding you through selecting project type and enabling Interactive Canvas features.\u003c/p\u003e\n"],["\u003cp\u003eDialogflow agent configuration focuses on enabling webhook calls for the Default Welcome Intent to facilitate communication with your Action's backend.\u003c/p\u003e\n"],["\u003cp\u003eUsers should familiarize themselves with Firebase hosting setup and the Actions console workflow to successfully create and configure their projects.\u003c/p\u003e\n"]]],[],null,["# Setup (Dialogflow)\n\nThis page goes over creating your Actions project and configuring a Dialogflow\nagent.\n\nSet up Firebase\n---------------\n\nYou can host both your webhook logic and web app for your Interactive Canvas\nAction with one tool: the Firebase CLI. Before creating your Actions project\nand Dialogflow agent, follow the instructions on [Get started with Firebase\nhosting](https://firebase.google.com/docs/hosting/quickstart)\nto install and set up Firebase.\n\nCreate a project\n----------------\n\n1. Go to the [Actions console](//console.actions.google.com).\n2. Click **New project**.\n3. Enter a name for your project and click **Create project**.\n4. Click the **Games \\& fun** card.\n5. Click the **Conversational** card.\n\n6. Click **Deploy** in the top menu. Then, click **Directory information**.\n\n7. At the bottom of the page, check the option under **Interactive Canvas**.\n\n8. Click **Overview** in the top menu.\n\n9. Click **Build your Action** then **Add Action(s)**.\n\n10. Click **Add your first action**.\n\n11. Under **Built-in intents** , select **Play game** and click\n **Get started in Dialogflow**.\n\nConfigure the Dialogflow agent\n------------------------------\n\n1. On the agent creation page, confirm the default language, time zone, and\n name for the agent and click **CREATE**.\n\n2. On the **Intents** page, click on **Default Welcome Intent**.\n\n3. At the bottom of the page, click **Fulfillment** to expand the section.\n\n4. Click **Enable webhook call for this intent**.\n\n5. Click **SAVE**."]]