llm_engineering icon indicating copy to clipboard operation
llm_engineering copied to clipboard

W2D4 contribution with Product Order agent

Open skullemote opened this issue 10 months ago • 6 comments

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:

  1. 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_availability function to confirm if the desired product is in stock.
    • If the product is available, the bot lists the products, including name, quantity, and price.
  2. Customer Information Collection:

    • After confirming the product selection, the bot asks the user to provide their personal and delivery information (name, address, contact).
  3. Order Confirmation:

    • Upon receiving the necessary details, the bot finalizes the order using the order_product function, providing the user with an order summary, including the total cost.

Flow:

  1. Product Inquiry: User specifies the product and quantity.
  2. Product Availability Check: The bot calls check_product_availability to fetch and display available products.
  3. Repetition: If the customer wants more products, the bot repeats the process.
  4. Confirmation: Customer confirms product selection and provides personal and shipping details.
  5. Order Finalization: The bot generates the order number and provides the full order details.

Bot Behavior:

  • Always call check_product_availability if 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_availability function 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 :)

skullemote avatar Mar 10 '25 20:03 skullemote

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

ed-donner avatar Mar 15 '25 12:03 ed-donner

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?

skullemote avatar Mar 15 '25 13:03 skullemote

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..

ed-donner avatar Mar 22 '25 11:03 ed-donner

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.

skullemote avatar Mar 22 '25 13:03 skullemote

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!!

ed-donner avatar Mar 29 '25 11:03 ed-donner

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.

skullemote avatar Mar 29 '25 18:03 skullemote