julep icon indicating copy to clipboard operation
julep copied to clipboard

Add E-commerce Order Processing with Inventory and Shipment Tracking

Open Mefisto04 opened this issue 1 year ago • 3 comments
trafficstars

This PR introduces a new feature that automates the process of handling e-commerce orders, from placement to shipment. The feature includes:

  • Order placement handling: Accepts orders with specific items, locations, and payment statuses.
  • Inventory management: Automatically checks the stock for ordered items.
  • Shipment tracking: Tracks and verifies shipment status based on the customer’s location.
  • Notifications: Sends a notification to the customer once the order is shipped.

This feature streamlines the entire order processing workflow, ensuring that inventory is available and that the shipment is correctly tracked before notifying the customer.


Code Example:

order_data = {
    "order_id": "ORD12345",
    "items": ["Laptop", "Mouse", "Keyboard"],
    "location": "New York",
    "payment_status": "Paid"
}

result = agent.execute_task(
    task_name="process_order",
    task_input=order_data,
)

print(result.execution_id)
print(result.output)

Changes made:

  1. Added a task for order processing that verifies inventory and shipment status.
  2. Implemented notifications once all items are shipped.
  3. Included real-time execution streaming to monitor steps as they are executed.

[!IMPORTANT] Adds automated e-commerce order processing with inventory checks, shipment tracking, and customer notifications in ecommerce_order_processing.py.

  • Order Processing:
    • Adds ecommerce_order_processing.py to automate order handling, inventory checks, and shipment tracking.
    • Uses julep library to create and execute tasks with Client.
  • Inventory and Shipment:
    • Integrates inventory_management and shipment_tracking for real-time status checks.
    • Evaluates inventory and shipment status for each item in the order.
  • Notifications:
    • Sends notifications to customers once items are shipped.
  • Execution:
    • Supports real-time execution streaming to monitor task progress.

This description was created by Ellipsis for ec7a9fe2f493abc0734ef1b514a8cdcc1afd66b4. It will automatically update as commits are pushed.

Mefisto04 avatar Oct 11 '24 18:10 Mefisto04