LinkDialogSpec
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
JSON 表示法 |
{
"destinationName": string,
"requestLinkReason": string
} |
字段 |
destinationName |
string
此请求希望链接到的应用或网站的名称。系统将会创建 TTS,其标题为“打开 ”。确认过程中也会用到“我可以将您转给 吗?”如果我们知道相应链接的实际标题,就会忽略此字段,使用适当的标题。最多 20 个字符。
|
requestLinkReason |
string
添加到确认提示末尾的字符串,用于说明我们需要进行链接的原因。示例:“导航去取您的咖啡?”可以将此信息附加到确认提示中,例如“我可以把您转到 Google 地图来导航去取您的咖啡吗?”,
|
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):2025-07-26。"],[[["\u003cp\u003eThe JSON object for linking requests requires \u003ccode\u003edestinationName\u003c/code\u003e and \u003ccode\u003erequestLinkReason\u003c/code\u003e fields.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003edestinationName\u003c/code\u003e provides the name of the app or website for linking, used in the TTS prompt.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003erequestLinkReason\u003c/code\u003e explains the purpose of the link and is added to the confirmation prompt for context.\u003c/p\u003e\n"]]],["The JSON representation defines a structure with two fields: `destinationName` and `requestLinkReason`. `destinationName` is a string specifying the target app or site, used to create a title with \"Open.\" `requestLinkReason`, also a string, explains the purpose of the link request and is appended to the confirmation prompt, such as in \"Can I send you to [destination] to [requestLinkReason]?\"\n"],null,["# LinkDialogSpec\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n\n| JSON representation ||\n|--------------------------------------------------------------------|---|\n| ``` { \"destinationName\": string, \"requestLinkReason\": string } ``` |\n\n| Fields ||\n|---------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `destinationName` | `string` The name of the app or site this request wishes to linking to. The TTS will be created with the title \"Open \". Also used during confirmation, \"Can I send you to ?\" If we know the actual title of the link that is being handed off to, we will ignore this field and use the appropriate title. Max 20 chars. |\n| `requestLinkReason` | `string` A string that is added to the end of the confirmation prompt to explain why we need to link out. Example: \"navigate to pick up your coffee?\" This can be appended to the confirmation prompt like \"Can I send you to Google Maps to navigate to pick up your coffee?\" |"]]