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.
Lời gọi rõ ràng xuất hiện khi người dùng yêu cầu Trợ lý Google sử dụng Hành động của bạn theo tên.
Nếu muốn, người dùng có thể thêm một cụm từ của lời gọi vào cuối lệnh gọi để trực tiếp đưa họ đến hàm mà họ đang yêu cầu.
Thành phần gọi rõ ràng
Ví dụ sau đây cho thấy các thành phần có thể có của một lệnh gọi rõ ràng:
Cụm từ kích hoạt
Những cụm từ này bắt đầu một lời gọi rõ ràng và được xác định bởi Actions on Google:
"Ok Google, trò chuyện với..."
"Ok Google, hãy nói với..."
"Ok Google, tôi muốn nói chuyện với..."
"Ok Google, hỏi..."
Bạn có thể đọc về các cụm từ kích hoạt cho từng ngôn ngữ trong phần Ngôn ngữ và ngôn ngữ.
Tên lời gọi
Đây là tên Hành động của bạn, chẳng hạn như "Đầu bếp cá nhân". Người dùng kết hợp điều này với cụm từ kích hoạt để gọi rõ ràng Hành động theo tên, chẳng hạn như: "Ok Google, hãy để tôi trò chuyện với Đầu bếp cá nhân".
Cụm từ lời gọi (không bắt buộc)
Cụm từ gọi là một cơ chế giá trị để tăng khả năng phát hiện Hành động của bạn, đồng thời cho phép người dùng liên kết sâu vào cuộc trò chuyện của bạn bằng cách đưa ra một tác vụ cụ thể cần thực hiện. Những cụm từ này minh hoạ nhiều cách mà người dùng có thể yêu cầu các tính năng cho Hành động của bạn. Nhờ đó, Trợ lý Google có thể hiểu rõ hơn về các tính năng của Hành động của bạn và so khớp chúng với yêu cầu của người dùng.
"tìm công thức nấu ăn cho tôi"
"giới thiệu rượu"
"đặt xe"
"chơi trò chơi"
"muốn thiền"
Người dùng kết hợp tên lệnh gọi với các cụm từ của lời gọi để gọi rõ ràng các ý định cụ thể, chẳng hạn như: "Ok Google, trò chuyện với Đầu bếp cá nhân để tìm công thức nấu ăn cho tôi".
Ý định gọi rõ ràng
Nếu Hành động của bạn được gọi rõ ràng mà không có bất kỳ cụm từ gọi nào và theo tên ("Ok Google, hãy nói chuyện với Đầu bếp cá nhân") thì ý định actions.intent.MAIN trong Hành động đó sẽ được kích hoạt. Dự án Hành động của bạn chỉ được chứa một ý định chính cho lời gọi rõ ràng theo tên.
Nếu Hành động của bạn được gọi rõ ràng bằng một cụm từ gọi và theo tên ("Ok Google, trò chuyện với Đầu bếp cá nhân để xem công thức súp hôm nay"), thì ý định tương ứng với cụm từ gọi đó sẽ được gọi.
Để biết thêm thông tin, hãy tham khảo tài liệu của chúng tôi về ý định.
[[["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-28 UTC."],[[["\u003cp\u003eExplicit invocation is when a user directly addresses the Google Assistant and specifies your Action by name, optionally including an invocation phrase for a specific function.\u003c/p\u003e\n"],["\u003cp\u003eActions on Google uses trigger phrases like "Ok Google, talk to..." for explicit invocation, which may launch an app instead of the Action if the phrase overlaps with an App Action's built-in intent.\u003c/p\u003e\n"],["\u003cp\u003eThe invocation name is the name of your Action, which users combine with trigger phrases for explicit invocation; ensure it is easily recognizable by the Assistant and adheres to naming policies.\u003c/p\u003e\n"],["\u003cp\u003eOptional invocation phrases increase discoverability and enable deep linking by illustrating user requests for your Action's features, improving the Assistant's understanding of your Action's capabilities.\u003c/p\u003e\n"],["\u003cp\u003eExplicit invocation triggers either the \u003ccode\u003eactions.intent.MAIN\u003c/code\u003e intent when invoked by name only, or the intent corresponding to the invocation phrase when one is included.\u003c/p\u003e\n"]]],["Explicit invocation allows users to engage Actions by name using trigger phrases like \"Ok Google, talk to...\" followed by the Action's name (e.g., \"Personal Chef\"). Users can also add an optional invocation phrase to direct the Action to a specific task (e.g., \"find me recipes\"). If no phrase is included it triggers `actions.intent.MAIN`. The directory and specific invocation phrases enhance Action discoverability. Trigger phrases may be overwritten by apps.\n"],null,["# Explicit Invocation (Dialogflow)\n\nExplicit invocation occurs when a user tells the Google Assistant to use your Action by name.\nOptionally, the user can include an invocation phrase at the end of their\ninvocation that will take them directly to the function they're requesting.\n| **Note:** Users can discover your Action through the [Assistant directory](/assistant/directory), which is like a web store for Actions on the Google Assistant. The directory is a major source for your Action's discovery, so be sure to devote some development time to building a good listing.\n\nExplicit invocation components\n------------------------------\n\nThe following example shows the different possible components of an explicit\ninvocation command:\n\n### Trigger phrase\n\nThese phrases start an explicit invocation and are defined by Actions on Google:\n\n- \"*Ok Google, talk to...*\"\n- \"*Ok Google, speak to...*\"\n- \"*Ok Google, I want to speak to...*\"\n- \"*Ok Google, ask...*\"\n\nYou can read about trigger phrases for each language on\n[Languages and Locales](/assistant/console/languages-locales).\n| **Note:** On Android devices, trigger phrases invoke your Action, unless the phrase overlaps with an App Actions [built-in intent](/assistant/app/intents). In these cases, Assistant launches your app, if it's installed, instead of the Action.\n|\n|\n| For example, if a user says something like, \"*Hey Google, record that I ate\n| a burrito on ExampleTracker,\"* Assistant launches the *ExampleTracker*\n| app, if it has implemented the [`actions.intent.RECORD_FOOD_OBSERVATION`](https://developers.google.com/assistant/app/reference/built-in-intents/health-and-fitness/record-food-observation)\n| built-in intent, over any *ExampleTracker* Actions serving a similar intent.\n\n### Invocation name\n\nThis is the name of your Action, such as \"Personal Chef.\" Users combine this with\ntrigger phrases to explicitly invoke Actions by name, such as: \"*Ok Google, let me\ntalk to Personal Chef.*\"\n| **Note:** It's important to have invocation in mind when you're figuring out what to name your Action. If you have a clever Action name but the Assistant has trouble recognizing it, users may have difficulty invoking your Action. Refer to our [naming policies](/assistant/console/policies/general-policies#naming_directory_listing_and_promotion) and [invocation checklist](/assistant/df-asdk/checklist) for more details.\n\n### Invocation phrase (optional)\n\nInvocation phrases are a valuable mechanism to increase the discoverability of\nyour Action, and provide a way for users to deep link into your conversation by\nproviding a specific task to accomplish. These phrases illustrate various ways\nusers might request your Action's features, so the Google Assistant can better\nunderstand your Action's capabilities and match them with user requests.\n\n- \"*find me recipes*\"\n- \"*recommend a wine*\"\n- \"*book a ride*\"\n- \"*play a game*\"\n- \"*want to meditate*\"\n\nUsers combine your invocation name with invocation phrases to explicitly invoke\nspecific intents, such as: \"*Ok Google, talk to Personal Chef to find me\nrecipes.*\"\n| **Note:** Make sure your invocation phrases are specific to your Action and describe real-world use cases. A common mistake is to define invocation phrases that are too general to be specific to your Action's purpose, which makes your phrases less useful and hurts your Action's discovery. Refer to [implicit invocation](/assistant/df-asdk/discovery/implicit#writing_useful_invocation_phrases) and the [invocation checklist](/assistant/df-asdk/checklist) for more details.\n\nExplicit invocation intent\n--------------------------\n\nIf your Action is explicitly invoked without any invocation phrase and by name\n(\"*Ok Google, talk to Personal Chef* \") the `actions.intent.MAIN` intent in your\nAction is triggered. Your Actions project must only contain one main intent for\nexplicit invocation by name.\n\nIf your Action is explicitly invoked with an invocation phrase and by name\n(\"*Ok Google, talk to Personal Chef for today's soup recipe*\"), then the intent\ncorresponding with that invocation phrase is invoked.\n\nFor more information, reference our documentation on [intents](/assistant/df-asdk/reference/intents)."]]