Monday, May 21, 2018

How to connect IBM Watson to Facebook, Twitter, Telegram, Skype, Kik, WeChat, web, and mobile using a Bot Libre proxy bot

IBM Watson is a brand that includes a set of products and services, made famous by its Jeopardy prowess. Watson includes a chatbot platform and conversational API.

You can access Watson's API from your own web server through any programming language. Bot Libre lets you create a "proxy" bot that forwards request to your Watson bot. This lets you leverage Bot Libre's many integrated services including integration with social media platforms such as Facebook, Twitter, Telegram, Skype, Kik, WeChat, and integration with web and mobile speech and 3D animated avatars.

To get started with Watson you can create an IBM Bluemix account here. Once you have created and trained your bot, you can access its web API credentials to connect it with Bot Libre.

This will give you the bot's web API URL, and the API user and password. Copy these and return to Bot Libre.

On Bot Libre create a new bot, and select the "watson_proxy_template" template. This will give you a new chatbot that has a single Self script the forwards all requests to the Watson API.

  • Click on your bot's "Admin Console" (gear button).
  • Click on the "Scripts" menu button.
  • Click on the "Watson" script and click the Edit button.
  • Find the below line of code in the script.
  • Replace the postJSONAuth URL with your Workspace URL from the Watson deploy console.
  • Replace the postJSONAuth user (2nd parameter) with your "Service Credentials" "Username".
  • Replace the postJSONAuth password (3nd parameter) with your "Service Credentials" "Password".
var json = Http.postJSONAuth("https://gateway.watsonplatform.net/conversation/api/v1/workspaces/616b5f69-dd49-4206-9c55-75f25b57ba18/message?version=2017-04-21", "0543af58-910d-4666-85be-7a8550279404", "txgVzPxkLup4", message);

Now your Bot Libre bot should be connect to your Watson bot. You can test it by clicking on your bot's Chat button. You can now connect your bot to social media, web, mobile, avatars and speech. You can also enhance your Watson bot by adding responses or scripts to your bot in Bot Libre to take advantage of Bot Libre powerful NLP, AI, and scripting features.

Deep Learning as a Service (DLAAS)

Bot Libre now supports creating and hosting Deep Learning and Analytic services.

Deep Learning and Analytic services are different than bots, as they perform a specific analysis function. They do not chat, nor interact with users, but use artificial intelligence and deep learning to perform analysis such as classifying images, recognizing speech or faces, performing NLP functions, playing games, and analyzing data.

Bot Libre lets you host your deep learning analytic on the web, and access it through the Bot Libre web API. Bot Libre provides an open analytics repository that lets you use analytics that we or other users have defined, or share your own analytics. You can also create your own private analytics, or only share your analytics with specific users.

To create an analytic you need to create and train a model using a deep learning framework such as Tensorflow or Bot Libre Analytics.

For example to train a model for image classification you can use the Inception model and retrain it for classifying your own image set. There are a lot of resources, models, and data available on the web such as the Poets tutorial for image classification.

Once you have trained your model you can upload the Tensorflow .pb and labels files in your analytic's Admin Console.



If you are interested in using deep learning for your business or project, we can also develop a deep learning neural network for you through our development services. If you are interested in knowing how artificial intelligence and deep learning can be used in your business or project, we can help through our AI consulting services. Contact sales@botlibre.biz

Announcing Bot Libre 6.5 - Deep learning, conversation flows, new training editor, synonyms, sentiment

We have released Bot Libre 6.5. Bot Libre 6.5 includes many enhancements including:

  • Deep Learning analytics as a service
  • New Training & Chat Logs browser and editor
  • Response next, and nested conversation flows
  • Exclusive topics
  • New word browser and editor
  • Word synonyms
  • Word and phrase sentiment
  • Enhanced WeChat integration

Deep Learning & Analytics

You can now create deep learning analytics for using artificial intelligence to classify images, or analyze data. You can upload Tensorflow network files and access them through Bot Libre's web interface and API.

Browse our open analytics repository for analytics that can classify images and perform other functions.

If you are interested in using deep learning for your business or project, we can also develop your neural network and analytics for you through our development services. Contact sales@botlibre.biz

Training & Chat Logs

Our Training & Chat Logs browser and editor have been redesigned and enhanced. The browser and editor support new options and properties.

Response Next, and Nested Conversation Flows

You can now easily define nested conversations using a response "next". Next lets you easily define isolated nested conversations without having to use scripting.

Exclusive Topics

You can now define a topic as "exclusive". An exclusive topic provides an isolated conversation. When you set an exclusive topic on a response or conversation only response that have that topic will be considered.

Word Browser

You can now view all words your bot knows. You can edit the words sentiment, synonyms, and define if the word is a keyword or topic.

Synonyms

Synonyms let you define a word's synonyms so the bot will consider all of a words synonyms when matching responses. Synonyms are global, so can be defined once, and apply to all of the bot's responses. Synonyms can be automatically loaded from Wiktionary as the bot learns new words.

Sentiment

You can now define the sentiment for a word or phrase. Sentiment lets the bot determine the user's sentiment or feeling about their responses and conversation. The user sentiment can be access from Self, and it tracked and can be visualize in the bot's Analytics.

WeChat

Bots connected to WeChat now support speech recognition for voice messages. Bots can now also include links, images, and menus in their responses and interface.

The 6.5 release also included a new user message interface, new response list export options, enhanced user verification, enhanced NLP, UI improvements, and several minor enhancements and fixes.

Chatbots for First Aid Assistance

Chatbots are being increasingly used in the health and medical industry.

The app "Erste Hilfe - dein sprechender Assistent" is a German language chatbot developed by a client using the Bot Libre mobile platform.

The app is featured in this news broadcast,

The app is available on Google Play,