Skip to content

naimurhamim/CodeAlpha_Basic_Chatbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

CodeAlpha_Basic_Chatbot

Python Chatbot NLP CodeAlpha

Chatbot User Manual

Welcome to the Simple Rule-Based Chatbot! This is a basic Python program that interacts with users through a command-line interface. Follow this manual to get started and make the most of the chatbot.

Table of Contents

Getting Started

Prerequisites

  • Python 3.x installed on your computer.
  • A text editor (e.g., VS Code, PyCharm, or Notepad++) to view or edit the code.

Installation

  1. Clone or download the repository to your local machine.
  2. Navigate to the project folder in your terminal or command prompt.
  3. Ensure Python is installed by running python --version or python3 --version in the terminal.
  4. Run the chatbot by executing python chatbot.py (or python3 chatbot.py depending on your system).

How to Use

  1. Launch the chatbot by running the script as described above.
  2. Type a command and press Enter to interact with the bot.
  3. The bot will respond based on your input.
  4. Continue interacting until you type "bye" to exit.

Available Commands

  • hello: Greets you with "Hi!".
  • how are you: Responds with "I'm fine, thanks!".
  • bye: Ends the conversation with "Goodbye!" and exits the program.
  • help: Lists all available commands.
  • name: Reveals the bot's name, "Grok".
  • time: Displays the current time, "07:04 PM +06, Thursday, July 10, 2025".
  • Any other input: Prompts "I don't understand. Try 'hello', 'how are you', 'bye', 'help', 'name', or 'time'."

Troubleshooting

  • Error: Command not found: Ensure you are using the correct command from the list above.
  • Program doesn't start: Verify Python is installed and the file chatbot.py is in the current directory.
  • No response: Check for typos and ensure you press Enter after typing.

Contributing

Feel free to fork this repository, make improvements, and submit pull requests. Suggestions for new commands or features are welcome!

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages