LinkValueSpec
Stay organized with collections
Save and categorize content based on your preferences.
Passed from the app as input for actions.intent.LINK
.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License
, and code samples are licensed under the Apache 2.0 License
. For details, see the Google Developers Site Policies
. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-18 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-09-18 UTC."],[[["\u003cp\u003e\u003ccode\u003eactions.intent.LINK\u003c/code\u003e requires a JSON input with \u003ccode\u003eopenUrlAction\u003c/code\u003e and \u003ccode\u003edialogSpec\u003c/code\u003e fields.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eopenUrlAction\u003c/code\u003e specifies the destination for the link, which can be a web URL, conversational link, or Android intent.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003edialogSpec\u003c/code\u003e is an object providing additional information for the linking action.\u003c/p\u003e\n"]]],["The `actions.intent.LINK` input, represented in JSON, contains two key fields: `openUrlAction` and `dialogSpec`. `openUrlAction` specifies the destination for linking, which can be a web URL, a conversational link to another app, or an Android intent. For Android intents, the package name must be included. `dialogSpec` is the second key which contains dialog specification information. This information details where the app should navigate upon the user engaging the intent.\n"],null,["# LinkValueSpec\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n\nPassed from the app as input for `actions.intent.LINK`.\n\n| JSON representation ||\n|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| ``` { \"openUrlAction\": { object (/assistant/df-asdk/reference/webhook/rest/Shared.Types/OpenUrlAction) }, \"dialogSpec\": { object (/assistant/df-asdk/reference/webhook/rest/Shared.Types/DialogSpec) } } ``` |\n\n| Fields ||\n|-----------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `openUrlAction` | `object (`[OpenUrlAction](/assistant/df-asdk/reference/webhook/rest/Shared.Types/OpenUrlAction)`)` Destination that the app should link to. Could be a web URL, a conversational link or an Android intent. A web URL is used to handoff the flow to some website. A conversational link is used to provide a deep link into another AoG app. An Android intent URI is used to trigger an Android intent. This requires the packageName to be specified. |\n| `dialogSpec` | `object (`[DialogSpec](/assistant/df-asdk/reference/webhook/rest/Shared.Types/DialogSpec)`)` |"]]