Skip to content

Shivanshbajaj1/CodeAlpha_BasicChatbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

🤖 Basic Chatbot

Overview

Basic Chatbot is a simple rule-based chatbot developed using Python. It interacts with users through predefined commands and responses, demonstrating the use of loops, conditional statements, and user input handling.

This project was created as part of the CodeAlpha Python Programming Internship.


Features

  • Responds to greetings
  • Answers basic questions
  • Displays the current date
  • Provides information about Python
  • Shares internship-related guidance
  • Help menu for available commands
  • Exit command to end the conversation

Technologies Used

  • Python 3
  • Conditional Statements (if-elif)
  • Loops
  • Functions
  • User Input Handling

Supported Commands

Command Description
hello Greets the user
hi Alternative greeting
how are you Bot status response
what is your name Displays bot name
who made you Creator information
python Basic information about Python
internship Internship advice
date Displays current date
help Shows available commands
bye Exits the chatbot

Project Structure

CodeAlpha_BasicChatbot/
│
├── chatbot.py
└── README.md

How to Run

Clone Repository

git clone https://github.com/your-username/CodeAlpha_BasicChatbot.git

Open Project Folder

cd CodeAlpha_BasicChatbot

Run the Program

python chatbot.py

Sample Output

========================================
🤖 Welcome to CodeBot!
Type 'help' to see commands.
Type 'bye' to exit.
========================================

You: hello
CodeBot: Hello! Nice to meet you.

You: python
CodeBot: Python is a popular programming language used for web development, AI, and automation.

You: bye
CodeBot: Goodbye! Have a great day.

Learning Outcomes

Through this project, I learned:

  • Python fundamentals
  • Conditional statements
  • Loops
  • User interaction
  • Basic chatbot logic
  • Program structure and organization

Future Improvements

  • Add more commands
  • Implement GUI using Tkinter
  • Add voice interaction
  • Store chat history
  • Integrate AI-based responses

Author

Shivansh Bajaj

Python Programming Intern – CodeAlpha

About

A simple rule-based chatbot built using Python that responds to user commands through conditional statements and loops.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages