我试过其他论坛上提到的其他回复,但我仍然无法获得正确的结果。IBM Watson:如何向Watson Responses添加超链接?
由于这一刻,this is what the layout looks like
任何帮助,将不胜感激!
我试过其他论坛上提到的其他回复,但我仍然无法获得正确的结果。IBM Watson:如何向Watson Responses添加超链接?
由于这一刻,this is what the layout looks like
任何帮助,将不胜感激!
用户需要通过context
示例通过超链接(使用python在后台) -
response['context']['link'] = "www.google.com"
conversation.message(workspace_id=workspace_id,
message_input={'text': user_input},
context=response['context'])
现在在对话框
{
"context": {},
"output": {
"text": {
"values": [
"$link"
],
"selection_policy": "sequential"
}
}
}
所以值你context
传递显示前缀$
链接可以直接添加到watson会话响应 – user2881430
是Watson虚拟代理或您自己的自定义聊天界面的输出吗?我在虚拟代理中尝试了它,但我无法将它显示为超链接 - html标记本身显示 – callmekatootie
在这种情况下,我的自定义聊天界面,网页。取决于你的频道,比如信使,例如,只有当你直接发送'https:// yourwebsite.com'时,链接才有效。 –
好吧,知道了。我迄今为止所经历的是,沃森虚拟代理不会将它们显示为链接 – callmekatootie