利用應用程式動作擴充應用程式
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
您可以利用應用程式動作將應用程式擴充至 Google 助理,讓使用者得以透過和 Google 助理交談,快速和應用程式的重要功能互動。實作應用程式動作後,您就可以將其與以下功能併用,進而提升應用程式的使用者留存率和互動率:
啟用系統捷徑建議
如要將 Google 捷徑整合資料庫新增至您的 Android 專案,並將動態捷徑推送至 Google 助理,請按照「將動態捷徑推送至 Google 助理」中的說明操作。
以下最佳做法可鼓勵使用者盡可能採用繫結至應用程式動作的捷徑:
在使用者完成相關的動作後推送捷徑,幫助 Google 助理等 Google 途徑為使用者建議捷徑。從 Google 捷徑整合資料庫中推送捷徑時,並無數量限制。
在 shortcuts.xml
中定義靜態捷徑,讓 Google 助理主動向使用者提出建議。由於您只能透過將新應用程式版本發布到 Google Play 管理中心的方式更新這類捷徑,因此最好將其用於建議所有使用者都會用到的捷徑,例如「傳送電子郵件」。
靜態捷徑有助於讓 Google 助理向新使用者建議應用程式捷徑,因為這些使用者尚未在應用程式內執行設有動態捷徑的動作。
建立應用程式內捷徑建議
透過應用程式內宣傳 SDK,您可以在應用程式內建議要採用的 Google 助理快速指令。舉例來說,當有使用者在您的音樂應用程式中搜尋「健身重金屬樂」時,您可以建議對方採用 Google 助理快速指令,方便日後直接存取這些搜尋結果。如此一來,使用者就能藉由向 Google 助理說出「Hey Google, Example App heavy metal workout」來啟動捷徑。
請考慮在使用者新手上路期間建議捷徑;如果您希望使用者日後能透過 Google 助理快速重播某動作,也可以在他們執行該動作時建議捷徑。
如要進一步瞭解如何建構應用程式建議,請參閱「實作建議」。
這個頁面中的內容和程式碼範例均受《內容授權》中的授權所規範。Java 與 OpenJDK 是 Oracle 和/或其關係企業的商標或註冊商標。
上次更新時間:2025-07-27 (世界標準時間)。
[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["缺少我需要的資訊","missingTheInformationINeed","thumb-down"],["過於複雜/步驟過多","tooComplicatedTooManySteps","thumb-down"],["過時","outOfDate","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["示例/程式碼問題","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2025-07-27 (世界標準時間)。"],[],[],null,["# Grow your app with App Actions\n\nExtending your app to Assistant with App Actions lets users quickly engage\nwith the key features of your app by talking to Google Assistant. Once you\nimplement App Actions, you can use it to drive user retention and engagement\nfor your app with the following features:\n\n- **System shortcut suggestions**. The Google Shortcuts Integration library\n lets Google Assistant suggest your dynamic shortcuts to users. This\n capability makes it simple for users to discover and replay shortcuts to your\n app's key features.\n\n- **In-app shortcut suggestions** . The [In-App Promo SDK](/guide/app-actions/in-app-promo-sdk) lets you\n easily suggest Assistant shortcuts to users in your app. Users can launch\n these shortcuts using their voice with Assistant and see them suggested on\n Google surfaces.\n\nEnable system shortcut suggestions\n----------------------------------\n\nTo add the Google Shortcuts Integration library to your Android project and\npush dynamic shortcuts to Assistant, follow the instructions at [Push dynamic\nshortcuts to Assistant](/guide/app-actions/dynamic-shortcuts).\n\nThese best practices maximize user exposure to your App Actions bound shortcuts:\n\n- Push a shortcut whenever a user completes a relevant action to help Google\n surfaces, like Assistant, suggest the shortcut to the user. You can push an\n unlimited number of shortcuts with the Google Shortcuts Integration library.\n\n- Define static shortcuts in `shortcuts.xml` for Assistant to suggest\n proactively to users. These shortcuts can only update by releasing\n a new version of your app to Google Play Console, so they are best for\n suggesting shortcuts that apply to all users, for example, \"Send an email.\"\n\n Static shortcuts are useful for helping Assistant suggest app shortcuts to\n new users who have not yet taken actions in your app that have dynamic\n shortcuts.\n\nCreate in-app shortcut suggestions\n----------------------------------\n\nThe In-App Promo SDK lets you suggest Assistant shortcuts in your app.\nFor example, if a user performs a search for \"heavy metal workout\" in your music\napp, you might suggest an Assistant shortcut directly to those search results\nin the future. The user can then launch the shortcut by asking Assistant, *\"Hey\nGoogle, Example App heavy metal workout.\"*\n\nConsider suggesting shortcuts during user onboarding or when a user performs an\naction you want them to quickly replay in the future with Assistant.\n\nFor more information about building suggestions for your app, see\n[Implement suggestions](/guide/app-actions/in-app-promo-sdk#implement_suggestions)."]]