Friday, November 20, 2020

Detecting a person's gender in an image using deep learning and the Bot Libre analytics API

Bot Libre Analytic lets you easily train your own deep learning neural network without any programming. With Bot Libre you can create your own deep learning neural network for image recognition, audio and speech recognition, object detection, games, prediction, data analysis, and more. To create your own analytic see How to create your own deep learning neural network for image recognition

Bot Libre also has many pretrained analytics trained by us and our users that you can use through the Bot Libre web API from your own web or mobile application. To browse Bot Libre's analytics go here.

Here is the Gender Detector.

You can access it from the Bot Libre website, or you can access it analytic through the Bot Libre web API, or using the Bot Libre JavaScript SDK.

Here is an HTML example of using the Bot Libre JavaScript SDK:

<form method="post" name="fileinfo" enctype="multipart/form-data">
<span>Upload File. </span>
<input type="file" name="file" onchange="uploadImage(this);" accept="image/*">
<div id="test-analytic-image">
<div id="test-object-image">

<script type="text/javascript" src=""></script>
SDK.applicationId = "12345"; // Enter your user's application id from your user page.
var sdk = new SDKConnection();
var analytic = new AnalyticConfig(); = "35935506";

function uploadImage(input) {
var divTestAnalytic = document.getElementById("test-analytic-image");
var divTestObject = document.getElementById("test-object-image");
divTestAnalytic.innerHTML = "";
divTestObject.innerHTML = "";
var files= input.files;
var form = document.getElementById('upload-test-image');
var newDiv = document.createElement("div"); = "5px 10px 5px 5px";
var newImage = document.createElement("img");
newImage.src = URL.createObjectURL(files[0]);
var name = files[0].name;
var type = files[0].type;
newImage.setAttribute("width", "30%");
newImage.setAttribute("height", "30%");
var result = document.createElement("ul"); = "list-ul"; = "inline-block"; = "top";
sdk.sendAnalyticImage(analytic, function(response) {
result.innerHTML =
"<li><b>File Name: </b>" + name + "</li>"+
"<li><b>Image Type: </b>" + type + "</li><hr>";
for (var i = 0; i < response.labels.length; i++) {
if (i > 0) {
result.innerHTML = result.innerHTML +
"<li style='font-size: 14px;'><b>Label: </b>" + response.labels[i] + "</li>"+
"<li style='font-size: 14px;'><b>Confidence : </b>" + response.confidences[i] + "%"+ "</li>";
} else {
result.innerHTML = result.innerHTML +
"<li style='font-size: 16px;'><b>Label: </b>" + response.labels[i] + "</li>"+
"<li style='font-size: 16px;'><b>Confidence : </b>" + response.confidences[i] + "%"+ "</li><hr>";
}, files[0], form, 600);


To use the web API call the end point using a POST HTTP request,

Pass an XML entity for the analytic,

<analytic application='12345' id='35935506'/>

and a multipart form data for the image.



If you would like help using this analytic, or developing your own deep learning solution for your own application contact


Friday, November 6, 2020

How to create an Auto Repair chatbot

An interesting use of chatbots is to help provide quotations for car repairs and services!

1. Creating an Auto Repair Chatbot

Follow this simple tutorial to learn how to create a chatbot.

To set up an Auto Repair chatbot, select auto_repair_template as your bot template.

2. Editing the Chatbot's Responses

To view and edit the chatbot's responses, go to the Training & Chat Logs page.

Then, go to the "Review all responses" page.

Here you will be able to view and edit the bot's responses!

3. Setting up emails

The chatbot can send emails containing the user's info to make it easy for mechanics to provide a quotation for a car service/repair.

First, follow this easy tutorial to connect this chatbot with your email address.

Then, enter your email address into the "Think" command of the final response, as shown:

Now, you will receive an email when a user wants a quotation!


Here is an example of an Auto Repair chatbot on a website