def build_final_report(title, slotting, picking, insights, heatmap_path): report = f"## {title}\n\n" if slotting is not None and not slotting.empty: report += "### 📦 Slotting Summary\n" report += "Optimized SKU placement generated based on velocity.\n\n" if picking is not None and not picking.empty: report += "### 🚶 Picking Route Summary\n" report += "Optimized path minimizes aisle switching and reduces travel distance.\n\n" if insights: report += "### 🔍 Operational Insights\n" report += insights + "\n\n" if heatmap_path: report += "### 🔥 Heatmap Generated\n\n" report += "---\nGenerated by **Procelevate Autonomous Warehouse Operator**." return report