-
Notifications
You must be signed in to change notification settings - Fork 75
Issues: matthewschrager/Repository
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Author
Label
Projects
Milestones
Assignee
Sort
Issues list
Simple chatbot using Python dictionaries
def simple_chatbot(user_input):
responses = {
"hi": "Hello! How can I help you?",
"what's your name?": "I'm SimpleBot, your virtual assistant!",
"how are you?": "I'm just a program, but I'm here to help you!",
"bye": "Goodbye! Have a great day!",
}
# Convert user input to lowercase for matching
user_input = user_input.lower()
# Return response or default message
return responses.get(user_input, "I'm not sure how to respond to that.")
# Start the chat
print("SimpleBot: Hello! Ask me anything (type 'bye' to quit)")
while True:
user_input = input("You: ")
if user_input.lower() == "bye":
print("SimpleBot: Goodbye!")
break
response = simple_chatbot(user_input)
print(f"SimpleBot: {response}")
#19
opened Mar 8, 2025 by
Keerthu262
Please update dependent packages in Repository.EntityFramework
#13
opened Sep 21, 2016 by
waynenilsen
Trying to update an item or insert a new one always fails in the FileSystemRepository
#11
opened Aug 20, 2015 by
has-taiar
SqlBulkCopy with EntityDataReader.cs does not work (GetOrdinal[string])
#9
opened May 16, 2015 by
mfyuce
ProTip!
Add no:assignee to see everything that’s not assigned.