Stay organized with collections
Save and categorize content based on your preferences.
Action ID
actions.intent.GET_THING
Description
Search for content or entities using the default in-app search feature in an app. Populate the
search criteria with the content or entity name using the thing.name intent
parameter, and present the most relevant search results to the user.
Locale support
Functionality
Locales
Preview creation using App Actions test tool
en-US, pt-BR
User invocation from Google Assistant
en-US, pt-BR
Example queries
en-US
Find waterfall hikes on ExampleApp
Look up summer dresses in ExampleApp
pt-BR
Procura campanhas na ExampleApp.
Acha Dark na ExampleApp pra mim.
Acha pra mim David Gilmour na ExampleApp.
Recommended fields
The following fields represent essential information that users often
provide in queries that trigger this built-in intent:
thing.name is a field
that supports web inventory.
In the following example, Google Assistant performs a web search for the user
query and determines the fulfillment URL. Assistant filters for search results
that match the provided urlFilter value of
https://www.mywebsite.com/link1/.*.
[null,null,["Last updated 2024-09-04 UTC."],[],[],null,["# Get thing\n\nAction ID\n: `actions.intent.GET_THING`\n\nDescription\n: Search for content or entities using the default in-app search feature in an app. Populate the\n search criteria with the content or entity name using the `thing.name` intent\n parameter, and present the most relevant search results to the user.\n\nExample queries\n---------------\n\n#### en-US\n\n- Find waterfall hikes on ExampleApp\n- Look up summer dresses in ExampleApp\n\n#### pt-BR\n\n- Procura campanhas na ExampleApp.\n- Acha Dark na ExampleApp pra mim.\n- Acha pra mim David Gilmour na 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[`thing.name`](https://schema.googleapis.com/name) \n\nOther supported fields\n----------------------\n\nThe following fields represent information that users often provide to\ndisambiguate their needs or otherwise improve their results:\n[`thing.@type`](https://schema.googleapis.com/Thing) \n\nSupported text values by field\n------------------------------\n\n`thing.@type`\n\n- Thing\n\nInventory availability by field\n-------------------------------\n\n`thing.name`\n\n- Web inventory\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### Handle BII parameters\n\n### shortcuts.xml\n\n\n```world-of-warcraft-toc\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.GET_THING\"\u003e\n \u003cintent\n android:action=\"android.intent.action.VIEW\"\n android:targetPackage=\"YOUR_UNIQUE_APPLICATION_ID\"\n android:targetClass=\"YOUR_TARGET_CLASS\"\u003e\n \u003c!-- Eg. name = \"Running shoes\" --\u003e\n \u003cparameter\n android:name=\"thing.name\"\n android:key=\"name\"/\u003e\n \u003c/intent\u003e\n \u003c/capability\u003e\n\u003c/shortcuts\u003e\n \n```\n\n\u003cbr /\u003e\n\n### actions.xml\n\n\n```world-of-warcraft-toc\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.GET_THING\"\u003e\n \u003cfulfillment urlTemplate=\"myapp://custom-deeplink{?name}\"\u003e\n \u003c!-- e.g. name = \"Running shoes\" --\u003e\n \u003c!-- (Optional) Require a field eg.name for fulfillment with required=\"true\" --\u003e\n \u003cparameter-mapping urlParameter=\"name\" intentParameter=\"thing.name\" required=\"true\" /\u003e\n \u003c/fulfillment\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 \u003c/action\u003e\n\u003c/actions\u003e\n```\n\n\u003cbr /\u003e\n\n### Use web inventory\n\n`thing.name` is a field\nthat supports [web inventory](/guide/app-actions/action-schema#web-inventory).\nIn the following example, Google Assistant performs a web search for the user\nquery and determines the fulfillment URL. Assistant filters for search results\nthat match the provided `urlFilter` value of\n`https://www.mywebsite.com/link1/.*`.\n\n### shortcuts.xml\n\n\n```world-of-warcraft-toc\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.GET_THING\"\u003e\n \u003cintent\n android:action=\"android.intent.action.VIEW\"\n android:targetPackage=\"YOUR_UNIQUE_APPLICATION_ID\"\n android:targetClass=\"YOUR_TARGET_CLASS\"\u003e\n \u003cparameter android:name=\"thing.name\"\u003e\n \u003cdata android:pathPattern=\"https://www.mywebsite.com/link1/.*\"/\u003e\n \u003c/parameter\u003e\n \u003c/intent\u003e\n \u003c/capability\u003e\n\u003c/shortcuts\u003e\n \n```\n\n\u003cbr /\u003e\n\n### actions.xml\n\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.GET_THING\"\u003e\n \u003c!-- Use URL from entity match for deep link fulfillment --\u003e\n \u003c!-- Example: url = 'https://www.mywebsite.com/link1/item1' --\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 web inventories using urlFilter --\u003e\n \u003cparameter name=\"thing.name\"\u003e\n \u003centity-set-reference urlFilter=\"https://www.mywebsite.com/link1/.*\" /\u003e\"/\u003e\n \u003c/parameter\u003e\n \u003c/action\u003e\n\u003c/actions\u003e\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```carbon\n{\n \"@context\": \"http://schema.googleapis.com\",\n \"@type\": \"Thing\",\n \"name\": \"Running shoes\"\n}\n```"]]