Skip to content

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

CodeAlpha Basic Chatbot

A simple, rule-based chatbot developed in Python during my CodeAlpha internship.

Project Description

This project is a basic conversational chatbot that interacts with users through the command line.

The chatbot recognizes predefined user inputs and responds appropriately using Python conditional statements, functions, loops, and input/output operations.

Features

  • User name input
  • Greeting responses
  • "How are you?" response
  • Chatbot identity response
  • Information about the project
  • Help command
  • Current time response
  • Current date response
  • Thank-you response
  • Goodbye/exit command
  • Handles unknown inputs
  • Case-insensitive user input

Technologies Used

  • Python
  • Python datetime module

Concepts Used

  • input()
  • print()
  • Variables
  • if / elif / else
  • Functions
  • while loop
  • break
  • String methods
  • Lists
  • datetime

How to Run

  1. Make sure Python is installed on your computer.
  2. Download or clone this repository.
  3. Open the project folder in VS Code.
  4. Open the terminal.
  5. Run:
python chatbot.py
  1. Enter your name and start chatting with the chatbot.

Example Conversation

Bot: What is your name? Kashif

Bot: Nice to meet you, Kashif!
Bot: You can type 'help' to see what I can do.
Bot: Type 'bye' whenever you want to exit.

Kashif: hello
Bot: Hi Kashif! How can I help you?

Kashif: how are you
Bot: I'm fine, thanks! I hope you are doing well too.

Kashif: time
Bot: The current time is 03:30 PM.

Kashif: bye
Bot: Goodbye! It was nice talking to you.

Internship Task

This project was completed as part of the CodeAlpha internship project tasks.

Author

Kashif Khan

About

A simple rule-based chatbot developed in Python as part of my CodeAlpha internship.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages