while True: user_input = input("User: ") if user_input.lower() == "quit": break response = chat(user_input) print("Bot:", response)