Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

How Much Time and Money Go Into Developing a Messenger Chatbot?

DZone's Guide to

How Much Time and Money Go Into Developing a Messenger Chatbot?

There are no certain rules regarding how much time goes into developing a chatbot, but this is a pretty good analysis.

· AI Zone ·
Free Resource

Did you know you can create a Messenger chatbot without writing a single line of code with Chatfuel in a couple of hours? I, myself, created one to bring leads to my Facebook Page in less than an hour.

There are no certain rules regarding how much time goes into developing a chatbot. And as with most pieces of software, apps, and programs, it all comes down to feature sets, structure, and value.

However, unlike conventional software and mobile applications, chatbots do not need chic UI design, provision for numerous mobile platforms, extended development cycles with the app store reviews, and exclusive acquisition strategies to draw users into apps.

But they still require conventional software modules like backends to be built around them. The UI or frontend of a chatbot matches the platform it is targeted on — Messenger, Slack, Telegram, etc. — which reduces the development time considerably. We live in the world of multi-platform development with each platform having its unique design language and, thus, UI. Did you compare WhatsApp on iOS and Android lately?

Implementation of a Chatbot

Backend Development

A chatbot needs a backend to manage an incoming stream of messages from multi-channels and parse them with NLP services such as Watson Conversation, Facebook's Wit.ai, Api.ai, or LUIS. The backend enforces business logic, enables integrations with existing systems, makes the bot intelligence, and leads the conversation with the user.

Most chatbot platforms support both .NET and Node.js server-side SDKs, so you can securely choose the programming language of your choice.

The total time to set up a server and deploy a backend with AWS, Node.js and Microsoft Bot Framework takes around four hours.

Channels

Once the backend is in place, you must create modules to integrate with each channel. Every channel integration is unique. However, they, in general, follow the exercise of adding an endpoint to send and receive chat messages that depend on access tokens authorization. Further, you must bring some channel-specific UI by integrating quick reply buttons under chat bubbles, or visual cards relevant to the conversation going on.

For instance, Facebook Messenger allows conversation rich UI using JavaScript, HTML, and CSS by means of full WebView.

Natural Language Processing

An integral part of a chatbot development is the integration with natural language processing (NLP) services. Luckily, you don't have to write your own NLP algorithm. NLP empowers bots to strike natural conversation with a human and is available as APIs from Google, Microsoft, IBM, and Facebook.

Since your bot is going to receive chat messages in everyday language from a person, it needs integration with one of the Natural Language Processing (NLP) services to extract intents and entities out of the message in plain language.

Integrating an NLP service with the help of one of the above APIs is straightforward. However, training the NLP intents and entities takes time and considerable coding. You will be required to map entities to specific objects that are present in an existing system such as Products, names, and Identifiers etc.

To authenticate user input received, you must put some business logic authentication rules to validate the received data. It can range from simple validation, such as a phone number must be all numbers and an email address must be in xxx@xxx format. For better validation, you can call a web service to validate a pin code or city name against a public database. Validation will require many hours of coding in Node.js and .NET

Conversational Intelligence

This is where chatbot development gets complicated and can take more 200 hours of development and coding. Creating natural replies to give way to intelligent, meaningful conversation based on the NLP intents and entities is an endless journey. You want to make your chatbots as natural as a human, which is impossible. So, you keep improving it.

Moreover, each conversation must be tailored to a specialized algorithm and features minimalistic navigation so that it is easy for a user to start over. While you can use simple if-else trees, some state-of-the-art deep learning algorithms are what customers expect these days.

Integration With Existing Systems and Services

Integrations

Chatbots aren't all about engaging in endless gossip with random dudes (although they are getting pretty good in that area). Every chatbot serves a purpose and most of the purposes are commercial in nature such as ordering items, buying stuff, booking flights, etc. Your chatbot must have integration with the services you think your customers will ask for.

The integration will include business logic authentication and instructions, perseverance of data, and any other processes that might be essential as part of the business operation. A backend with good service layer is the cause of saving some development time here.

Administration UI

Control Panel (Optional)

Once your chatbot is out in the market and your users are all over it, you might need a backend to track chatbot conversation history, users, error logs, etc. You can also add a simple analytics metrics to calculate your bot's performance. This is going to take a lot of clerical work including long code blocks in Node.js + Angular 2 and .NET. Moreover, setting up the database can go easily a week.

Time That Goes Into Developing a Chatbot

Let's calculate the time and cost of an intelligent chatbot that uses natural language understanding (NLU) services, is integrated with an existing set of systems, and will be published on Facebook Messenger to develop.

As mentioned above, there are three stages in chatbot development.

If you are outsourcing to a firm that works eight hours a day, five days a week, or 40 hours/week, it will take 14 weeks or around three and a half months.

Calculating the Cost of Developing a Chatbot

A Node.js developer easily charges $50/hour. On the other hand, an AI developer with proficiency in NLP won't cost less than $100/hour. Oracle developers also cost around $40/hour.

Topics:
ai ,chatbot ,bot development

Published at DZone with permission of

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}