Kể từ ngày 13 tháng 6 năm 2023, Hành động trò chuyện không còn được dùng nữa. Để biết thêm thông tin, hãy xem phần Hành động trò chuyện ngừng hoạt động.
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.
Để tương tác với Thao tác của bạn, người dùng cần phải gọi Thao tác đó. Trong nhiều trường hợp, người dùng sẽ nghĩ đến một Hành động cụ thể của bạn, vì vậy, họ yêu cầu Trợ lý Google tương tác với Hành động đó. Ngoài ra, miễn là bạn thiết kế Hành động để hoàn thành các tác vụ cụ thể và hữu ích, Trợ lý có thể đề xuất Hành động đó cho người dùng khi đó là Hành động phù hợp nhất cho câu hỏi của họ.
Các phần sau đây giải thích các loại lệnh gọi và mô tả cách thiết kế Hành động hiệu quả nhất để người dùng có thể khám phá.
Loại lời gọi
Có hai loại Lệnh gọi hành động:
Lời gọi rõ ràng xảy ra khi người dùng nói với Trợ lý rằng họ muốn sử dụng Hành động của bạn một cách rõ ràng. Bạn có quyền kiểm soát cao nhất đối với cách người dùng gọi Hành động của bạn một cách rõ ràng, nhưng bạn cần cho người dùng biết những cụm từ nào bắt đầu cuộc trò chuyện với Hành động của bạn. Phần Hỏi Trợ lý trong trang thông tin trên danh mục của Hành động là nơi phù hợp để truyền đạt thông tin này cho người dùng.
Ví dụ: "Ok Google, nói chuyện với Wayne's Bikes."
Lời gọi ngầm ẩn xảy ra khi Trợ lý chọn gọi Hành động của bạn mà không cần người dùng gọi theo tên. Ví dụ phổ biến nhất về một lệnh gọi ngầm là khi người dùng nói với Trợ lý rằng họ muốn hoàn thành một tác vụ nhất định (bằng cách nêu một cụm từ gọi) và Trợ lý chọn gọi Hành động của bạn cho tác vụ đó vì Hành động có thể thực hiện ý định của người dùng. Tính năng gọi ngầm cho phép người dùng tìm hiểu và sử dụng Hành động của bạn chỉ bằng cách thực hiện các hoạt động hằng ngày. Tuy nhiên, việc thiết kế Hành động của bạn theo các phương pháp hay nhất của chúng tôi sẽ giúp tăng khả năng người dùng khám phá Hành động đó.
Ví dụ: "Ok Google, đặt lịch hẹn sửa xe đạp cho tôi."
Cụm từ kích hoạt
Cụm từ kích hoạt mô tả một chức năng cụ thể của Hành động. Khi gọi Hành động của bạn, người dùng có thể sử dụng một cụm từ gọi có thể liên kết sâu vào một trong những chức năng cụ thể của Hành động.
Sau đây là một số ví dụ về cụm từ kích hoạt:
"hôm nay tôi nên mặc gì"
"when's the next bus to $location" (khi nào có chuyến xe buýt tiếp theo đến $location)
"what's the current price of gold" (giá vàng hiện tại là bao nhiêu)
"muốn thiền"
Người dùng có thể thêm một cụm từ kích hoạt vào cuối một lệnh gọi rõ ràng hoặc tự thêm cụm từ đó để thực hiện lệnh gọi ngầm. Dù bằng cách nào, hãy nhớ thiết kế các cụm từ kích hoạt hữu ích và dành riêng cho mục đích của Hành động. Những cụm từ kích hoạt quá chung chung sẽ không hữu ích cho người dùng và làm giảm khả năng hiển thị cũng như khả năng khám phá Hành động của bạn.
Để biết thêm thông tin về cụm từ gọi, cách khám phá và cụm từ gọi, hãy đọc phần gọi rõ ràng và gọi ngầm.
Đường liên kết tới Trợ lý
Ngoài việc gọi bằng Trợ lý, bạn cũng có thể bật đường liên kết đến Trợ lý cho bất kỳ Hành động nào của mình. Người dùng nhấp vào đường liên kết này trong trình duyệt web hoặc trình duyệt di động sẽ được chuyển đến Trợ lý Google, nơi họ sẽ bắt đầu cuộc trò chuyện với Thao tác cụ thể đó.
[[["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\u003eUsers can engage with your Action through explicit invocation by directly calling its name or implicit invocation where the Assistant suggests it based on user needs.\u003c/p\u003e\n"],["\u003cp\u003eDesigning your Action for specific tasks improves the chances of the Google Assistant recommending it to users, increasing its discoverability.\u003c/p\u003e\n"],["\u003cp\u003eInvocation phrases that describe the Action's functions can be used by users for either explicit or implicit invocation.\u003c/p\u003e\n"],["\u003cp\u003eUsing clear and specific invocation phrases is crucial for enhancing your Action's visibility and ensuring it is easily discovered by users.\u003c/p\u003e\n"],["\u003cp\u003eAssistant links offer an alternative way for users to access your Action by clicking a link in a web or mobile browser to initiate a conversation with the Assistant.\u003c/p\u003e\n"]]],[],null,["# Overview (Dialogflow)\n\nIn order for users to engage with your Action, they need to invoke it. In many\ncases users will have your specific Action in mind, so they ask the Google\nAssistant to interface with it. Additionally, as long as you design your Action\nto accomplish specific, helpful tasks, the Assistant may recommend it to users\nwhen it's the best available Action for their query.\n\nThe following sections explain the different types of invocation and\ndescribe how best to design your Action with discovery in mind.\n\nInvocation types\n----------------\n\nThere are two types of Action invocation:\n\n- **Explicit Invocation** occurs when users tell the Assistant that they\n explicitly want to use your Action. You have the most control over how your\n users explicitly invoke your Action, but you need to let your users know\n what phrases start a conversation with your Action. The **Ask Your\n Assistant** section on your Action's [directory listing](/assistant/directory) is a\n good place to relay this information to users.\n\n Example: \"*Hey Google, talk to Wayne's Bikes.*\"\n- **Implicit Invocation** occurs when the Assistant chooses to invoke your\n Action without users calling it by name. The most common example of an\n implicit invocation is when users tell the Assistant they want to accomplish\n a certain task (by stating an [invocation phrase](#invocation_phrases)), and\n the Assistant opts to invoke your Action for that task because it can\n fulfill the user's intent. Implicit invocation enables users to learn about\n and use your Action simply by going about their day, but designing your\n Action with our [best practices](/assistant/df-asdk/checklist) in mind improves the\n chances that it's discovered.\n\n Example: \"*Hey Google, book an appointment to fix my bike.*\"\n\n| **Note:** You don't have to choose between types of invocation for your Action. Users can always explicitly invoke your Action, but you should keep implicit invocation in mind during the design process so you can increase the odds that users discover your Action on their own.\n\nInvocation Phrases\n------------------\n\nAn invocation phrase describes a specific function of your Action. When users\ninvoke your Action, they may include an invocation phrase that can deep link\ninto one of your Action's specific functions.\n\nExamples of invocation phrases include:\n\n- \"*what should I wear today*\"\n- \"*when's the next bus to $location*\"\n- \"*what's the current price of gold*\"\n- \"*want to meditate*\"\n\nUsers can append an invocation phrase to the end of an explicit invocation or\nthem on their own for an implicit invocation. Either way, make sure to design\nuseful invocation phrases that are specific to your Action's purpose. Invocation\nphrases that are too generic aren't helpful to the user and reduce your Action's\nvisibility and discovery.\n\nFor more information about invocation, discovery, and invocation phrases,\nread [explicit](/assistant/df-asdk/discovery/explicit) and [implicit](/assistant/df-asdk/discovery/implicit) invocation.\n\nAssistant links\n---------------\n\nIn addition to invocation using the Assistant, you can also enable an\n[Assistant link](/assistant/engagement/assistant-links) for any of your Actions. Users who click on this link in a web\nor mobile browser are directed to the Google Assistant, where they'll start\na conversation with that specific Action."]]