Case Study: Xưởng cơ khí tiết kiệm 420 triệu đồng mỗi năm nhờ AI Agent tối ưu lịch sản xuất
Case Study: How a Machine Shop Saved VND 420 Million per Year with an AI Agent for Production Scheduling
1. Pain – Lịch sản xuất đang chạy bằng cơm Anh Nam, chủ một xưởng gia công cơ khí tại Long An, nhận đơn hàng từ nhiều khách với yêu...
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...
Hiếu Lương
24/08/2026 · Founder & Principal Consultant, HimiTek
1. Pain – Lịch sản xuất đang chạy bằng cơm
Anh Nam, chủ một xưởng gia công cơ khí tại Long An, nhận đơn hàng từ nhiều khách với yêu cầu khác nhau về vật liệu, dung sai, thời hạn giao và công đoạn xử lý. Tuy nhiên, lịch sản xuất vẫn được lập trên Excel và dựa phần lớn vào kinh nghiệm của quản đốc.
Mỗi khi có đơn gấp, quản đốc phải mở nhiều file để kiểm tra máy nào đang rảnh, máy nào sắp bảo trì, nguyên vật liệu còn đủ không và ca làm nào có thể nhận thêm việc. Chỉ cần một dữ liệu cập nhật chậm, toàn bộ thứ tự gia công bị đảo lộn. Đây là bài toán điển hình của lập lịch sản xuất tự động, tối ưu năng lực máy móc, quản lý đơn hàng sản xuất và giảm thời gian máy nhàn rỗi.
2. Agitate – Chi phí ẩn bào mòn lợi nhuận
Trước khi triển khai, xưởng của anh Nam thường xuyên có máy chờ việc trong khi công nhân phải đợi quyết định điều phối. Đơn gấp làm phát sinh tăng ca, đơn thường bị đẩy lùi và quản đốc trở thành điểm nghẽn duy nhất của cả xưởng.
Đây không phải chỉ là chuyện vài giờ xử lý Excel. Đó là chi phí cơ hội, biên lợi nhuận teo tóp và nguy cơ mất khách vì giao trễ. Việc vá víu từng file tạo thêm nợ kỹ thuật; thuê thêm người để kiểm tra thủ công chỉ khiến doanh nghiệp tiếp tục chạy bằng cơm. Nếu chọn cách ăn xổi hoặc tối ưu nửa mùa, xưởng rất dễ mất tiền ngu cho tăng ca, máy nhàn rỗi và KPI ảo không phản ánh đúng công suất thật.
3. Solve – Triển khai AI Agent theo 3 bước
Bước 1: Chuẩn hóa dữ liệu đầu vào. HimiTek kết nối đơn hàng, định mức gia công, năng lực từng máy, lịch bảo trì, ca làm và tồn kho nguyên vật liệu. Doanh nghiệp lập checklist tối thiểu: mã đơn, hạn giao, công đoạn, thời lượng máy, vật liệu, máy thay thế và trạng thái thực tế.
Bước 2: Để AI đề xuất, con người phê duyệt. AI Agent phân tích mức ưu tiên, mô phỏng đơn gấp, phát hiện thiếu vật tư hoặc quá tải công đoạn rồi gửi lịch đề xuất cho quản đốc. Mọi lệnh thực thi được kiểm soát qua OpenClaw Gatekeeper, dùng 9router v0.4.66 và LiteLLM dual-instance failover. Rate-limiting, xoay vòng API key và budget cap cứng, chẳng hạn 5 USD mỗi tháng cho từng virtual key, giúp tránh runaway loop.
def recommend(order, machines, inventory):
candidates = [m for m in machines if m['available'] and m['capacity'] >= order['load']]
if inventory[order['material']] < order['quantity']:
return {'status': 'blocked', 'reason': 'short_material'}
return {'status': 'review', 'machine': min(candidates, key=lambda m: m['queue'])['id']}
Bước 3: Theo dõi và cảnh báo liên tục. Sau khi quản đốc duyệt, hệ thống cập nhật trạng thái sản xuất trên một bảng điều hành tập trung, cảnh báo đơn có nguy cơ giao trễ và mô phỏng lại lịch khi máy sập nguồn, ngừng hoạt động hoặc thay đổi ca. Reasoner được tách khỏi Actuator; elevated tools mặc định bị khóa và chỉ chạy khi có whitelist hoặc quyền rõ ràng.
Giảm 70% thời gian lập và điều chỉnh lịch.
Giảm 18% thời gian máy móc chờ việc.
Giảm 25% chi phí tăng ca.
Giảm khoảng 35% đơn hàng có nguy cơ giao trễ.
Tiết kiệm ước tính 420 triệu đồng mỗi năm từ tăng ca, máy nhàn rỗi và điều phối thủ công.
4. CTA – Biến lịch sản xuất thành khoản tiết kiệm đo được
AI không thay quản đốc quyết định; AI loại bỏ hàng giờ rà soát thủ công và giúp quyết định dựa trên dữ liệu mới nhất. Nếu xưởng của bạn đang nghẽn cổ chai vì Excel, phụ thuộc vào một người hoặc liên tục tăng ca để cứu lịch, hãy bắt đầu bằng việc đo thời gian lập lịch, thời gian máy chờ và chi phí giao trễ. HimiTek có thể giúp bạn xây dựng một AI Agent bám sát quy trình hiện tại, thử nghiệm theo từng công đoạn và quy đổi kết quả thành tiền tiết kiệm thực tế.
Cần tư vấn chuyên sâu?
HimiTek cung cấp dịch vụ tư vấn AI Compliance, Blockchain, và Security cho doanh nghiệp.
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']] < order['quantity']:
return {'status': 'blocked', 'reason': 'short_material'}
return {'status': 'review', 'machine': min(candidates, key=lambda m: m['queue'])['id']}
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.
Need expert consulting?
HimiTek provides AI Compliance, Blockchain, and Security consulting for enterprises.