LinkValueSpec
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
作为 actions.intent.LINK
的输入从应用传递。
字段 |
openUrlAction |
object (OpenUrlAction )
应用应链接到的目的地。可能是网址、对话链接或 Android intent。网址用于将流程移交给某个网站。对话链接用于提供指向其他 AoG 应用的深层链接。Android intent URI 用于触发 Android intent。这需要指定 packageName。
|
dialogSpec |
object (DialogSpec )
|
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):2025-07-26。"],[[["\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)`)` |"]]