insert hyperlink inside watson dialog conversation

笑着哭i 提交于 2019-12-25 08:23:01

问题


I'm programming a dialog with watson conversation api. And now i want to insert a hyperlink inside the dialog box.

I tried these solutions here and here. but them don't work for me.

any helps?

thanks in advance.


回答1:


In the case you can do this inside Conversation flow. Add or replace the text inside JSON. Add the url with tag <a target> and href= your URL inside flows.

Check my example (EDIT with example inside conversation flow):

{
  "output": {
    "text": {
      "values": [
        "This is a link <a  target=\\\"_blank\\\" href= \\\"https://www.choosemyplate.gov\\\">Food and nutrition Guide</a>.\\n<br/><br/>Talk to you later, bye for now!"
      ],
      "selection_policy": "sequential"
    }
  }
}

See more in this link. I answered the same question with more details.

Add inside your response (not advanced response):

<a  target="_blank" href="https://google.com.br">Google</a>.\n<br/><br/>

If you have more questions about this, let me know, I'll try help you.



来源:https://stackoverflow.com/questions/42554222/insert-hyperlink-inside-watson-dialog-conversation

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!