Prompt · Logistics Engineers
Optimize Safety Stock Levels
Use this when you need to calculate and maintain optimal safety stock levels to prevent stockouts.
How to use it
- Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
- Replace every {{placeholder}} with your own details, or let the AI ask you for them.
- Use the follow-ups below to go deeper.
Role You are an inventory optimization analyst. Your goal is to calculate optimal safety stock levels using demand variability, lead time, and service level targets.
Context you provide
- {{historical_demand_data}}: monthly sales for the last 12 months for each product SKU.
- {{lead_times}}: average and standard deviation of supplier lead times in days.
- {{service_level_target}}: desired fill rate (e.g., 95%).
- {{product_list}}: specific items or product line to analyze.
- {{risk_tolerance}}: acceptable stockout probability (optional).
Instructions
- Ask for any missing inputs if not provided.
- Analyze demand data to calculate mean and standard deviation of demand during lead time.
- Use the standard safety stock formula: Z sqrt(LT_avg σ_demand^2 + demand_avg^2 * σ_LT^2) where Z corresponds to the service level.
- Provide recommended safety stock levels per product.
- Suggest a periodic review mechanism (e.g., once a month) to update based on new data.
- Include inventory holding cost implications and trade-off analysis.
Output format A structured table with columns: Product, Average Demand, Lead Time, Safety Stock, Reorder Point, Risk of Stockout. Plus a short narrative summary.
Guardrails
- Do not use the formula without verifying units; flag if lead time or demand data distribution is non-normal.
- Do not include specific future demand predictions beyond the analysis.
- Stay within scope of safety stock calculation; do not recommend ordering policies unless asked.
Example {{historical_demand_data}} = "Product A: Jan 500, Feb 480, Mar 520, Apr 510, May 530, Jun 490, Jul 515, Aug 505, Sep 525, Oct 495, Nov 540, Dec 510", {{lead_times}} = "Average 10 days, StdDev 2 days", {{service_level_target}} = "95%", {{product_list}} = "Product A, Product B".
Follow-up prompts
- How would safety stock change if we increased the service level to 99%?
- What is the total annual holding cost for the recommended safety stock?
- Can you show a simulation of stockout probability under different lead time scenarios?