0.5×← Perlahan · Cepat →
💬Tekan Play Demo untuk lihat bagaimana Inventory Purchase Planning Agent menjana pesanan belian optimum.
Demo Complete — All Stages Generated
01 WhatsApp Command
02 Requirement Analysis
Menunggu Sedang aktif Selesai
03 Python Script Generation
1
📊
Ambil data stok & jualanAPI inventory — sales velocity, lead time, stock on hand
2
🧮
Kira kuantiti reorderSales velocity × lead time − stock on hand
3
🔍
Rank by urgencyKategorikan high/medium/low berdasarkan ketersediaan
4
📋
Hasilkan purchase orderSenarai PO dioptimumkan + anggaran kos
import requests, json, pandas as pd
API_INV = "https://api.example.com/v2/inventory"
def fetch_inventory():
resp = requests.get(API_INV, params={"status": "active"})
return resp.json().get("items", [])
def calc_reorder(items):
rows = []
for i in items:
req = i["sales_velocity"] * i["lead_time_days"]
reorder = max(0, req - i["stock_on_hand"])
urgency = "High" if i["stock_on_hand"] < req * 0.3 else "Medium" if i["stock_on_hand"] < req * 0.7 else "Low"
rows.append({"sku": i["sku"], "reorder": reorder, "cost": reorder * i["unit_cost"], "urgency": urgency})
return sorted(rows, key=lambda r: -r["reorder"])
po = calc_reorder(fetch_inventory())
print(json.dumps(po, indent=2))
04 Block Diagram
Menunggu Sedang aktif Selesai
05 System Schematic
Menunggu Sedang aktif Selesai
⚠️ Review purchase orders with finance team before submitting to suppliers.
06 Simulasi Purchase Planning
Mula
SKU-00150RM 1,250High
SKU-00230RM 2,400Medium
SKU-00380RM 800High
SKU-004100RM 500Low
Summary260RM 4,950Ready to PO
07 Purchase Plan Report
Terminal Log
[SISTEM] Inventory Purchase Planning Agent sedia
System Architecture
🤖 Agent Layer
Sales velocity calc
Lead time analyzer
Reorder calculator
LLM optimizer
📦 Inventory Layer
Stock API
Sales history
Supplier lead times
Purchase order export
Safety Notes
- Review purchase orders with finance team before submitting to suppliers.
- Configure minimum stock thresholds based on business rules.
- Verify supplier lead times periodically for accuracy.
- Browser demo does not touch real inventory APIs.