Tổng quan (Dialogflow)
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Actions on Google cho phép bạn mở rộng chức năng của Trợ lý Google bằng Hành động. Các hành động cho phép người dùng hoàn thành công việc thông qua một giao diện đàm thoại có thể là một lệnh nhanh để bật đèn hoặc một cuộc trò chuyện dài hơn, chẳng hạn như chơi một trò chơi đố vui.
Dialogflow là một nền tảng đàm thoại cho phép bạn thiết kế và tạo các Thao tác bằng cách bao bọc chức năng của Actions SDK và cung cấp các tính năng bổ sung như IDE dễ sử dụng, khả năng hiểu ngôn ngữ tự nhiên (NLU), học máy, v.v.
Để mở rộng Trợ lý Google, bạn sẽ tạo một Thao tác theo các bước sau.
Thiết kế cuộc trò chuyện
Trước khi phát triển, bạn nên thiết kế cuộc trò chuyện hoặc giao diện người dùng cho Thao tác của mình. Cuộc trò chuyện mô tả cách người dùng gọi Hành động của bạn, những điều hợp lệ mà họ có thể nói với Hành động của bạn và cách Hành động của bạn phản hồi họ.
Tìm hiểu thêm
Tạo dự án nhà phát triển Actions on Google và Agent Dialogflow
Chuyển đến Actions Console rồi tạo một dự án dành cho nhà phát triển.
Dự án này cho phép bạn xác định siêu dữ liệu về Thao tác của mình, cũng như quản lý và theo dõi Thao tác đó trong quy trình phê duyệt. Sau khi có một dự án, bạn có thể tạo một tác nhân Dialogflow để xác định tất cả các Thao tác.
Tìm hiểu thêm
Xác định hành động
Bạn xác định Hành động trong tác nhân Dialogflow bằng các ý định xác định điểm truy cập vào chức năng của Hành động. Ví dụ: giả sử bạn muốn tạo một Thao tác có thể mua một số hàng hoá, kiểm tra trạng thái của đơn đặt hàng và hiển thị một số ưu đãi hằng ngày. Bạn có thể xác định các ý định được kích hoạt bằng cách nói:
- "Ok Google, nói chuyện với Cửa hàng giày yêu thích của tôi để mua giày"
- "Ok Google, nói chuyện với Cửa hàng giày yêu thích của tôi để kiểm tra đơn đặt hàng của tôi"
- "Ok Google, nói chuyện với Cửa hàng giày yêu thích của tôi để cho tôi xem các ưu đãi hôm nay"
Tìm hiểu thêm
Tạo và triển khai dịch vụ thực hiện đơn hàng
Khi một Hành động trong Hành động của bạn được gọi, Hành động đó sẽ gọi phương thức thực hiện để bắt đầu cuộc trò chuyện với người dùng nhằm thực hiện Hành động.
Để tạo cuộc trò chuyện, bạn xác định ý định trong Dialogflow để tạo ngữ pháp cho cuộc trò chuyện hoặc những điều mà người dùng có thể nói với Hành động của bạn.
Khi người dùng thực sự nói điều gì đó để kích hoạt một ý định, yêu cầu thực hiện của bạn sẽ được gọi và trả về phản hồi cho người dùng.
Yêu cầu và phản hồi qua lại này diễn ra nhiều lần cho đến khi yêu cầu của bạn có đủ thông tin để hoàn thành nhiệm vụ.
Tìm hiểu thêm
Gửi Hành động của bạn để phê duyệt và cung cấp cho người dùng

Tìm hiểu thêm
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2025-07-24 UTC.
[[["Dễ hiểu","easyToUnderstand","thumb-up"],["Giúp tôi giải quyết được vấn đề","solvedMyProblem","thumb-up"],["Khác","otherUp","thumb-up"]],[["Thiếu thông tin tôi cần","missingTheInformationINeed","thumb-down"],["Quá phức tạp/quá nhiều bước","tooComplicatedTooManySteps","thumb-down"],["Đã lỗi thời","outOfDate","thumb-down"],["Vấn đề về bản dịch","translationIssue","thumb-down"],["Vấn đề về mẫu/mã","samplesCodeIssue","thumb-down"],["Khác","otherDown","thumb-down"]],["Cập nhật lần gần đây nhất: 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)"]]