Skip to content

W2D4 contribution with Product Order agent #249

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

skullemote
Copy link
Contributor

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 :)

@ed-donner
Copy link
Owner

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

@skullemote
Copy link
Contributor Author

skullemote commented Mar 15, 2025

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?

@ed-donner
Copy link
Owner

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

@skullemote
Copy link
Contributor Author

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.

@ed-donner
Copy link
Owner

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

@skullemote
Copy link
Contributor Author

skullemote commented Mar 29, 2025

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants