ภาพรวม (Dialogflow)
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
Actions on Google ช่วยให้คุณขยายฟังก์ชันการทำงานของ Google Assistant ด้วยActions Actions ช่วยให้ผู้ใช้ทำสิ่งต่างๆ ผ่านอินเทอร์เฟซแบบสนทนา
ซึ่งอาจเป็นคำสั่งสั้นๆ เพื่อเปิดไฟหรือการสนทนาที่ยาวขึ้น
เช่น การเล่นเกมตอบคำถาม
Dialogflow เป็นแพลตฟอร์มการสนทนาที่ช่วยให้คุณออกแบบและสร้าง Actions ได้โดยการรวมฟังก์ชันการทำงานของ Actions SDK
และมอบฟีเจอร์เพิ่มเติม เช่น IDE ที่ใช้งานง่าย, ความเข้าใจภาษาธรรมชาติ (NLU), แมชชีนเลิร์นนิง และอื่นๆ
หากต้องการขยาย Google Assistant คุณต้องสร้าง Action โดยทำตามขั้นตอนต่อไปนี้
ออกแบบการสนทนา
ก่อนที่จะพัฒนา คุณควรออกแบบการสนทนาหรืออินเทอร์เฟซผู้ใช้
สำหรับ Action การสนทนาจะอธิบายวิธีที่ผู้ใช้เรียกใช้การดำเนินการของคุณ สิ่งที่ผู้ใช้พูดกับการดำเนินการของคุณได้ และวิธีที่การดำเนินการของคุณตอบกลับผู้ใช้
ดูข้อมูลเพิ่มเติม
สร้างโปรเจ็กต์สำหรับนักพัฒนา Actions on Google และเอเจนต์ Dialogflow
ไปที่คอนโซล Actions แล้วสร้างโปรเจ็กต์นักพัฒนาแอป
โปรเจ็กต์นี้ช่วยให้คุณกำหนดข้อมูลเมตาเกี่ยวกับการดำเนินการ รวมถึงจัดการและติดตาม
การดำเนินการผ่านกระบวนการอนุมัติได้ เมื่อมีโปรเจ็กต์แล้ว คุณจะ
สร้างเอเจนต์ Dialogflow ที่กำหนดการดำเนินการทั้งหมดได้
ดูข้อมูลเพิ่มเติม
กำหนดการดำเนินการ
คุณกำหนดการดำเนินการใน Agent ของ Dialogflow ด้วยความตั้งใจที่กำหนดจุดแรกเข้า
สู่ฟังก์ชันการทำงานของการดำเนินการ ตัวอย่างเช่น สมมติว่าคุณต้องการสร้าง
Action ที่ซื้อสินค้า ตรวจสอบสถานะคำสั่งซื้อ และแสดง
ดีลประจำวัน คุณกำหนดเจตนาที่ทริกเกอร์ได้โดยพูดว่า
- "Ok Google คุยกับร้านรองเท้าโปรดเพื่อซื้อรองเท้าหน่อย"
- "Ok Google คุยกับร้านรองเท้าโปรดเพื่อตรวจสอบคำสั่งซื้อของฉัน"
- "Ok Google คุยกับร้านรองเท้าโปรดเพื่อแสดงดีลของวันนี้ให้ฉันหน่อย"
ดูข้อมูลเพิ่มเติม
สร้างและติดตั้งใช้งานการดำเนินการตามคำสั่งซื้อ
เมื่อมีการเรียกใช้การดำเนินการในการดำเนินการของคุณ ระบบจะเรียกใช้ Fulfillment เพื่อเริ่ม
การสนทนากับผู้ใช้เพื่อดำเนินการให้เสร็จสมบูรณ์
หากต้องการสร้างการสนทนา คุณต้องกำหนดเจตนาใน Dialogflow เพื่อสร้างไวยากรณ์ของการสนทนา หรือสิ่งที่ผู้ใช้พูดกับ Action ได้จริง
เมื่อผู้ใช้พูดบางอย่างเพื่อเรียกใช้ Intent ระบบจะเรียกใช้การดำเนินการตามคำขอและส่งการตอบกลับไปยังผู้ใช้
การส่งคำขอและการตอบกลับไปมานี้จะเกิดขึ้นซ้ำๆ จนกว่า
การดำเนินการจะได้รับข้อมูลเพียงพอที่จะทำงานให้เสร็จสมบูรณ์
ดูข้อมูลเพิ่มเติม
ส่งการกระทำเพื่อขอรับการอนุมัติและทำให้ผู้ใช้ใช้งานได้

ดูข้อมูลเพิ่มเติม
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-24 UTC
[null,null,["อัปเดตล่าสุด 2025-07-24 UTC"],[[["\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)"]]