DEV Community

Hieu Luong
Hieu Luong

Posted on Originally published at himitek.com

Case Study: How a Machine Shop Saved VND 420 Million per Year with an AI Agent for Production Scheduling

1. Pain – Production scheduling is still run by people and spreadsheets

Nam owns a machining workshop in Long An. His team receives orders with different materials, tolerances, processing steps and delivery deadlines. Yet the production plan still lives in Excel and depends heavily on the workshop manager's experience.

Whenever an urgent order arrives, the manager must open multiple files to check which machine is free, which one is scheduled for maintenance, whether materials are available and which shift can take more work. One late update can disrupt the entire sequence. This is a common manufacturing problem: automated production scheduling, machine-capacity optimization, production-order management and reducing idle machine time.

2. Agitate – Hidden costs are eroding the margin

Before the project, Nam's workshop often had machines waiting for work while operators waited for a scheduling decision. Urgent orders created overtime, regular orders were pushed back and the manager became the single bottleneck for the whole workshop.

This is not just a few hours spent editing Excel. It creates opportunity cost, thinner margins and a real risk of losing customers because of late delivery. Constantly patching separate files creates technical debt; hiring more people for manual checking only keeps the business dependent on manual labor. An eat-first approach or half-optimization can lead to unnecessary losses through overtime, idle machines and vanity KPIs that do not reflect real capacity.

3. Solve – Deploy the AI Agent in 3 practical steps

Step 1: Standardize the inputs. HimiTek connects order data, processing standards, machine capacity, maintenance schedules, shifts and raw-material inventory. The minimum checklist includes order ID, deadline, operation, machine time, material, backup machine and actual status.

Step 2: Let AI recommend while people approve. The AI Agent evaluates priority, simulates urgent orders, detects material shortages or overloaded operations, then sends a proposed schedule to the manager. Every execution command is controlled by OpenClaw Gatekeeper, powered by 9router v0.4.66 and LiteLLM dual-instance failover. Rate limiting, automatic API-key rotation and a hard budget cap, such as 5 USD per month per virtual key, help prevent runaway loops.



def recommend(order, machines, inventory):
    candidates = [m for m in machines if m['available'] and m['capacity'] >= order['load']]
    if inventory[order['material']] Step 3: Monitor and alert continuously. After approval, the system updates production status on one centralized dashboard, flags orders at risk of delay and recalculates the plan when a machine loses power, stops operating or a shift changes. The Reasoner is separated from the Actuator; elevated tools remain locked by default and run only with a whitelist or explicit permission.

* 70% less time spent creating and adjusting schedules.
* 18% less machine waiting time.
* 25% lower overtime cost.
* Approximately 35% fewer orders at risk of late delivery.
* An estimated VND 420 million saved per year from overtime, idle machines and manual coordination.

## 4. CTA – Turn production scheduling into measurable savings

AI does not replace the production manager. It removes hours of manual checking and supports decisions with current data. If your workshop is stuck in Excel, dependent on one experienced person or repeatedly paying overtime to rescue the schedule, start by measuring scheduling time, machine waiting time and late-delivery cost. HimiTek can help build an AI Agent around your existing process, test it by operation and convert the result into measurable savings.
Enter fullscreen mode Exit fullscreen mode

Top comments (0)