Want to know how this project was built? Read the article written by Ricardo Mello.
What this is
A simple Warehouse Management System: goods come in, goods go out, and stock gets replenished. The twist is the last part — nobody asks for the replenishment. When an outbound invoice is executed, an AI agent wakes up on its own, looks at the stock, reads the rules agreed with the depositor and decides whether to reorder.
How it works
Inbound
⟶
Inventory
⟶
Outbound
⟵⟶
The agent triggers itself here
↓
Replenishment Agent
ANALYSIS
POLICY
DECISION
REPLENISHMENT
NOTIFICATION
↓
Human approves
Start here
New product
Products
| Code | Name | Id |
|---|
New depositor
Depositors
| Id | Code | Name |
|---|
Inventory
| Product code | Depositor | Quantity |
|---|
New inbound invoice
Inbound invoices
| Number | Depositor | Status |
|---|
New outbound invoice
Outbound invoices
| Number | Depositor | Status |
|---|
Stock movements
| Date | Type | Product code | Depositor | Quantity | Invoice |
|---|
Agreed policies
New policy
What the agent retrieves
Replenishments
| Id | Depositor | Message | Status |
|---|