how can we create a hyperlink icon on watson conversation? - watson-conversation

We'd like create a hyperlink icon on watson conversation, when user click that icon, it redirects to watson explorer or discovery or any internet url, any advice would be appreciated.

Conversation returns text. It is up to your applications UI to render what is sent back.
So you can use HTML or any kind of meta tags.

HTML can be added and sent back in the response.text field, have a look at how its done in the image below, its pretty straight forward:
Image Link: Embed HTML in Watson Conversation response
Also, you may like to go through this guide on Watson Conversation: https://console.bluemix.net/docs/services/assistant/tutorial.html#tutorial
Hope this helps.

Related

Form Recognizer label tool request form link appears to be broken

I am trying to request the Label Tool to help with training a new form, but the link on the tutorial site appears to be incorrect. It redirects to the main Microsoft site.
I am working off this page and using the link under the second bullet point of Prerequisites.
https://aka.ms/LabelToolRequestAccess is the url that is on that link.
I'd like to try using this tool rather than training using Python. Any help is appreciated.
The link https://aka.ms/LabelToolRequestAccess is working on my side, see capture below:

if watson conversation response message can include rich text and picture

does anyone know if conversation response message can include rich text and picture? or the response message can only be text. Thanks.
Appears to be only text per API:
https://www.ibm.com/watson/developercloud/conversation/api/v1/
You can add images by putting < img src="..."> in the response. You won't be able to see the image in the tool you use to make the dialog and create intents but they will appear in your finished application.

Can I submit a form with google's recaptcha in it from my app?

I'm writing an app which involves letting users to share comments on a website, which has a comment form with Google's reCAPTCHA embeded. I would like to load this page via HTTP and display CAPTCHA within my app, so that user can post comments from my app. Is it easy to implement or should I rather try other solution?
EDIT:
I've red reCAPTCHA developer guide. If I would like to embed captcha inside my form, I'd need to insert div element with a proper class, and make a ajax request in order to render captcha. This call would insert an iframe into a given div. What I need is to know how to access that iframe's content without using AJAX.
Turns out we are not supposed to do that kind of tricks with reCAPTCHA.
There is no support for that in API. It seems that it was part of Google's design to prevent that kind of usage.
The only walkaround I could come up with is to implement a WebView widget with JavaScript support, get website via http, and load it into this webview, centering this view around the form we want to post.
It seems like a lot of work though, thus I'm going to simply skip this, if someone successfuly manages to figure it out I'd appreciate a hint :)

Screen reader and error messages

In general, how do you display client-side validation messages on a web page to make it easy to read out? Alerts are read out nice but are forbidden in the current design.
I'd suggest using a paragraph or similar (optionally invisible) with a role of alert.
<p id="error-msg" role="alert"></p>
When something goes wrong, put the text in the error-msg element, with Javascript of some description.
document.getElementById("error-msg").innerHTML="What are you doing you fool!";
Or something to that effect.
I believe this is what YouTube uses to let a user know when a new video in a playlist is loading.
Hope this helps.

Using the facebook popup design in my app

I am developing a Facebook App and I want use the exact design (style) that facebook has, to show a post - picture, link, status etc. So for example I show a link to a post on the wall that has a picture in it and when the user wants to see details about it, a popup shows all info (picture, likes, comments etc) exactly how Facebook shows it if you would click the picture in your wall. My question is: am I allowed to copy the exact design of the pop up, or is there a way I can do this by just calling a function with the parameter being the post id?
Thank you.
Yea - you can recreate their UI. Checkout this answer I gave a little while back - it might be useful to you.
http://facebook.stackoverflow.com/a/8912265/558021
The only issue with recreating their UI (IMO) is to start altering their brands.

Resources