Stay organized with collections
Save and categorize content based on your preferences.
Action ID
actions.intent.OPEN_APP_FEATURE
Description
Launch a feature of the app. This intent is especially useful to help users navigate to
features within your app which may be otherwise be difficult to find, or require multiple taps
to get to.
You must specify inline inventory for the feature parameter. Provide the app feature names as entities.
Avoid using Android Slices for this built-in intent.
Inline inventory for this built-in intent can only be tested for a period of 6 hours after a
preview is created or updated. Update the test tool preview or create a new preview to
reset the 6 hour time period.
[null,null,["Last updated 2024-09-04 UTC."],[],[],null,["# Open app feature\n\nAction ID\n: `actions.intent.OPEN_APP_FEATURE`\n\nDescription\n\n: Launch a feature of the app. This intent is especially useful to help users navigate to\n features within your app which may be otherwise be difficult to find, or require multiple taps\n to get to.\n\n You must specify inline inventory for the `feature` parameter. Provide the app feature names as entities.\n\n Avoid using Android Slices for this built-in intent.\n\n Inline inventory for this built-in intent can only be tested for a period of 6 hours after a\n preview is created or updated. Update the test tool preview or create a new preview to\n reset the 6 hour time period.\n\nExample queries\n---------------\n\n#### en-US, en-GB, en-CA, en-IN, en-BE, en-SG, en-AU\n\n- Open Youtube history.\n- Open ExampleApp ExampleFeature.\n- Show me ExampleFeature on ExampleApp.\n\n#### es-ES\n\n- Abre el test feature de ExampleApp\n- ExampleApp Abre test feature\n\n#### pt-BR\n\n- Abre o test feature do aplicativo ExampleApp\n- Gostaria de abrir o test feature em ExampleApp\n\nRecommended fields\n------------------\n\nThe following fields represent essential information that users often\nprovide in queries that trigger this built-in intent:\n`feature` \n\nInventory availability by field\n-------------------------------\n\n`feature`\n\n- Inline inventory\n\nForeground app invocation\n-------------------------\n\nThis built-in intent supports [foreground app invocation](/guide/app-actions/foreground-app).\n\n| Functionality | Locales |\n|----------------------------------------------|-------------------------------------------------|\n| Preview creation using App Actions test tool | en-US, en-GB, en-CA, en-IN, en-BE, en-SG, en-AU |\n| User invocation from Google Assistant | |\n\nThe following example queries are specific to intent matching for foreground app invocation:\n\n#### en-US, en-GB, en-CA, en-IN, en-BE, en-SG, en-AU\n\n- Open the ExampleFeature section.\n- Show me my ExampleFeature.\n\nSample XML files\n----------------\n\nFor information about the `shortcuts.xml` schema, see [Create shortcuts.xml](/guide/app-actions/action-schema).\n\n\n| **Deprecation notice:** Google is ending support for App Actions implemented using the\n| `actions.xml` resource file. Please use the\n| [Actions.xml migration guide](/guide/app-actions/legacy/migration-guide) to update your\n| actions to use the fully supported Android Shortcuts framework. For details on\n| the Shortcuts framework, see [App Actions overview](/guide/app-actions/overview).\n\n\u003cbr /\u003e\n\n### Use inline inventory\n\n### shortcuts.xml\n\n\n`feature` is an\nintent parameter that supports [inline inventory](/guide/app-actions/action-schema#inline-inventory).\nBy defining a `\u003cshortcut\u003e` for `feature`,\nyou can uniquely identify entities that are of interest to your app or restrict\nfulfillment to the set of supported entities.\n\nIn the following example, when the user query matches the\n`featureParam_one`\nshortcut, Assistant provides the associated shorcut identifier, `ID_ONE`, as\nthe URL parameter `featureParam`\nto fulfillment. \n\n```transact-sql\n\u003c?xml version=\"1.0\" encoding=\"utf-8\"?\u003e\n\u003c!-- This is a sample shortcuts.xml --\u003e\n\u003cshortcuts xmlns:android=\"http://schemas.android.com/apk/res/android\"\u003e\n \u003ccapability android:name=\"actions.intent.OPEN_APP_FEATURE\"\u003e\n \u003cintent\n android:targetPackage=\"YOUR_UNIQUE_APPLICATION_ID\"\n android:targetClass=\"YOUR_TARGET_CLASS\"\u003e\n \u003cparameter\n android:name=\"feature\"\n android:key=\"featureParam\"/\u003e\n \u003c/intent\u003e\n \u003c/capability\u003e\n \u003c!-- Short and long labels must be @string resource. --\u003e\n \u003cshortcut\n android:shortcutId=\"ID_ONE\"\n android:shortcutShortLabel=\"@string/shortcut_short_label\"\n android:shortcutLongLabel=\"@string/shortcut_long_label\"\u003e\n \u003ccapability-binding android:key=\"actions.intent.OPEN_APP_FEATURE\"\u003e\n \u003cparameter-binding\n android:value=\"featureParam\"\n android:key=\"feature\"/\u003e\n \u003c/capability-binding\u003e\n \u003c/shortcut\u003e\n\u003c/shortcuts\u003e\n \n```\n\n\u003cbr /\u003e\n\n### actions.xml\n\n\n`feature` is an\nintent parameter that supports [inline inventory](/guide/app-actions/action-schema#inline-inventory).\nBy defining an `\u003centity-set\u003e` for `feature`,\nyou can uniquely identify entities that are of interest to your app or restrict\nfulfillment to the set of supported entities.\n\nIn the following example, when the user query matches the\n`featureParam_one`\nentity, Assistant provides the associated identifier, `ID_ONE`, as\nthe URL parameter `featureParam`\nto fulfillment. \n\n```transact-sql\n\u003c?xml version=\"1.0\" encoding=\"utf-8\"?\u003e\n\u003c!-- This is a sample actions.xml --\u003e\n\u003cactions\u003e\n \u003caction intentName=\"actions.intent.OPEN_APP_FEATURE\"\u003e\n \u003cfulfillment urlTemplate=\"myapp://deeplink{?featureParam}\" \u003e\n \u003c!-- featureParam = \"ID_ONE\" or \"ID_TWO\" --\u003e\n \u003cparameter-mapping urlParameter=\"featureParam\" intentParameter=\"feature\" /\u003e\n \u003c/fulfillment\u003e\n\n \u003c!-- Define parameters with inventories here --\u003e\n \u003cparameter name=\"feature\"\u003e\n \u003centity-set-reference entitySetId=\"featureParamEntitySet\"/\u003e\n \u003c/parameter\u003e\n \u003c/action\u003e\n\n \u003centity-set entitySetId=\"featureParamEntitySet\"\u003e\n \u003c!-- Provide an identifier per entity --\u003e\n \u003centity identifier=\"ID_ONE\" name=\"featureParam_one\" alternateName=\"@array/featureParam_one_synonyms\"/\u003e\n \u003centity identifier=\"ID_TWO\" name=\"featureParam_two\" alternateName=\"@array/featureParam_two_synonyms\"/\u003e\n \u003c/entity-set\u003e\n\u003c/actions\u003e\n```\n\n\u003cbr /\u003e\n\nThe `url` attribute associated with the entity can be used to\ndetermine the fulfillment URL if there is an inventory match. In the following\nexample, when the user query matches the\n`featureParam_one`\nentity, Assistant provides `myapp://deeplink/one` as the fulfillment\nURL. \n\n```transact-sql\n \u003c?xml version=\"1.0\" encoding=\"utf-8\"?\u003e\n \u003c!-- This is a sample actions.xml --\u003e\n \u003cactions\u003e\n \u003caction intentName=\"actions.intent.OPEN_APP_FEATURE\"\u003e\n \u003c!-- Use url from inventory match for deep link fulfillment --\u003e\n \u003cfulfillment urlTemplate=\"{@url}\" /\u003e\n\n \u003c!-- Provide a fallback fulfillment with no required parameters. For example, to your app search or router deeplink --\u003e\n \u003cfulfillment urlTemplate=\"myapp://deeplink\" /\u003e\n\n \u003c!-- Define parameters with inventories here --\u003e\n \u003cparameter name=\"feature\"\u003e\n \u003centity-set-reference entitySetId=\"featureParamEntitySet\"/\u003e\n \u003c/parameter\u003e\n \u003c/action\u003e\n\n \u003centity-set entitySetId=\"featureParamEntitySet\"\u003e\n \u003c!-- Provide a URL per entity --\u003e\n \u003centity url=\"myapp://deeplink/one\" name=\"featureParam_one\" alternateName=\"@array/featureParam_one_synonyms\"/\u003e\n \u003centity url=\"myapp://deeplink/two\" name=\"featureParam_two\" alternateName=\"@array/featureParam_two_synonyms\"/\u003e\n \u003c/entity-set\u003e\n \u003c/actions\u003e\n \n```\n\n\u003cbr /\u003e\n\nJSON-LD sample\n--------------\n\nThe following JSON-LD sample provides some example values that you can\nuse in the App Actions test tool: \n\n```text\n\"History\"\n```"]]