Skip to content

About

Simple rule-based chatbot in Python. CodeAlpha Python Programming Internship project.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

CodeAlpha_BasicChatbot

A simple rule-based chatbot in Python, built for the CodeAlpha Python Programming Internship.

Author: Ali Nawaz

How it works

The program reads the user's message, converts it to lowercase, and checks for keywords using if / elif / else. It then prints the matching reply.

Features

  • Greets the user (hello, hi, salam)
  • Tells the current time and date
  • Tells a joke
  • Answers basic questions (name, Python, AI)
  • Says goodbye with bye, exit or quit

How to Run

python chatbot.py

Example

You: hello
CodeBot: Hello! How can I help you today?
You: what is the time
CodeBot: The current time is 08:30 PM
You: bye
CodeBot: Goodbye! Have a nice day.

Concepts Used

  • Functions, loops and conditions
  • String methods (lower, strip, split)
  • datetime module

About

Simple rule-based chatbot in Python. CodeAlpha Python Programming Internship project.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages