使用者必須叫用動作,才能與動作互動。在許多情況下,使用者會想到特定動作,因此要求 Google 助理與該動作互動。此外,只要你設計的動作能完成特定實用工作,當使用者查詢時,如果該動作是最佳選擇,Google 助理可能會向使用者推薦。
以下各節說明不同類型的叫用方式,並介紹如何設計動作,讓使用者更容易找到。
叫用類型
動作呼叫分為兩種類型:
明確叫用:使用者明確告知 Google 助理要使用你的動作。您可以充分控管使用者明確叫用動作的方式,但必須讓使用者知道哪些片語會啟動與動作的對話。在動作的目錄清單中,詢問 Google 助理部分是向使用者傳達這項資訊的好地方。
例如:「Ok Google,與 Wayne's Bikes 對話。」
隱含叫用是指 Google 助理選擇叫用你的動作,但使用者並未呼叫動作名稱。最常見的隱含叫用例子是,使用者告訴 Google 助理他們想完成某項工作 (透過叫用詞),而 Google 助理選擇叫用您的動作來完成該工作,因為該動作可以滿足使用者的意圖。隱含叫用功能可讓使用者在日常生活中瞭解及使用你的動作,但設計動作時若能遵循最佳做法,就能提高動作的曝光率。
例如:「Ok Google,預約維修單車的服務。」
叫用詞組
呼叫詞會說明動作的特定功能。使用者叫用動作時,可能會加入叫用詞組,藉此深層連結至動作的特定功能。
以下列舉一些喚醒詞:
「我今天該穿什麼衣服」
「when's the next bus to $location」(下一班前往 $location 的公車何時抵達?)
[null,null,["上次更新時間:2025-07-24 (世界標準時間)。"],[[["\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."]]