tl  tr
  Home | Tutorials | Articles | Videos | Products | Tools | Search
Interviews | Open Source | Tag Cloud | Follow Us | Bookmark | Contact   
 Generative AI > Google Gemini API > Supply Chain Optimisation Agent

Supply Chain Optimisation Agent

Author: Venkata Sudhakar

Supply chain decisions at ShopMax India involve balancing supplier pricing, delivery reliability, minimum order quantities, and lead times across dozens of vendors. An ADK supply chain agent evaluates all these factors simultaneously and recommends the optimal sourcing plan for each SKU - a task that typically takes a buyer several hours becomes a one-line query.

The agent uses four tools covering the core supply chain workflow: fetch vendor quotes, score vendor reliability, calculate economic order quantity, and generate the purchase recommendation. The model synthesises all inputs and explains its reasoning.


It gives the following output,

[SKU-S24] Recommended vendor: MobileWholesale
Unit price: Rs 67,200 | Order qty: 84 units | Total cost: Rs 56,44,800
Lead time: 5 days | Reliability: B+ (91% on-time)

Reasoning: MobileWholesale wins on lead time (5 days vs 7 for SamsungDirect)
at only Rs 800 more per unit, and meets our MOQ of 25. TechDistrib is cheapest
but has 82% on-time delivery and 12-day lead time - too risky given current
low stock (4 days remaining).

[SKU-OP12] Recommended vendor: OnePlusOfficial
Unit price: Rs 59,000 | Order qty: 46 units | Total cost: Rs 27,14,000
Lead time: 6 days | Reliability: A (96% on-time)

Reasoning: OnePlusOfficial has better reliability (A-rated, 96% on-time) and
shorter lead time (6 vs 14 days) than TechDistrib. The Rs 1,500 premium per
unit is justified by lower defect rate and faster delivery.

The agent did not simply pick the cheapest vendor - it balanced price, lead time, reliability, and MOQ requirements. For SKU-S24 with critically low stock, it prioritised the 5-day lead time over a small price saving. For SKU-OP12, it chose the premium A-rated vendor over the cheaper but slower option. This mirrors how an experienced buyer thinks.

For ShopMax India production, connect the vendor quotes tool to the supplier portal APIs (or a vendor price feed stored in BigQuery). Store historical delivery performance in a Cloud Spanner vendor_performance table that is updated automatically when purchase orders close. Add a tool that raises the actual purchase order in the ERP system after the buyer reviews and approves the recommendation. Log all sourcing decisions with their rationale to BigQuery for quarterly supplier review meetings.


 
  


  
bl  br