Tag Archives: checking

#431058 How to Make Your First Chatbot With the ...

You’re probably wondering what Game of Thrones has to do with chatbots and artificial intelligence. Before I explain this weird connection, I need to warn you that this article may contain some serious spoilers. Continue with your reading only if you are a passionate GoT follower, who watches new episodes immediately after they come out.
Why are chatbots so important anyway?
According to the study “When Will AI Exceed Human Performance?,” researchers believe there is a 50% chance artificial intelligence could take over all human jobs by around the year 2060. This technology has already replaced dozens of customer service and sales positions and helped businesses make substantial savings.
Apart from the obvious business advantages, chatbot creation can be fun. You can create an artificial personality with a strong attitude and a unique set of traits and flaws. It’s like creating a new character for your favorite TV show. That’s why I decided to explain the most important elements of the chatbot creation process by using the TV characters we all know and love (or hate).
Why Game of Thrones?
Game of Thrones is the most popular TV show in the world. More than 10 million viewers watched the seventh season premiere, and you have probably seen internet users fanatically discussing the series’ characters, storyline, and possible endings.
Apart from writing about chatbots, I’m also a GoT fanatic, and I will base this chatbot on one of the characters from my favorite series. But before you find out the name of my bot, you should read a few lines about incredible free tools that allow us to build chatbots without coding.
Are chatbots expensive?
Today, you can create a chatbot even if you don’t know how to code. Most chatbot building platforms offer at least one free plan that allows you to use basic functionalities, create your bot, deploy it to Facebook Messenger, and analyze its performance. Free plans usually allow your bot to talk to a limited number of users.
Why should you personalize your bot?
Every platform will ask you to write a bot’s name before you start designing conversations. You will also be able to add the bot’s photograph and bio. Personalizing your bot is the only way to ensure that you will stick to the same personality and storyline throughout the building process. Users often see chatbots as people, and by giving your bot an identity, you will make sure that it doesn’t sound like it has multiple personality disorder.
I think connecting my chatbot with a GoT character will help readers understand the process of chatbot creation.
And the name of our GoT chatbot is…
…Cersei. She is mean, pragmatic, and fearless and she would do anything to stay on the Iron Throne. Many people would rather hang out with Daenerys or Jon Snow. These characters are honest, noble and good-hearted, which means their actions are often predictable.
Cersei, on the other hand, is the queen of intrigues. As the meanest and the most vengeful character in the series, she has an evil plan for everybody who steps on her toes. While viewers can easily guess where Jon and Daenerys stand, there are dozens of questions they would like to ask Cersei. But before we start talking to our bot, we need to build her personality by using the most basic elements of chatbot interaction.
Choosing the bot’s name on Botsify.
Welcome / Greeting Message
The welcome message is the greeting Cersei says to every commoner who clicks on the ‘start conversation’ button. She is not a welcoming person (ask Sansa), except if you are a banker from Braavos. Her introductory message may sound something like this:
“Dear {{user_full_name}}, My name is Cersei of the House Lannister, the First of Her Name, Queen of the Andals and the First Men, Protector of the Seven Kingdoms. You can ask me questions, and I will answer them. If the question is not worth answering, I will redirect you to Ser Gregor Clegane, who will give you a step-by-step course on how to talk to the Queen of Westeros.”
Creating the welcome message on Chatfuel
Default Message / Answer
In the bot game, users, bots, and their creators often need to learn from failed attempts and mistakes. The default message is the text Cersei will send whenever you ask her a question she doesn’t understand. Knowing Cersei, it would sound something like this:
“Ser Gregor, please escort {{user_full_name}} to the dungeon.”
Creating default message on Botsify
Menu
To avoid calling out the Mountain every time someone asks her a question, Cersei might give you a few (safe) options to choose. The best way to do this is by using a menu function. We can classify the questions people want to ask Cersei in several different categories:

Iron Throne
Relationship with Jaime — OK, this isn’t a “safe option,” get ready to get close and personal with Sir Gregor Clegane.
War plans
Euron Greyjoy

After users choose a menu item, Cersei can give them a default response on the topic or set up a plot that will make their lives miserable. Knowing Cersei, she will probably go for the second option.
Adding chatbot menu on Botsify
Stories / Blocks
This feature allows us to build a longer Cersei-to-user interaction. The structure of stories and blocks is different on every chatbot platform, but most of them use keywords and phrases for finding out the user’s intention.

Keywords — where the bot recognizes a certain keyword within the user’s reply. Users who have chosen the ‘war plans’ option might ask Cersei how is she planning to defeat Daenerys’s dragons. We can add ‘dragon’ and ‘dragons’ as keywords, and connect them with an answer that will sound something like this:

“Dragons are not invulnerable as you may think. Maester Qyburn is developing a weapon that will bring them down for good!”
Adding keywords on Chatfuel
People may also ask her about White Walkers. Do you plan to join Daenerys and Jon Snow in a fight against White Walkers? After we add ‘White Walker’ and ‘White Walkers’ on the keyword list, Cersei will answer:
“White Walkers? Do you think the Queen of Westeros has enough free time to think about creatures from fairy tales and legends?”
Adding Keywords on Botsify

Phrases — are more complex syntaxes that the bot can be trained to recognize. Many people would like to ask Cersei if she’s going to marry Euron Greyjoy after the war ends. We can add ‘Euron’ as a keyword, but then we won’t be sure what answer the user is expecting. Instead, we can use the phrase ‘(Will you) marry Euron Greyjoy (after the war?)’. Just to be sure, we should also add a few alternative phrases like ‘(Do you plan on) marrying Euron Greyjoy (after the war),’ ‘(Will you) end up with Euron Greyjoy (after the war?)’, ‘(Will) Euron Greyjoy be the new King?’ etc. Cersei would probably answer this inquiry in her style:

“Of course not, Euron is a useful idiot. I will use his fleet and send him back to the Iron Islands, where he belongs.”
Adding phrases on Botsify
Forms
We have already asked Cersei several questions, and now she would like to ask us something. She can do so by using the form/user input feature. Most tools allow us to add a question and the criteria for checking the users’ answer. If the user provides us the answer that is compliant to the predefined form (like email address, phone number, or a ZIP code), the bot will identify and extract the answer. If the answer doesn’t fit into the predefined criteria, the bot will notify the user and ask him/her to try again.
If Cersei would ask you a question, she would probably want to know your address so she could send her guards to fill your basement with barrels of wildfire.
Creating forms on Botsify
Templates
If you have problems building your first chatbot, templates can help you create the basic conversation structure. Unfortunately, not all platforms offer this feature for free. Snatchbot currently has the most comprehensive list of free templates. There you can choose a pre-built layout. The template selection ranges from simple FAQ bots to ones created for a specific industry, like banking, airline, healthcare, or e-commerce.
Choosing templates on Snatchbot
Plugins
Most tools also provide plugins that can be used for making the conversations more meaningful. These plugins allow Cersei to send images, audio and video files. She can unleash her creativity and make you suffer by sending you her favorite GoT execution videos.

With the help of integrations, Cersei can talk to you on Facebook Messenger, Telegram, WeChat, Slack, and many other communication apps. She can also sell her fan gear and ask you for donations by integrating in-bot payments from PayPal accounts. Her sales pitch will probably sound something like this:
“Gold wins wars! Would you rather invest your funds in a member of a respected family, who always pays her debts, or in the chaotic war endeavor of a crazy revolutionary, whose strength lies in three flying lizards? If your pockets are full of gold, you are already on my side. Now you can complete your checkout on PayPal.”
Chatbot building is now easier than ever, and even small businesses are starting to use the incredible benefits of artificial intelligence. If you still don’t believe that chatbots can replace customer service representatives, I suggest you try to develop a bot based on your favorite TV show, movie or book character and talk with him/her for a while. This way, you will be able to understand the concept that stands behind this amazing technology and use it to improve your business.
Now I’m off to talk to Cersei. Maybe she will feed me some Season 8 spoilers.
This article was originally published by Chatbots Magazine. Read the original post here.
Image credits for screenshots in post: Branislav Srdanovic
Banner stock media provided by new_vision_studio / Pond5 Continue reading

Posted in Human Robots | Tagged , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , | Leave a comment

#427791 Robot Operating System (ROS) continues ...

Today by far the most commonly used robotics software is ROS, which stands for Robot Operating System. This is an open source software, and the most number of developers and robotics users are involved with this program with an ever increasing rate. It contains set of libraries, algorithms, developer tools and drivers for developing robotics projects. The first release of ROS was in 2010, and as of end of 2016, ROS has reached its 10th official release, which is called “ROS Kinetic Kame”. There are translations to 11 languages other than English, which are: German, Spanish, French, Italian, Japanese, Turkish, Korean, Portuguese, Russian, Thai and Chinese. It currently has 2000+ software libraries, which keeps increasing every year.
Many robots use ROS now, including but not limited to hobby robots, drones, educational or advanced humanoid robots, domestic robots including cleaning robot vacuums, cooking robots or telepresence robots and more, robot arms, farming robots, industrial robots, even Robonaut of NASA in space or the four legged military robots in development. A list of robots which use ROS can be found here: http://wiki.ros.org/Robots.
We were checking the Alexa.Com ranking of ROS since few years, in order to track the increase in usage, and we believe it is time to share it now, as we have enough data. The numbers on the left are dates we looked and the numbers on the right indicate the ranking of Ros.Org website from top, among all websites in the world:
May 2011: 189,000 th in the world, from top, among all other websites
April 2012: 187,900 th
January 2014: 107,821
May 2014: 112,236
September 2014: 83,875 (7219 in Canada, the country where it is most accessed)
January 2015: 83,556 (4,258 in Canada)
February 2015 : 75,680 (33185 in USA)
April 2015: 59,200 (31,334 in USA)
August 2015: 65,754 (50,132 in USA)
September 2016: 30,201 (China 5073)
This chart shows the increasing rank of ros.org among other websites in the world, which is a good indicator of its growth. The numbers on the left represent the site’s ranking from the top, among all other sites in the world. Chart Copyright: Robokingdom LLC.

As can be seen here, in May 2011, when we first checked this ranking, ROS.org was at 189,000 th place in the world from the top among all other websites in terms of unique visitors that visit the site, and it almost continuously increased its ranking. As of September 2016, it is now the 30,201st most reached website in the world, with mostly being accessed in China (5073 from top in China). Let’s not forget that even if it’s position remained the same, let alone going up, it would still mean the traffic of the site was going up, as every year there are more websites in the world which means the same ranking means better place and more traffic. The ranking of 30,201 means ROS.org is a very high traffic website in the world right now, being accessed probably by at least hundreds of thousands of people every day, with no indication of slowing down its rise yet.
The most important result of all of this, is that the use of robots is increasing, both in terms of number and type (when you look at the type of robots that use ros, as it also increases in variety all the time).
From Alexa, we were also able to see, from publicly available information, that the percentage of reach among countries for ROS.org is as follows:
China 47.5%
USA 11.5%
Japan 8.7%
South Korea 3.5%
Germany 3.4%
This also shows us that in China, a lot of things are going on for robotics development right now, as it gets most of its traffic from there with 47.5%. USA then follows with 11.5% and Japan is third with 8.7%.
With ROS, any type of sensors can be controlled, including 1d/2d range sensors, 3d range finders and cameras, audio/speech recognition sensors, cameras, environmental sensors, force/torque/touch sensors, motion capture, pose estimation, power supply, RFID, and sensor interfaces.
In ros.org site, in addition to all packages, there are also extensive tutorials and a discussion board that one can ask questions and share knowledge.
ROS also has an industrial section, the version of software modified for industrial applications. It is called ROS industrial, and can be reached at: http://rosindustrial.org/. Although we see domestic robots with new abilities or advanced research projects that aim to develop capabilities of robotics every year, according to the results of a study that is shown on http://rosindustrial.org/the-challenge/ website, the abilities of industrial robots are not progressing and the abilities are restricted to welding, material handling, dispensing, coating (although we know that they do additional tasks such as packaging, inspection, labeling etc…). ROS Industrial aims to solve this challenge by providing a common skeleton to all developers, with its extensive and stronger software architecture, than other individual robotics programs.
The post Robot Operating System (ROS) continues its growth appeared first on Roboticmagazine. Continue reading

Posted in Human Robots | Tagged , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , | Leave a comment