From e114cf68c808f9d5876f1bc3a13ebc867e259576 Mon Sep 17 00:00:00 2001 From: Ali Alaparmak <139662554+MrBaldGuy@users.noreply.github.com> Date: Mon, 15 Sep 2025 17:44:08 -0500 Subject: [PATCH 01/10] Update README.md --- README.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 12e5149..5d3665e 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,10 @@ -# C2C Elite 101 Python Chatbot Starter +# C2C Elite 101 Python Chatbot Starter + +Version 2 This chatbot was created by Jorge Luna - update -This project is a starter project that includes a dev [container (GitHub Codespace)](https://docs.github.com/en/codespaces/setting-up-your-project-for-codespaces/adding-a-dev-container-configuration/introduction-to-dev-containers) that is set up for a python +This project is a starter project that includes a dev [container (GitHub Codespace)](https://docs.github.com/en/codespaces/setting-up-your-project-for-codespaces/adding-a-dev-container-configuration/introduction-to-dev-containers) that is set up for a Python development environment. The project is meant to be a starter for your chatbot project. @@ -10,7 +12,7 @@ The project is meant to be a starter for your chatbot project. To use this project do the following: 1. Fork this project -2. From the code section of the repository click the green code button, select Codespaces +2. From the code section of the repository click the green code button, select the Codespaces tab in the popup and click the + button to create a codespace (you will be able to use this codespace in the browser or in a local installation of vs code) for more info [go here](https://docs.github.com/en/codespaces/developing-in-a-codespace/opening-an-existing-codespace) ![Screenshot](codespace_usage.png) From 1f3e09fca16848c1b3a9e95a7c7644f1889275da Mon Sep 17 00:00:00 2001 From: Ali Alaparmak <139662554+AliAlaparmak@users.noreply.github.com> Date: Thu, 18 Sep 2025 21:20:44 -0500 Subject: [PATCH 02/10] Update main.py --- main.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/main.py b/main.py index 44fcc27..5006f0e 100644 --- a/main.py +++ b/main.py @@ -19,9 +19,24 @@ def get_user_name(): def greet_user(name): print(f"Hello, {name}, how are you?") +def chat(): + print("\nMenu:") + print("1: Store hours") + print("2: Product availability") + print("0: Exit") + choice = input("Choose an option: ") + + if choice == "1": + print("We are open 9 AM to 8 PM.") + elif choice == "2": + print("That item is in stock.") + elif choice == "0": + print("Goodbye!") + def main(): user_name = get_user_name() greet_user(user_name) + chat(): if __name__ == "__main__": main() From ebd0a93c5523876ba8a7f234beecab7a108ccc63 Mon Sep 17 00:00:00 2001 From: Ali Alaparmak <139662554+AliAlaparmak@users.noreply.github.com> Date: Wed, 1 Oct 2025 17:12:41 -0500 Subject: [PATCH 03/10] Update README.md --- README.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/README.md b/README.md index 27470da..df5bac8 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,6 @@ # C2C Elite 101 Python Chatbot Starter -Version 2 - -This chatbot was created by Jorge Luna - update +This chatbot was created by Ali Alaparmak This project is a starter project that includes a dev [container (GitHub Codespace)](https://docs.github.com/en/codespaces/setting-up-your-project-for-codespaces/adding-a-dev-container-configuration/introduction-to-dev-containers) that is set up for a Python development environment. From a22f2a2ed1869fa39f2e43edf6df64ade9a13fbb Mon Sep 17 00:00:00 2001 From: MrBaldGuy Date: Wed, 8 Oct 2025 20:44:11 -0500 Subject: [PATCH 04/10] fixed Chatbot --- README.md | 2 +- main.py | 50 ++++++++++++++++++++++++++++++++++++++++++++------ 2 files changed, 45 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index f85f3bd..ea5592f 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # C2C Elite 101 Python Chatbot Starter -This chatbot was created by Jorge Luna - update +This chatbot was created Ali Alaparmak This project is a starter project that includes a dev [container (GitHub Codespace)](https://docs.github.com/en/codespaces/setting-up-your-project-for-codespaces/adding-a-dev-container-configuration/introduction-to-dev-containers) that is set up for a python development environment. diff --git a/main.py b/main.py index 44fcc27..3d3f8a0 100644 --- a/main.py +++ b/main.py @@ -11,17 +11,55 @@ Execution: When the script is run directly (not imported as a module), it will execute the main() function. """ +database = [ + ["ORD001", "Ali Alaparmak", "Out for delivery", "Dallas, TX", "ETA: 20 minutes"] +] +def greet_user(): + fname = input("Please enter your full name: ") + print(f"Hello, {fname.split()[0]}! Welcome to Elite 101.") + return fname -def get_user_name(): - return input("Please enter your name: ") +def track_order(order_n): + for order in database: + if order[0] == order_n: + print(f"Order Status: {order[2]}") + print(f"Location: {order[3]}") + print(f"Estimated Time of Arrival: {order[4]}") + return + print("Order not found. Please check your order number.") -def greet_user(name): - print(f"Hello, {name}, how are you?") +def contact_support(order_n): + print("Connecting you to customer support... Please wait.") + print("You are now connected to a customer support representative.") + + + def main(): - user_name = get_user_name() - greet_user(user_name) + greet_user() + order_n = input("Please enter your six character order number: ").strip().upper() + + while True: + print("What would you like to do?") + print("1. Track my order") + print("2. Request a refund") + print("3. Contact customer support") + print("4. Exit") + + choice = input("\nEnter your choice (1-4): ").strip() + + if choice == "1": + track_order(order_n) + elif choice == "2": + contact_support(order_n) + elif choice == "3": + contact_support(order_n) + elif choice == "4": + print("Have a Good Day") + break + else: + print("Enter a valid choice:") if __name__ == "__main__": main() From 92ff424a1e7cb43aa92b99cafd859fd62611d14f Mon Sep 17 00:00:00 2001 From: Ali Alaparmak <139662554+AliAlaparmak@users.noreply.github.com> Date: Mon, 3 Nov 2025 16:58:56 -0600 Subject: [PATCH 05/10] Updated conversation flow --- main.py | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/main.py b/main.py index e8bdbb5..f158758 100644 --- a/main.py +++ b/main.py @@ -1,16 +1,6 @@ -""" - Welcome to Elite 101 this program is a starter for your chatbot project. - The starter prompts the user to enter their name and then greets them with a personalized message. - - Functions: - get_user_name(): Prompts the user to enter their name and returns it. - greet_user(name): Prints a greeting message using the provided name. - main(): Main function that orchestrates the user input and greeting process. - - Execution: - When the script is run directly (not imported as a module), it will execute the main() function. -""" +#Example of how Database would look like. +# Would ideally have more entires and be updatable dynamically. database = [ ["ORD001", "Ali Alaparmak", "Out for delivery", "Dallas, TX", "ETA: 20 minutes"] ] From 82074300eaa29b627bf610f561f6b746e11eb8af Mon Sep 17 00:00:00 2001 From: MrBaldGuy Date: Mon, 10 Nov 2025 16:50:20 -0600 Subject: [PATCH 06/10] Removed unncessary code --- main.py | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/main.py b/main.py index e8bdbb5..15e1ca8 100644 --- a/main.py +++ b/main.py @@ -33,23 +33,6 @@ def contact_support(order_n): print("Connecting you to customer support... Please wait.") print("You are now connected to a customer support representative.") - - - -def chat(): - print("\nMenu:") - print("1: Store hours") - print("2: Product availability") - print("0: Exit") - choice = input("Choose an option: ") - - if choice == "1": - print("We are open 9 AM to 8 PM.") - elif choice == "2": - print("That item is in stock.") - elif choice == "0": - print("Goodbye!") - def main(): greet_user() order_n = input("Please enter your six character order number: ").strip().upper() From 751dc36267389a14c22b5b93bd1faca4229d983b Mon Sep 17 00:00:00 2001 From: MrBaldGuy Date: Mon, 10 Nov 2025 16:53:41 -0600 Subject: [PATCH 07/10] improved chat flow for refund and support requests --- main.py | 25 ++++++++++--------------- 1 file changed, 10 insertions(+), 15 deletions(-) diff --git a/main.py b/main.py index 15e1ca8..e9c6e3e 100644 --- a/main.py +++ b/main.py @@ -1,16 +1,4 @@ -""" - Welcome to Elite 101 this program is a starter for your chatbot project. - The starter prompts the user to enter their name and then greets them with a personalized message. - - Functions: - get_user_name(): Prompts the user to enter their name and returns it. - greet_user(name): Prints a greeting message using the provided name. - main(): Main function that orchestrates the user input and greeting process. - - Execution: - When the script is run directly (not imported as a module), it will execute the main() function. -""" database = [ ["ORD001", "Ali Alaparmak", "Out for delivery", "Dallas, TX", "ETA: 20 minutes"] ] @@ -29,7 +17,7 @@ def track_order(order_n): return print("Order not found. Please check your order number.") -def contact_support(order_n): +def contact_support(order_n, review): print("Connecting you to customer support... Please wait.") print("You are now connected to a customer support representative.") @@ -49,10 +37,17 @@ def main(): if choice == "1": track_order(order_n) elif choice == "2": - contact_support(order_n) + order_n = input("Please enter your six character order number: ").strip().upper() + review = input("Please provide a reason for the refund: ") + print("Your refund request has been submitted.") + print("A customer support representative will contact you shortly.") + contact_support(order_n,review) elif choice == "3": - contact_support(order_n) + order_n = input("Please enter your six character order number: ").strip().upper() + reason = input("Please provide a reason for contacting support: ") + contact_support(order_n,reason) elif choice == "4": + print("Thank you for contacting our support team.") print("Have a Good Day") break else: From 675a207d078a338f2e16290e83059646edc24f04 Mon Sep 17 00:00:00 2001 From: MrBaldGuy Date: Mon, 10 Nov 2025 17:09:36 -0600 Subject: [PATCH 08/10] Improved Converstion Flow and Added General Review to Contact Support --- main.py | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/main.py b/main.py index 41aa871..cde3b21 100644 --- a/main.py +++ b/main.py @@ -2,7 +2,11 @@ #Example of how Database would look like. # Would ideally have more entires and be updatable dynamically. database = [ - ["ORD001", "Ali Alaparmak", "Out for delivery", "Dallas, TX", "ETA: 20 minutes"] + ["ORD001", "Ali Alaparmak", "Out for delivery", "Dallas, TX", "ETA: 20 minutes"], + ["ORD002", "Sara Kaya", "Delivered", "Plano, TX", "Delivered yesterday"], + ["ORD003", "Omar Hamdy", "Processing at warehouse", "Houston, TX", "ETA: 2 days"], + ["ORD004", "Lina Hassan", "Shipped", "Austin, TX", "ETA: Tomorrow morning"], + ["ORD005", "Emily Chen", "Pending payment confirmation", "Frisco, TX", "ETA: TBD"] ] def greet_user(): @@ -19,16 +23,20 @@ def track_order(order_n): return print("Order not found. Please check your order number.") -def contact_support(order_n, review): +def contact_support(order_n, review, general_review=""): print("Connecting you to customer support... Please wait.") print("You are now connected to a customer support representative.") def main(): greet_user() - order_n = input("Please enter your six character order number: ").strip().upper() + order_n = "" + + while order_n != "NONE" or order_n not in [order[0] for order in database]: + order_n = input("Please enter your six character order number. If you don't have one enter None: ").strip().upper() + print("Thank you! How can we assist you today?") + while True: - print("What would you like to do?") print("1. Track my order") print("2. Request a refund") print("3. Contact customer support") @@ -39,13 +47,12 @@ def main(): if choice == "1": track_order(order_n) elif choice == "2": - order_n = input("Please enter your six character order number: ").strip().upper() + general_review = input("Please provide general feedback about your experience. Examples (Damaged/Defectgive, Wrong Item, Arrived Late, Changed mind, Other): ") review = input("Please provide a reason for the refund: ") print("Your refund request has been submitted.") print("A customer support representative will contact you shortly.") - contact_support(order_n,review) + contact_support(order_n,review, general_review) elif choice == "3": - order_n = input("Please enter your six character order number: ").strip().upper() reason = input("Please provide a reason for contacting support: ") contact_support(order_n,reason) elif choice == "4": From 65f9a99d4698eba367241d58f2faa3e03d03c359 Mon Sep 17 00:00:00 2001 From: MrBaldGuy Date: Mon, 10 Nov 2025 20:14:54 -0600 Subject: [PATCH 09/10] Finished --- main.py | 13 +++++++++++-- tempCodeRunnerFile.py | 1 + 2 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 tempCodeRunnerFile.py diff --git a/main.py b/main.py index cde3b21..a26a778 100644 --- a/main.py +++ b/main.py @@ -15,6 +15,10 @@ def greet_user(): return fname def track_order(order_n): + if order_n == "NONE": + print("You have chosen not to track an order.") + while order_n not in [order[0] for order in database]: + order_n = input("Please enter your six character order number to track your order: ").strip().upper() for order in database: if order[0] == order_n: print(f"Order Status: {order[2]}") @@ -30,9 +34,14 @@ def contact_support(order_n, review, general_review=""): def main(): greet_user() order_n = "" + valid_orders = [order[0] for order in database] - while order_n != "NONE" or order_n not in [order[0] for order in database]: - order_n = input("Please enter your six character order number. If you don't have one enter None: ").strip().upper() + while True: + order_n = input("Enter your 6-character order number (or type NONE if you don’t have one): ").strip().upper() + if order_n == "NONE" or order_n in valid_orders: + break + print("That order number wasn’t found. Please try again.") + print("Thank you! How can we assist you today?") diff --git a/tempCodeRunnerFile.py b/tempCodeRunnerFile.py new file mode 100644 index 0000000..32f64f4 --- /dev/null +++ b/tempCodeRunnerFile.py @@ -0,0 +1 @@ +t \ No newline at end of file From c6e7cf0907d3ff11c009c5b7c993a64cfc27cba8 Mon Sep 17 00:00:00 2001 From: Ali Alaparmak <139662554+AliAlaparmak@users.noreply.github.com> Date: Mon, 10 Nov 2025 20:16:02 -0600 Subject: [PATCH 10/10] Delete tempCodeRunnerFile.py --- tempCodeRunnerFile.py | 1 - 1 file changed, 1 deletion(-) delete mode 100644 tempCodeRunnerFile.py diff --git a/tempCodeRunnerFile.py b/tempCodeRunnerFile.py deleted file mode 100644 index 32f64f4..0000000 --- a/tempCodeRunnerFile.py +++ /dev/null @@ -1 +0,0 @@ -t \ No newline at end of file