Skip to main content
HomePythonBuilding Chatbots in Python

Building Chatbots in Python

Learn the fundamentals of how to build conversational bots using rule-based systems as well as machine learning.

Start Course for Free
4 hours15 videos49 exercises
69,915 learnersTrophyStatement of Accomplishment

Create Your Free Account

GoogleLinkedInFacebook

or

By continuing, you accept our Terms of Use, our Privacy Policy and that your data is stored in the USA.
GroupTraining 2 or more people?Try DataCamp For Business

Loved by learners at thousands of companies


Course Description

Messaging and voice-controlled devices are the next big platforms, and conversational computing has a big role to play in creating engaging augmented and virtual reality experiences. This course will get you started on the path toward building such applications. There are a number of unique challenges to building these kinds of programs, like how do I turn human language into instructions for machines? In this course, you'll tackle this first with rule-based systems and then with machine learning. Some chat systems are designed to be useful, while others are just good fun. You will build one of each and put everything together to make a helpful, friendly chatbot. Once you complete the course, you’ll also learn how to connect your chatbot to Facebook Messenger!
For Business

GroupTraining 2 or more people?

Get your team access to the full DataCamp library, with centralized reporting, assignments, projects and more
Try DataCamp for BusinessFor a bespoke solution book a demo.
  1. 1

    Chatbots 101

    Free

    In this chapter, you'll learn how to build your first chatbot. After gaining a bit of historical context, you'll set up a basic structure for receiving text and responding to users, and then learn how to add the basic elements of personality. You'll then build rule-based systems for parsing text.

    Play Chapter Now
    Introduction to conversational software
    50 xp
    EchoBot I
    100 xp
    EchoBot II
    100 xp
    Creating a personality
    50 xp
    Chitchat
    100 xp
    Adding variety
    100 xp
    ELIZA I: asking questions
    100 xp
    Text processing with regular expressions
    50 xp
    ELIZA II: Extracting key phrases
    100 xp
    ELIZA III: Pronouns
    100 xp
    ELIZA IV: Putting it all together
    100 xp
  2. 2

    Understanding natural language

    Here, you'll use machine learning to turn natural language into structured data using spaCy, scikit-learn, and rasa NLU. You'll start with a refresher on the theoretical foundations and then move onto building models using the ATIS dataset, which contains thousands of sentences from real people interacting with a flight booking system.

    Play Chapter Now
  3. 3

    Building a virtual assistant

    In this chapter, you'll build a personal assistant to help you plan a trip. It will be able to respond to questions like "are there any cheap hotels in the north of town?" by looking inside a hotel’s database for matching results.

    Play Chapter Now
  4. 4

    Dialogue

    Everything you've built so far has statelessly mapped intents to actions and responses. It's amazing how far you can get with that! But to build more sophisticated bots you will always want to add some statefulness. That's what you'll do here, as you build a chatbot that helps users order coffee.

    Play Chapter Now
For Business

GroupTraining 2 or more people?

Get your team access to the full DataCamp library, with centralized reporting, assignments, projects and more

datasets

ATIS (Airline Travel Information System)Hotels database

collaborators

Collaborator's avatar
Hugo Bowne-Anderson
Collaborator's avatar
Yashas Roy
Alan Nichol HeadshotAlan Nichol

Co-founder and CTO of Rasa

See More

What do other learners have to say?

FAQs

Join over 14 million learners and start Building Chatbots in Python today!

Create Your Free Account

GoogleLinkedInFacebook

or

By continuing, you accept our Terms of Use, our Privacy Policy and that your data is stored in the USA.