With the help of robots, Amazon optimizes inventory management by organizing products, locating items, and providing real-time updates on inventory levels.