Can I use a LaTex script in Watson Conversation service Dialog flow?

136 views Asked by At

I am successfully using three Watson services: Conversation, TTS and STT in my application.

But I have a requirement on putting up equations in my conversation flow. Can I use LaTeX with JSON to write in my Conversation Dialog flow? Is there any other alternative for this?

1

There are 1 answers

4
Michal Bida On

The Watson Conversation service does not explicitly handle rendering of the textual response. This should be handled by the client part of the application that is using the service to show the textual answer to the user (usually through some web page).

Now you can return parts of latex script from dialog nodes defined in the Watson Conversation service, but the rendering of these scripts will need to be handled by e.g. the JavaScript code of the application that is communicating with the REST API of the Watson Conversation service.

As for using latex scripts in JSON you can use any syntax that is compatible with the JSON - in general, you need to escape quotes " and backlashes \ in the String response that will be returned in JSON.