Nakala Analytics Ltd - Blog Nakala Analytics is the most valuable data analytics, data science, ai and big data solution provider located in Kenya. We build data visualization, data engineering, data mining & machine learning systems to bring creativity and innovation in the management of a business. We envision a world where everyone feels the true impact of data in their day-to-day lives. https://nakala-analytics.co.ke/blog-list/ai-chatbot 2025-09-11T03:47:18+03:00 Nakala Analytics info@nakala-analytics.co.ke Joomla! - Open Source Content Management Developing Ai Chatbots 2019-11-12T07:27:36+03:00 2019-11-12T07:27:36+03:00 https://nakala-analytics.co.ke/blog-list/ai-chatbot/developing-ai-chatbots Nakala Analytics info@nakala-analytics.co.ke <p><img src="https://nakala-analytics.co.ke/images/2019/11/12/Ai Chatbots_thumbnail.png" /></p><p><span style="font-size: 18pt;"><strong>What is a chatbot?</strong></span></p> <div> <p>A Chatbot is a computer program that conducts conversations with its users through text or auditory methods. This can be done on a website or a messaging app like Slack, WhatsApp, Skype etc.</p> <p>Development of chatbots dates back to 1966 when Joseph Weizenbaum built ‘<em>Eliza</em>’ that used substitution and pattern matching to simulate conversation, where words entered by a user were paired to a list of possible responses to find a suitable output.</p> <p>Over the recent decades chatbot developers have built on this model to create more interactive chatbots. Some recently developed commercial chatbots include Alexa by Amazon, Cortana by Microsoft and Google Now by Google.</p> <p><span style="font-size: 14pt;"><strong>Models for developing Chatbots</strong></span></p> <p>The two main approaches to developing a self-learning chatbot are:</p> <ul> <li>Retrieval-based models</li> <li>Generative models.</li> </ul> <p>The Retrieval- based chatbots have a list of predefined responses from which they rank the best output based on a user’s input. The list may be created manually or based on previous conversations.</p> <p>The generative based chatbots are trained using a large number of previous conversations upon which a response is generated to the user. They don’t have a predefined list of responses. Thus, retrieval-based chatbots are based on Natural Language processing while generative models are based on deep learning (sequence to sequence neural network).</p> <p><span style="font-size: 14pt;"><strong>What are some applications of chatbots?</strong></span></p> <ul> <li>Chatbots provide better customer support since less time is used as compared to connecting a customer to a human assistant.</li> <li>Chatbots help customers find exact solutions to the problems they are querying for within a limited time.</li> <li>Chatbots help businesses process and gain useful information from a large group of clients.</li> <li>Chatbots connect clients to their finances.</li> </ul> <p><span style="font-size: 14pt;"><strong>Non-Technical challenges of Chatbots</strong></span></p> <ul> <li>Different users have different ways of typing messages. This makes it difficult for the bot to know when to reply to a users’ text.</li> <li>User language keeps on changing with time thus the need to frequently update the code in order to accommodate the newly created vocabulary.</li> <li>Human beings write messages based on their emotional status. It’s therefore difficult for a bot to determine the emotions of a user to respond appropriately.</li> </ul> <p><span style="font-size: 14pt;"><strong>Some Chatbot Frameworks in Python</strong></span></p> <p><strong>ChatterBot library in Python</strong></p> <p>ChatterBot uses machine learning algorithms to generate a variety of responses to user inputs. It allows the bot to be trained in various languages through its design. The ChatterBot receives user input from the console, API etc. The input statement is processed by the logical adapters which select the statement that closely matches the input statement and return a known response to the selected match and a confidence value based on the matching. The response with the highest confidence value from the logic adapter is returned as the response to the user input.</p> <p><strong>REFERENCES</strong></p> <ol> <li>About ChatterBot <a href="https://chatterbot.readthedocs.io/en/stable/">https://chatterbot.readthedocs.io/en/stable/</a></li> </ol> <ol start="2"> <li>How does a chatbot learn on its own? <a href="https://chatbotslife.com/https-medium-com-hellohaptik-how-does-a-chatbot-learn-on-its-own-e4e97ba946de">https://chatbotslife.com/https-medium-com-hellohaptik-how-does-a-chatbot-learn-on-its-own-e4e97ba946de</a></li> </ol> <p>Author: <i>Isaac K. Mutinda, corporate@nakala-analytics.co.ke</i></p> </div> <p><img src="https://nakala-analytics.co.ke/images/2019/11/12/Ai Chatbots_thumbnail.png" /></p><p><span style="font-size: 18pt;"><strong>What is a chatbot?</strong></span></p> <div> <p>A Chatbot is a computer program that conducts conversations with its users through text or auditory methods. This can be done on a website or a messaging app like Slack, WhatsApp, Skype etc.</p> <p>Development of chatbots dates back to 1966 when Joseph Weizenbaum built ‘<em>Eliza</em>’ that used substitution and pattern matching to simulate conversation, where words entered by a user were paired to a list of possible responses to find a suitable output.</p> <p>Over the recent decades chatbot developers have built on this model to create more interactive chatbots. Some recently developed commercial chatbots include Alexa by Amazon, Cortana by Microsoft and Google Now by Google.</p> <p><span style="font-size: 14pt;"><strong>Models for developing Chatbots</strong></span></p> <p>The two main approaches to developing a self-learning chatbot are:</p> <ul> <li>Retrieval-based models</li> <li>Generative models.</li> </ul> <p>The Retrieval- based chatbots have a list of predefined responses from which they rank the best output based on a user’s input. The list may be created manually or based on previous conversations.</p> <p>The generative based chatbots are trained using a large number of previous conversations upon which a response is generated to the user. They don’t have a predefined list of responses. Thus, retrieval-based chatbots are based on Natural Language processing while generative models are based on deep learning (sequence to sequence neural network).</p> <p><span style="font-size: 14pt;"><strong>What are some applications of chatbots?</strong></span></p> <ul> <li>Chatbots provide better customer support since less time is used as compared to connecting a customer to a human assistant.</li> <li>Chatbots help customers find exact solutions to the problems they are querying for within a limited time.</li> <li>Chatbots help businesses process and gain useful information from a large group of clients.</li> <li>Chatbots connect clients to their finances.</li> </ul> <p><span style="font-size: 14pt;"><strong>Non-Technical challenges of Chatbots</strong></span></p> <ul> <li>Different users have different ways of typing messages. This makes it difficult for the bot to know when to reply to a users’ text.</li> <li>User language keeps on changing with time thus the need to frequently update the code in order to accommodate the newly created vocabulary.</li> <li>Human beings write messages based on their emotional status. It’s therefore difficult for a bot to determine the emotions of a user to respond appropriately.</li> </ul> <p><span style="font-size: 14pt;"><strong>Some Chatbot Frameworks in Python</strong></span></p> <p><strong>ChatterBot library in Python</strong></p> <p>ChatterBot uses machine learning algorithms to generate a variety of responses to user inputs. It allows the bot to be trained in various languages through its design. The ChatterBot receives user input from the console, API etc. The input statement is processed by the logical adapters which select the statement that closely matches the input statement and return a known response to the selected match and a confidence value based on the matching. The response with the highest confidence value from the logic adapter is returned as the response to the user input.</p> <p><strong>REFERENCES</strong></p> <ol> <li>About ChatterBot <a href="https://chatterbot.readthedocs.io/en/stable/">https://chatterbot.readthedocs.io/en/stable/</a></li> </ol> <ol start="2"> <li>How does a chatbot learn on its own? <a href="https://chatbotslife.com/https-medium-com-hellohaptik-how-does-a-chatbot-learn-on-its-own-e4e97ba946de">https://chatbotslife.com/https-medium-com-hellohaptik-how-does-a-chatbot-learn-on-its-own-e4e97ba946de</a></li> </ol> <p>Author: <i>Isaac K. Mutinda, corporate@nakala-analytics.co.ke</i></p> </div>