Chatbot Fundamentals An Interactive Guide to Writing Bots in Python

313 810 2018 adwords affiliate AUTO best civilian click corps CPC CPM cyber design detroit flint funnel funnels google hat IMPRESSION Joomla local marketing MEDIA mic3 Michigan POST security seo SOCIAL trust UI UX web webdesign white WORDPRESS

Chatbot Fundamentals for Virtual Agents SEO in Python 2018

An interactive guide to writing bots in Python

https://apps.worldwritable.com/tutorials/chatbot/

Part 4 of Natural Language Processing for Programmers
By Liza Daly
Stylized graphic of a man in a tuxedo whispering to a woman in dress

“It is said that to explain is to explain away. This maxim is nowhere so well fulfilled as in the area of computer programming, especially in what is called heuristic programming and artificial intelligence…Once a particular program is unmasked, once its inner workings are explained in language sufficiently plain to induce understanding, its magic crumbles away; it stands revealed as a mere collection of procedures, each quite comprehensible. The observer says to himself, I could have written that.”

Joseph Weizenbaum, ELIZA (1966)

In this brief tutorial I’ll walk you through using a popular Python language library to construct a simple chatbot that evaluates and responds to user input. It won’t fool your friends, and for a production system you’ll want to consider one of the existing bot platforms or frameworks, but these examples should help you think through the design and engineering challenges of a conversational UI.

About this tutorial

The source code presented here is interactive. You are strongly encouraged to modify the Python code —right in your browser—and experiment with the outcomes. (You may get a lot of error messages, but I promise you can’t permanently break anything!) See Technical details below for more information on how the live code is implemented.

Related posts