Welcome to my fast food restaurant chatbot. This chatbot will assist customers in placing orders from a list of fastfood items. The main idea is that customers can request orders in number while the chat app aided by the backend would respond to the options.
- ChatBot interface would be like a chat interface
- No need for authentication but we should be able to store user session based on devices
- When a customer lands on the chatbot page, the bot should send these options to the customer: Select 1 to Place an order Select 99 to checkout order Select 98 to see order history Select 97 to see current order Select 0 to cancel order
- When a customer selects “1”, the bot should return a list of items from the restaurant. The order items can have multiple options but the customer should be able to select the preferred items from the list using this same number select system and place an order.
- When a customer selects “99” for an order, the bot should respond with “order placed” and if none the bot should respond with “No order to place”. Customer should also see an option to place a new order
- When a customer selects “98”, the bot should be able to return all placed orders from previous order to present orders
- When a customer selects “97”, the bot should be able to return current order and return no current order if none
- When a customer selects “0”, the bot should cancel the order if there is.
- Pull this repo
- In the CLI run npm install to install all node modules.
- Update env with example.env/update.env
- Run
npm run start
on the CLI
-
Host: 3000
-
Route: /
-
Method: GET
-
ChatBot Response: Hello! What's your name?
-
User Response: "String"
Success
Welcome to the Fast Food ChatBot, `${string}!`
1. Place an order
99. Checkout order
98. Order history
97. Current order
0. Cancel order
- Route: /
- Method: GET
- Body: 1
- ChatBot Response
Success
The menu items are:
11. Fried Chicken
12. Burger
13. Pizza
14. Hot Dog
15. French Fries
Type the item number to add to your order
- Route: /
- Method: GET
- Body: 11
- ChatBot Responses
Success
You have added Fried Chicken to your current order
Add another order from the menu
Type '97' to see your current order
'98' to see order history
'99' to checkout
'0' to cancel your order
- Route: /
- Method: GET
- Body: 97
- ChatBot Response
Success
Your current order is: Fried Chicken
1. Place an order
99. Checkout order
98. Order history
97. Current order
0. Cancel order
- Route: /
- Method: GET
- Body: 99
- ChatBot Response
Success
Thanks for your order, `${string}!` Your order of Fried Chicken will be ready shortly.
1. Place an order
98. Order history
0. Cancel order
- Route: /
- Method: GET
- Body: 98
- ChatBot Responses
Success
Here is the order history:
`${string}` ordered Fried Chicken on Thu Mar 16 2023
1. Place an order
98. Order history
0. Cancel order
- Route: /
- Method: GET
- Body: 0
- ChatBot Responses
Success
Your order has been cancelled.
1. Place a new order
98. Order history
- Route: /
- Method: GET
- Body: 98
- ChatBot Responses
Success
There is no order history yet. Type '1' to see the menu.
- Route: /
- Method: GET
- Body: 97
- ChatBot Responses
Success
You don't have any items in your current order yet. Type '1' to see the menu.
- Route: /
- Method: GET
- Body: 0
- ChatBot Responses
Success
There is nothing to cancel. Type '1' to see the menu.