W2D4 contribution with Product Order agent
Community Contribution: AI Chatbot for Product Ordering in E-Commerce
Description:
This contribution introduces a helpful AI chatbot designed for SparksAI, an e-commerce company, that allows customers to place product orders seamlessly. The bot facilitates a structured ordering process, ensuring customers receive real-time availability updates and order confirmations.
Key Features:
-
Product Ordering Process:
- The chatbot guides users step-by-step through the ordering process, including product selection, quantity, and availability checks.
- It interacts with the
check_product_availabilityfunction to confirm if the desired product is in stock. - If the product is available, the bot lists the products, including name, quantity, and price.
-
Customer Information Collection:
- After confirming the product selection, the bot asks the user to provide their personal and delivery information (name, address, contact).
-
Order Confirmation:
- Upon receiving the necessary details, the bot finalizes the order using the
order_productfunction, providing the user with an order summary, including the total cost.
- Upon receiving the necessary details, the bot finalizes the order using the
Flow:
- Product Inquiry: User specifies the product and quantity.
- Product Availability Check: The bot calls
check_product_availabilityto fetch and display available products. - Repetition: If the customer wants more products, the bot repeats the process.
- Confirmation: Customer confirms product selection and provides personal and shipping details.
- Order Finalization: The bot generates the order number and provides the full order details.
Bot Behavior:
- Always call
check_product_availabilityif a user mentions a new product. - Provides an ordered list of available products with quantity and price.
- Ensures precise and professional communication throughout the interaction.
- If a product is unavailable, the bot responds with “Product not available.”
- Does not invent products. Uses only what the
check_product_availabilityfunction returns.
Contribution Impact:
This AI chatbot aims to enhance the customer experience by providing a smooth and interactive way to place orders through a chatbot interface, making the shopping experience both efficient and user-friendly.
Note: I just wanted to generate a pull request for commit 36f79e6 so please ignore the other two :)
hey @skullemote thank you so very much for this, and I can't wait to add this in. Now I notice that the PR includes some changes to files outside the community-contributions folder. Would it be possible to move all your changes into community-contributions? Thanks so much
Sorry for that mix up. The first two commits are from week 1 which I didn't mean to add in the PR. So should I move them to week 1 community contributions?
hey @skullemote - I think you should be able to remove those files from the PR.. you may need to get instructions from ChatGPT or Claude.. let me know! Unfortunately I don't think I'm able to do it on your behalf..
hey @ed-donner I think I did it by just manually deleting it. I am sorry for the delay. Let me know if you need anything else. Thank you.
hey @skullemote ahh unfortunately I think the change you made would actually delete this file from the repo if I merge your changes.. I'm not a Git expert but I think there's something else you need to do to remove the file from the PR, but not delete the file!!
hey @ed-donner I tried asking copilot since I reached the end of my limited git expertise but it didn't help much. I am trying to rebase my commits but I can't push them directly in the repository as I don't have the permissions. If it doesn't affect the original structure of the repo I will not mind if the files get deleted as I never intended to merge them to community contributions anyway. I apologize for the inconvinience. If this can't be resolved you can delete this pull request and then I can make a new one.