diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 00000000..01625912 Binary files /dev/null and b/.DS_Store differ diff --git a/README.md b/README.md index 60f55e53..fb0ea035 100644 --- a/README.md +++ b/README.md @@ -1,13 +1,40 @@ -# Project Name +# Seafood Restaurant Chatbot Ordering System +This project is an interactive chatbot that allows users to order food from a fictional seafood restaurant. The chatbot guides users through the ordering process, helping them choose from a menu of seafood dishes, confirming their order, and providing a user-friendly chat interface. -Replace this readme with your own information about your project. +# Features: +Greeting & Interaction: The bot greets the user and asks if they are ready to start the order. -Start by briefly describing the assignment in a sentence or two. Keep it short and to the point. +User Name Collection: The chatbot asks for the user's name and stores it for personalized communication throughout the session. -## The problem +Food Type Selection: The bot offers the user the choice of different types of seafood dishes, such as Fish, Shellfish, and Mollusks. -Describe how you approached to problem, and what tools and techniques you used to solve it. How did you plan? What technologies did you use? If you had more time, what would be next? +Dish Selection: Based on the chosen food type, the user can select specific dishes like Grilled Salmon, Fish and Chips, Shrimp, Lobster, Paella, and Calamari. -## View it live +Order Confirmation: Once a dish is selected, the bot confirms the order and asks the user if they are sure about their choice, simulating an order confirmation process. + +Chat UI: An intuitive and simple interface for the user to interact with the bot. It displays the chat in a "bubble" format with both user and bot messages, and the user can respond by selecting buttons. + +# Technologies Used +HTML5 for the basic page structure. + +CSS for styling the chat and page layout. + +JavaScript for managing user input, dynamic content updates, and chatbot logic. + +Control Chatbot Flow: Based on the userโs input, the chatbot dynamically updates the conversation by adding new messages to the chat. JavaScript is responsible for triggering events, such as when a user clicks a button or enters their name. + +Event Handling: JavaScript listens for user interactions, like button clicks, and updates the chat UI accordingly. For example, when a user selects a type of seafood or a dish, the chatbot responds by showing new options. -Have you deployed your project somewhere? Be sure to include the link to the deployed project so that the viewer can click around and see what it's all about. +DOM Manipulation: JavaScript dynamically creates and appends new HTML elements (such as buttons, messages, and forms) into the chat area by manipulating the DOM (Document Object Model). This ensures that the page content updates without needing to reload the entire page. + +Order Flow Management: The botโs logic handles the sequence of steps, guiding the user from the greeting phase to dish selection, order confirmation, and final messages. JavaScript ensures that the chatbot remembers the userโs previous choices and asks follow-up questions accordingly. + +# Improvements +The chatbot could be enhanced to handle more complex interactions, such as adding multiple items to the cart, tracking orders, and providing delivery options. + +A backend API could be integrated to store and retrieve orders, making the system dynamic. + +Improved error handling and input validation to ensure a smooth user experience. + +## View it live +https://seafood-restaurant-order-bot.netlify.app/ \ No newline at end of file diff --git a/code/.DS_Store b/code/.DS_Store new file mode 100644 index 00000000..21dc07c9 Binary files /dev/null and b/code/.DS_Store differ diff --git a/code/assets/.DS_Store b/code/assets/.DS_Store new file mode 100644 index 00000000..5008ddfc Binary files /dev/null and b/code/assets/.DS_Store differ diff --git a/code/assets/background-bubbles.jpg b/code/assets/background-bubbles.jpg new file mode 100644 index 00000000..2d499d06 Binary files /dev/null and b/code/assets/background-bubbles.jpg differ diff --git a/code/assets/bot-chat.png b/code/assets/bot-chat.png new file mode 100644 index 00000000..09318dbd Binary files /dev/null and b/code/assets/bot-chat.png differ diff --git a/code/assets/crab.png b/code/assets/crab.png new file mode 100644 index 00000000..dd64543c Binary files /dev/null and b/code/assets/crab.png differ diff --git a/code/assets/hero-bubbles.jpg b/code/assets/hero-bubbles.jpg new file mode 100644 index 00000000..c2194134 Binary files /dev/null and b/code/assets/hero-bubbles.jpg differ diff --git a/code/assets/user-chat.png b/code/assets/user-chat.png new file mode 100644 index 00000000..1383dfc8 Binary files /dev/null and b/code/assets/user-chat.png differ diff --git a/code/index.html b/code/index.html index 316eb187..09a18330 100644 --- a/code/index.html +++ b/code/index.html @@ -1,32 +1,26 @@ -
- - - - -