Skip to content

josna-14/Basic-AI-chatbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Basic-AI-chatbot

chatbot.py

print("Hello! I am ChatBuddy. Ask me anything or type 'bye' to exit.")

while True: user_input = input("You: ").lower()

if 'hello' in user_input or 'hi' in user_input:
    print("ChatBuddy: Hello! How can I help you?")
elif 'your name' in user_input:
    print("ChatBuddy: I'm ChatBuddy, your virtual assistant.")
elif 'how are you' in user_input:
    print("ChatBuddy: I'm just code, but I'm doing great! What about you?")
elif 'bye' in user_input:
    print("ChatBuddy: Goodbye! Have a nice day!")
    break
else:
    print("ChatBuddy: I'm not sure how to respond to that.")

About

Simple AI chatbot in python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published