gpt4 book ai didi

alexa - 在 alexa 技能中显示超链接

转载 作者:行者123 更新时间:2023-12-05 03:00:07 27 4
gpt4 key购买 nike

是否有任何方法可以在 Alexa 技能中显示像“阅读更多”这样的超链接?我试图在我的自定义 Alexa 技能中显示超链接,但找不到任何方法来实现它

最佳答案

超链接现在作为 APL 的一部分提供支持它的设备的指令。您可以阅读文档 here :

OpenURL Command

The OpenURL command, if successful, opens the specified URL in a web browser or other application on the device. You must provide a suitable URL that works on the current device.

他们举了一个例子:

{
"type": "OpenURL",
"source": "https://www.amazon.com/",
"onFail": {
"type": "SetValue",
"componentId": "errorText",
"property": "text",
"value": "Unable to open Amazon.com (${event.source.value})"
}
}

关于支持设备的说明:

Not all devices support opening a URL. If the device does not support opening URLs, the command is ignored and it does not run onFail commands. Check the value of the allowOpenURL in the data-binding context to determine if OpenURL is supported on the device.

关于alexa - 在 alexa 技能中显示超链接,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57171495/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com