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 they don't work for me.
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.