""" Procurement Automation — Single-page, dark, minimal. Click a process tab to see the automation tools for it. """ import streamlit as st st.set_page_config( page_title="Procurement Automation", page_icon="⚙️", layout="wide", initial_sidebar_state="collapsed", ) # ------------------------------------------------------------------ # Styling # ------------------------------------------------------------------ st.markdown( """ """, unsafe_allow_html=True, ) # ------------------------------------------------------------------ # Content # ------------------------------------------------------------------ PROCESSES = { "1.4 · TOR/PR Review": { "metric": "30 min → 5 min·−83%", "tools": [ ("📄", "Document Parser", "Auto-extract scope, budget, deliverables from TOR/PR", "OCR", "P1"), ("✅", "Validation Engine", "Mandatory fields, budget, MESC, AVL match", "Rules", "P2"), ("🧠", "Spec Quality Scorer", "Flags ambiguous or incomplete specs", "LLM", "P3"), ("🔄", "Cross-system Verifier", "SAP MM ↔ DP ↔ SP one-click check", "API", "P2"), ("📊", "Risk Dashboard", "Auto-prioritizes; routine cases auto-pass", "ML", "P4"), ], }, "2.1.1 · RFQ to Vendors": { "metric": "60 min → 10 min·−83%", "tools": [ ("🎯", "Vendor Recommender", "Ranks vendors by fit, AVL, past performance", "ML", "P3"), ("📝", "RFQ Generator", "Auto-draft from TOR with dynamic clauses", "Template", "P1"), ("📤", "Bulk Send & Track", "Send to all vendors, live status board", "Workflow", "P2"), ("🔔", "Auto-reminder", "T-3 / T-1 nudges, post-deadline escalation", "Workflow", "P2"), ("🛡️", "Policy Guard", "Blocks send if min-vendors rule not met", "Rules", "P1"), ], }, "2.2 · Quote Review": { "metric": "90 min → 15 min·−83%", "tools": [ ("📑", "PDF Extractor", "Pulls prices, terms, lead time from any quote format", "OCR", "P1"), ("📊", "Bid Tabulation", "Side-by-side comparison & variance analysis", "Auto-report", "P1"), ("🔗", "TOR Compliance Matcher", "Line-by-line spec vs response check", "LLM", "P3"), ("⚠️", "Anomaly Detector", "Pricing outliers, identical bids, collusion signals", "ML", "P3"), ("📄", "Report Generator", "One-click bid evaluation PDF/Word", "Template", "P2"), ], }, "3.1 · VA / PO / LOI": { "metric": "75 min → 10 min·−87%", "tools": [ ("🧭", "Doc-type Wizard", "VA vs PO vs LOI from policy rules", "Rules", "P1"), ("📚", "Clause Library", "Smart insertion by risk & procurement type", "Template", "P2"), ("⚡", "SAP Direct Create", "BAPI integration — no BSA re-entry", "API", "P2"), ("🚦", "Approval Router", "<5MB OC route · >5MB to นสญ.", "Workflow", "P2"), ("✍️", "E-signature", "DocuSign / Adobe Sign vendor flow", "Integration", "P2"), ], }, } # ------------------------------------------------------------------ # Render # ------------------------------------------------------------------ st.markdown('