MultiLingual FAQBot powered by IBM Watson Discovery Service, Language Translator service and PubNub
This repository contains the source code and instructions to build a MultiLingual FAQBot which is an automated product FAQ search engine. It uses IBM Watson Discovery API to analyze the product's user guide, Watson Language Translator to translate the text obtained from discovery service and a local client side web page to provide the user interface for querying the product user guide via discovery service.
Watson Language service provides the translation of query answers to be shown on the client side web page. The languages provided are - German, French and Arabic along with default English language.
This app is hosted within IBM Cloud and PubNub so no local setup or installation is necessary. However, the services need to be created and configured on IBM Cloud and PubNub. This README file contains the instructions for setting up the services for hosting the demo app.
Clone this repository first.
Here are the services required to be configured and link to instructions to setup the services. Follow the order as mentioned below.
Run the app
The webpage offers an interface to query the discovery services document collection.
A text box with a search icon where you can type in your query.
A drop-down box which gets populated with the available collections from the Watson discovery service, when the page loads.
A drop-down with choice of language for answers. The choices are English, German, French and Arabic.
A text area to show answers received from Watson Discovery service.
After loading the webpage, Collection Name drop-down box gets populated with the collection created earlier while configuring Discovery services.
Type in your query in the search box and the text area shows the answers. You can try different languages and different questions related to camera. The file sampleQuestions.txt lists a few relevant questions you can try out.
Here are a few screenshots.
Have fun developing with Watson !