Since Facebook introduced chatbots to its messaging platform, there’s been widespread enthusiasm for bots that schedule flights, book hotel rooms or order Ubers for you — this in the same app that you use to chat with your friends.

Man communicating with a chatbot

Chatbots and AI have been around for a while (look at what China’s leading messaging app WeChat has accomplished) but the fact that Facebook chose to launch this feature recently could mean that this technology is finally mature enough for mainstream adoption, at least in the Western world.

My chance to create a chatbot

With things changing so fast in the tech scene and designers struggling to stay informed on the latest trends, I was delighted to see a hackathon for chatbots on Eventbrite. What better way to learn about chatbots and AI than to mingle with developers and build one? I immediately signed up.

In this article, I’d like to focus on the design aspects of chatbots.

Chatbot 101

If you haven’t played with a chatbot before, check out the ones on Product Hunt. They range from quirky bots that impersonate Donald Trump to more functional bots that diagnose medical symptoms.

To truly appreciate chatbots, you need to understand what makes them so powerful. Well, yes, they’re intelligent “artificially”, but what does that mean? Specifically, they have the ability to understand human language and context, and respond accordingly, which leads us to natural language processing.

Natural Language Processing (NLP)

Chatbots understand what we say by passing our text through an NLP engine, such as IBM Watson, which uses its gargantuan database to deduce the meaning of a sentence.

Human-shaped digital heads talking to each other

The point of NLP is not to interpret sentences word-for-word but to extract the intent behind the message. For example, someone asking, “Is it raining in London?” could have the same intent as “What is the weather like in London?” Treating both questions with the same intent, a bot would respond to the two questions with London’s weather conditions.

Keeping context is the bot’s ability to remember and combine intents across several sentences in a conversation. Let’s say the bot in the last example responded with “It’s sunny with a couple of light showers during the day.” If then you ask, “How many degrees?” the bot would assume the context of weather and output today’s temperature.

Introducing the Don’t-Worry-Mum bot

Our team decided to create a bot that would take care of mum’s nagging messages and keep her at bay — worry-free. Two developers would build the framework for the bot. Another designer and I would determine how it interacts with the world.

We used Facebook’s to design and train our chatbot. A good alternative is Google’s, which we later found to have a more intuitive interface.

Designing the BOT

To ensure our bot was nag-proof, we considered interactions between a mother and her son, boiling them down to 12 major scenarios which you can see listed on the left panel as Stories. Stories

The next step was to generate questions and answers for each of the 12 Stories. Questions were marked with an Intent and paired with a response from the bot. Remember that NLP does not interpret sentences word-for-word, so any questions with a similar meaning would also trigger the same response.

Communication with the BOT
Communication with the BOT

With that said, we were done! Well, not quite…

Training the BOT

The bot we set up was still an infant and wouldn’t be able to fend off requests from all the pesky mums out there. To turn it into a streetsmart, gangster teenage boy, we’d have to train it through machine learning. That meant throwing everything we had at it!

We decided to let our friends (and their mums!) test our bot, so we set up a nifty website containing a text input.Apologies: I’d post the link here, but unfortunately our developer had to take the site down to save resources.]

Communication with the BOT

That night, we tested our bot with more than 30 subjects. The results were logged in, and we reviewed them the next morning.

Whenever the bot was unsure of what to say (its confidence level drops below a certain threshold), it provided the default response and logged the uncomprehended message in the Inbox.

Training the bot was simply a matter of assigning Intents to the uncomprehended messages, a process calls validation. Next time when the bots encounter a similar message, it will give the correct response. As you can see, machine learning is a matter of trial and error.

Communication with the BOT

Just when you thought you’d covered all the use cases, new ones pop up from nowhere, and you’ll most likely have to create new categories for Stories and Intents. Stay positive — the more categories you cover, the more intelligent your bot will be.

Bots make mistakes too

We had the most fun watching people test our chatbot, which surprised them with some of the funniest mumbo jumbos. Nevertheless, most of our subjects were generous and persistent with befriending our nerdy comrade. (Read the following example from the bottom up.)

Communication with the BOT

Alas, it seems that our bot was still not very good at predicting mum’s reactions. Can you honestly expect an infant to grow up overnight?!

Chatbots are challenging to get right

Overall, chatbots are fun to build but difficult to get right. The conversational interface inherently lacks constraints, making it difficult to predict user behavior. There’s also nothing stopping users from randomly abusing the bot.

Communication with the BOT

One way to work around this is by limiting the options given to the user, through predefined menus and buttons. This approach provides the flexibility of freestyle text while keeping the conversation within bounds.

Reasons to learn about chatbots

Whether you believe in it or not, the chatbot hype is getting businesses’ attention. It shows brand forwardness and gets rid of human redundancies.

In addition, building chatbots is a quick way to learn about AI, a trend that is only getting stronger and more impactful. Google CEO Sundar Pichai wrote in a letter to shareholders of parent Alphabet Inc. last April, “We will move from mobile first to an AI first world”.

The conversational interface of chatbots is the most natural and reliable way we use to with interact with our friends. E-commerce sites like Amazon are favoring chat-based communication with customers over phone or email. As a UX designer, you’ll get far more insights from chat than other sources of data.


Chatbots have just raced off the starting blocks, and it will be a few more years before we know if they’re here to stay. As we leapfrog into the era of AI, we’ll probably see an increase in human-assisted chatbots with a gradual shift towards full automation.

Even so, now is a good time to learn about chatbots and AI. There are tons of examples out there for inspiration. Your best bet are bots on Messenger, Telegram, Slack, Product Hunt and WeChat.



Thanks for writing about bots - Our belief is bots are going to be the defacto interaction channel on the defacto personal device, the smartphone. The technology and potential is still in its infancy with the immediate solves being in interaction design, business cases to apply, removing interaction constraints and acceptance. The big win is that the technology has inherent automation, machine learning and 24 x 7 intelligent availability. We at Engati have started the journey and have been rated one of the best open platforms for building bots by Techworld. Do visit us and provide us with your valuable feedback as we strive for more mainstream acceptance of this technology of the future.

I didn't even think that it could be so simple. Thank you so much, I will definitely try it!

Just for the fun of our conversation... YOu mentioned AI. Well, It is so trendy to use the expression AI. I know a big company that when you tell the bot your name (as a client) tha bot answers "Hi Scott, how are you?"  You see? the machine has leared your name...  They advertise their bot as AI and machine learning system. :-)

Where is that "Mum" screenshot taken from? I would like to try it.

Hi Charles,

Unfortunately our developer had to kill the bot... If you want to try out some chatbots, a good place to look is Facebook Messenger!

Chatbox is the future I guess. We will upgrade AI more and more. Great article.

Thanks, EEtheridge81.

I would be more sceptical when someone says "chatbots are the future". The chat interface definitely has its use, but it doesn't necessarily mean replacing everthing else :)

A very nice article. You call it UX - I call it script writing. On TV and movies is a common knowledge - Not anyone can write a scenario, or dialog. It's a profession. You need to be talented and experienced. As long as this field is dominated by UX gus, marketing guys, enterpanuere guys, and not professional script and content writers, the bots field will stay stupid as it is like today. 

Gal friedman -

Hi Gal,

You make a great point. Ultimately, chatbots are just utilizing another kind of interface; what makes them useful is the design of content and langugage. In fact, UX has gained hype for a similar reason you mentioned: people got sick of apps designed by ignorant developers and so proper design thinking backed up by research came in.

There has been a recent surge in demand for "UX Writers". How they define such a role is not clear, but mostly it is about what you say – scirptwriting.

A good chatbot should have both a compelling script and a logical workflow. The most successful chatbots would most likely be created by a team of mixed professions.


I'm glad we agree on that. I must say today's reality helps me big time. Just this week I was in a business meeting in which I was demonstrating My demo medical bot. I was showing them examples of how my bot handles some complicated cases in NLP and scenarios. It was very helpful for me to first show them some other existing bots of big and rich famous companies, to show the how stupid the existing bot are. When I demonstrated mine, they were all applauding :-) It is incomprehensible how smart and intelligent managers approve so poor products like these. 


I guess the understanding of chatbots and AI is still very low. For example, many people assume chatbots automatically means AI.

Congrats on the buy-in though. It's now up to you to dictate where the product is heading!