{"id":"d23e9488-4730-4895-a806-e6ee26393a15","entityType":"agent","slug":"crewai-mlaitarovsky-auto-procure","name":"auto-procure","canonicalUrl":"https://www.xpersona.co/agent/crewai-mlaitarovsky-auto-procure","canonicalPath":"/agent/crewai-mlaitarovsky-auto-procure","generatedAt":"2026-10-09T01:01:29.596Z","source":"GITHUB_OPENCLEW","claimStatus":"UNCLAIMED","verificationTier":"NONE","summary":{"evidence":{"source":"editorial-content","verified":true,"confidence":"high","updatedAt":"2026-05-19T06:58:54.682Z","emptyReason":null},"description":"Autonomous Supply Chain Agent | Full-Stack AI System that monitors inventory and drafts orders with Human-in-the-Loop approval. Built with Next.js, FastAPI, CrewAI & Supabase. 🤖 Auto-Procure: Autonomous Supply Chain Agent A Full-Stack AI Agent that autonomously monitors inventory levels, detects shortages, and drafts Purchase Orders for human approval. --- 📖 Overview **Auto-Procure** solves the \"Blank Page Problem\" in supply chain management. Instead of a human manually checking spreadsheets for low stock, an **Autonomous AI Agent** wakes up, scans the database, and proactively drafts or","descriptionLabel":"Technical summary","evidenceSummary":"Capability contract not published. No trust telemetry is available yet. Last updated 5/19/2026.","installCommand":"git clone https://github.com/MLaitarovsky/auto-procure.git","sourceUrl":"https://github.com/MLaitarovsky/auto-procure","homepage":null,"primaryLinks":[{"label":"View Source","url":"https://github.com/MLaitarovsky/auto-procure","kind":"source"}],"safetyScore":66,"overallRank":18.6,"popularityScore":0,"trustScore":null,"claimedByName":null,"isOwner":false,"seoDescription":"Autonomous Supply Chain Agent | Full-Stack AI System that monitors inventory and drafts orders with Human-in-the-Loop approval. Built with Next.js, FastAPI, Cre"},"coverage":{"evidence":{"source":"public-profile","verified":false,"confidence":"medium","updatedAt":"2026-05-19T06:58:54.682Z","emptyReason":null},"protocols":[{"protocol":"OPENCLEW","label":"OpenClaw","status":"self-declared","notes":"Declared in the public agent profile."}],"capabilities":[{"label":"crewai","status":"self-declared"},{"label":"multi-agent","status":"self-declared"}],"verifiedCount":0,"selfDeclaredCount":3,"capabilityMatrix":{"rows":[{"key":"OPENCLEW","type":"protocol","support":"unknown","confidenceSource":"profile","notes":"Listed on profile"},{"key":"crewai","type":"capability","support":"supported","confidenceSource":"profile","notes":"Declared in agent profile metadata"},{"key":"multi-agent","type":"capability","support":"supported","confidenceSource":"profile","notes":"Declared in agent profile metadata"}],"flattenedTokens":"protocol:OPENCLEW|unknown|profile capability:crewai|supported|profile capability:multi-agent|supported|profile"}},"adoption":{"evidence":{"source":"no-adoption-signals","verified":false,"confidence":"low","updatedAt":"2026-05-19T06:58:54.682Z","emptyReason":"No source adoption metrics were available."},"stars":0,"forks":0,"downloads":null,"packageName":null,"latestVersion":null,"tractionLabel":null},"release":{"evidence":{"source":"agent-index","verified":false,"confidence":"medium","updatedAt":"2026-05-19T06:58:54.681Z","emptyReason":null},"lastUpdatedAt":"2026-05-19T06:58:54.682Z","lastCrawledAt":"2026-05-19T06:58:54.681Z","lastIndexedAt":null,"nextCrawlAt":"2026-05-26T06:58:54.681Z","lastVerifiedAt":null,"highlights":[]},"execution":{"evidence":{"source":"GITHUB OPENCLEW","verified":false,"confidence":"low","updatedAt":null,"emptyReason":"No published capability contract is available yet."},"installCommand":"git clone https://github.com/MLaitarovsky/auto-procure.git","setupComplexity":"low","setupSteps":["Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.","Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data."],"contract":{"contractStatus":"missing","authModes":[],"requires":[],"forbidden":[],"supportsMcp":false,"supportsA2a":false,"supportsStreaming":false,"inputSchemaRef":null,"outputSchemaRef":null,"dataRegion":null,"contractUpdatedAt":null,"sourceUpdatedAt":null,"freshnessSeconds":null},"invocationGuide":{"preferredApi":{"snapshotUrl":"https://www.xpersona.co/api/v1/agents/crewai-mlaitarovsky-auto-procure/snapshot","contractUrl":"https://www.xpersona.co/api/v1/agents/crewai-mlaitarovsky-auto-procure/contract","trustUrl":"https://www.xpersona.co/api/v1/agents/crewai-mlaitarovsky-auto-procure/trust"},"curlExamples":["curl -s \"https://www.xpersona.co/api/v1/agents/crewai-mlaitarovsky-auto-procure/snapshot\"","curl -s \"https://www.xpersona.co/api/v1/agents/crewai-mlaitarovsky-auto-procure/contract\"","curl -s \"https://www.xpersona.co/api/v1/agents/crewai-mlaitarovsky-auto-procure/trust\""],"jsonRequestTemplate":{"query":"summarize this repo","constraints":{"maxLatencyMs":2000,"protocolPreference":["OPENCLEW"]}},"jsonResponseTemplate":{"ok":true,"result":{"summary":"...","confidence":0.9},"meta":{"source":"GITHUB_OPENCLEW","generatedAt":"2026-10-09T01:01:29.595Z"}},"retryPolicy":{"maxAttempts":3,"backoffMs":[500,1500,3500],"retryableConditions":["HTTP_429","HTTP_503","NETWORK_TIMEOUT"]}},"endpoints":{"dossierUrl":"https://www.xpersona.co/api/v1/agents/crewai-mlaitarovsky-auto-procure/dossier","snapshotUrl":"https://www.xpersona.co/api/v1/agents/crewai-mlaitarovsky-auto-procure/snapshot","contractUrl":"https://www.xpersona.co/api/v1/agents/crewai-mlaitarovsky-auto-procure/contract","trustUrl":"https://www.xpersona.co/api/v1/agents/crewai-mlaitarovsky-auto-procure/trust"}},"reliability":{"evidence":{"source":"runtime-metrics","verified":false,"confidence":"low","updatedAt":null,"emptyReason":"No trust, reliability, or runtime telemetry is available."},"trust":{"status":"unavailable","handshakeStatus":"UNKNOWN","verificationFreshnessHours":null,"reputationScore":null,"p95LatencyMs":null,"successRate30d":null,"fallbackRate":null,"attempts30d":null,"trustUpdatedAt":null,"trustConfidence":"unknown","sourceUpdatedAt":null,"freshnessSeconds":null},"decisionGuardrails":{"doNotUseIf":["Contract metadata is missing or unavailable for deterministic execution."],"safeUseWhen":[],"riskFlags":["missing_or_unavailable_contract","trust_data_unavailable","schema_references_missing"],"operationalConfidence":"low"},"executionMetrics":{"observedLatencyMsP50":null,"observedLatencyMsP95":null,"estimatedCostUsd":null,"uptime30d":null,"rateLimitRpm":null,"rateLimitBurst":null,"lastVerifiedAt":null,"verificationSource":null},"runtimeMetrics":{"successRate":null,"avgLatencyMs":null,"avgCostUsd":null,"hallucinationRate":null,"retryRate":null,"disputeRate":null,"p50Latency":null,"p95Latency":null,"lastUpdated":null}},"benchmarks":{"evidence":{"source":"no-benchmark-data","verified":false,"confidence":"low","updatedAt":null,"emptyReason":"No benchmark suites or observed failure patterns are available."},"suites":[],"failurePatterns":[]},"artifacts":{"evidence":{"source":"GITHUB OPENCLEW","verified":false,"confidence":"high","updatedAt":"2026-05-19T06:58:54.682Z","emptyReason":null},"readme":"# 🤖 Auto-Procure: Autonomous Supply Chain Agent\n\n> A Full-Stack AI Agent that autonomously monitors inventory levels, detects shortages, and drafts Purchase Orders for human approval.\n\n![Project Status](https://img.shields.io/badge/Status-Active-success)\n![Docker](https://img.shields.io/badge/Docker-Enabled-blue?logo=docker&logoColor=white)\n![AI Model](https://img.shields.io/badge/AI-GPT--4-blue)\n![Stack](https://img.shields.io/badge/Stack-Next.js%20%7C%20FastAPI%20%7C%20Supabase-orange)\n\n---\n\n## 📖 Overview\n\n**Auto-Procure** solves the \"Blank Page Problem\" in supply chain management. Instead of a human manually checking spreadsheets for low stock, an **Autonomous AI Agent** wakes up, scans the database, and proactively drafts orders when inventory hits a critical threshold.\n\nThe system features a **Human-in-the-Loop** workflow: the AI *proposes* the order with reasoning (e.g., \"Stock is 5, minimum is 10\"), but a human manager must click \"Approve\" on the dashboard to finalize it.\n\n---\n\n## 🏗️ Architecture\n\nThe system is built as a monorepo with a clear separation of concerns:\n\n\n<br />\n<div align=\"center\">\n  <img width=\"800\" alt=\"System Architecture\" src=\"https://github.com/user-attachments/assets/1fd9a7c5-d3c4-4db1-bd9e-703290a205ab\" />\n</div>\n<br />\n\n\n### 1. The Brain (Backend)\n* **Framework:** Python FastAPI\n* **AI Orchestration:** CrewAI & LangChain\n* **LLM:** OpenAI GPT-4\n* **Database:** Supabase (PostgreSQL)\n\n### 2. The Interface (Frontend)\n* **Framework:** Next.js 15 (App Router)\n* **Styling:** Tailwind CSS & Shadcn UI\n* **State:** Server Actions & React Hooks\n\n---\n\n## ⚡ Key Features\n\n* **Autonomous Monitoring:** The Agent connects directly to the SQL database to check real-time stock levels.\n* **Intelligent Reasoning:** It doesn't just match numbers; it generates a natural language explanation for *why* an order is needed.\n* **Human-in-the-Loop UI:** A dedicated \"Approval Queue\" in the dashboard allows managers to review AI drafts before execution.\n* **Real-Time Updates:** The frontend refreshes instantly upon approval, providing immediate feedback (Optimistic UI).\n\n---\n\n## 🚀 Getting Started\n\n### Prerequisites\n* **Docker Desktop** (Recommended method)\n* **OR:** Node.js 18+ & Python 3.10+ (Manual method)\n* OpenAI API Key & Supabase Credentials\n\n### Option A: Run with Docker 🐳 (Recommended)\nThe fastest way to test the system. No need to install Python or Node locally.\n\n1. **Clone the repository:**\n\n```bash\ngit clone [https://github.com/yourusername/auto-procure.git](https://github.com/yourusername/auto-procure.git)\ncd auto-procure\n```\n\n2. **Configure Environment:** Create a ```.env``` file in the ```backend/``` folder:\n\n```bash\nOPENAI_API_KEY=sk-...\nSUPABASE_URL=http://host.docker.internal:54321  # Use this for local Docker (Windows/Mac)\n   # OR use your cloud URL: https://xyz.supabase.co\nSUPABASE_KEY=...\n```\n\n3. **Launch the System:** Run this command in the root folder:\n\n```bash\ndocker-compose up --build\n```\n\nThe Dashboard will be available at ```http://localhost:3000``` and the API at ```http://localhost:8000```.\n\n---\n\n### Option B: Manual Installation 🛠️\nUse this if you want to modify the code or debug locally.\n\n1. **Backend Setup**\n\n```bash\ncd backend\npython -m venv venv\n# Windows: venv\\Scripts\\activate  |  Mac/Linux: source venv/bin/activate\n\npip install -r requirements.txt\n```\n\n2. **Configure Keys** Create a ```.env``` file in ```backend/``` as shown in Option A.\n\n3. **Run Backend**\n\n```bash\npython run.py\n# Server starts at [http://127.0.0.1:8000](http://127.0.0.1:8000)\n```\n\n4. **Frontend Setup** Open a new terminal:\n\n```bash\ncd frontend\nnpm install\nnpm run dev\n# Dashboard runs at http://localhost:3000\n```\n\n---\n\n## ▶️ Usage / Demo\n\nOnce both servers are running, you can manually trigger the AI Agent to perform a supply chain check cycle.\n\n**Option 1: Via Terminal (API)**\nOpen a new terminal and run:\n\n```bash\n# Windows (PowerShell) - Note the .exe usage\ncurl.exe -X POST http://localhost:8000/run-agent\n\n# Mac / Linux / Git Bash\ncurl -X POST http://localhost:8000/run-agent\n```\n\n**Option 2: Via Dashboard**\n\n1. Navigate to ```http://localhost:3000```.\n\n2. View the **Live Inventory Feed**.\n\n3. If an order is needed, the **\"AI Drafted Orders\"** section will appear automatically.\n\n4. Click **\"Approve\"** to finalize the order.\n\n---\n\n## 🧠 How the Agent Works\n\nThe Supply Chain Analyst agent follows a strict logic loop:\n\n* **OBSERVE:** Calls the ```check_low_stock``` tool to scan the ```products``` table in Supabase.\n\n* **REASON:** Identifies items where ```current_stock < min_threshold```.\n\n* **ACT:** Groups items by vendor and calls the ```create_draft_order``` tool.\n\n* **RECORD:** Writes a new row to the ```purchase_orders``` table with status ```pending_approval```.\n\n**Example AI Output:**\n***\"I have detected low stock for RTX 3080 (Count: 2, Min: 10). I am creating a draft order for 8 units to restore healthy levels.\"***\n\n---\n\n## 📸 Screenshots\n\n**The Dashboard** Interface Real-time inventory tracking with the AI Approval Queue active.\n\n<img width=\"2534\" height=\"1183\" alt=\"Screenshot 2026-02-06 184406\" src=\"https://github.com/user-attachments/assets/ec062421-5702-45d0-8990-267cbc9efcf4\" />\n\n---\n\n## 🔮 Future Improvements\n\n* [ ] **Email Notifications:** Send an alert to the manager when a draft is created.\n\n* [ ] **Multi-Agent System:** Add a \"Price Negotiator\" agent to check competitor prices.\n\n* [ ] **Historical Analysis:** Use vector search to predict seasonal trends.\n\n---\n\n## 🔧 Troubleshooting\n\n* **Backend Connection Refused?**\n\n  Ensure your `SUPABASE_URL` in `.env` uses `http://host.docker.internal:54321` if running Supabase locally. `localhost` inside a container refers to the container itself, not your machine.\n\n* **Frontend Fetch Failed?**\n\n  Ensure your frontend code uses the Docker service name (`http://backend:8000`) for server-side fetches, and `localhost` for client-side fetches.\n\n---\n\n## 🤝 Contributing\n\nContributions, issues, and feature requests are welcome!\n\n---\n\n## 📝 License\n\nThis project is **MIT** licensed.\n","readmeExcerpt":"🤖 Auto-Procure: Autonomous Supply Chain Agent A Full-Stack AI Agent that autonomously monitors inventory levels, detects shortages, and drafts Purchase Orders for human approval. --- 📖 Overview **Auto-Procure** solves the \"Blank Page Problem\" in supply chain management. Instead of a human manually checking spreadsheets for low stock, an **Autonomous AI Agent** wakes up, scans the database, and proactively drafts or","codeSnippets":[],"executableExamples":[{"language":"bash","snippet":"git clone [https://github.com/yourusername/auto-procure.git](https://github.com/yourusername/auto-procure.git)\ncd auto-procure"},{"language":"bash","snippet":"OPENAI_API_KEY=sk-...\nSUPABASE_URL=http://host.docker.internal:54321  # Use this for local Docker (Windows/Mac)\n   # OR use your cloud URL: https://xyz.supabase.co\nSUPABASE_KEY=..."},{"language":"bash","snippet":"docker-compose up --build"},{"language":"bash","snippet":"cd backend\npython -m venv venv\n# Windows: venv\\Scripts\\activate  |  Mac/Linux: source venv/bin/activate\n\npip install -r requirements.txt"},{"language":"bash","snippet":"python run.py\n# Server starts at [http://127.0.0.1:8000](http://127.0.0.1:8000)"},{"language":"bash","snippet":"cd frontend\nnpm install\nnpm run dev\n# Dashboard runs at http://localhost:3000"}],"parameters":null,"dependencies":[],"permissions":[],"extractedFiles":[],"languages":["python"],"docsSourceLabel":"GITHUB OPENCLEW","editorialOverview":"Autonomous Supply Chain Agent | Full-Stack AI System that monitors inventory and drafts orders with Human-in-the-Loop approval. Built with Next.js, FastAPI, CrewAI & Supabase. 🤖 Auto-Procure: Autonomous Supply Chain Agent A Full-Stack AI Agent that autonomously monitors inventory levels, detects shortages, and drafts Purchase Orders for human approval. --- 📖 Overview **Auto-Procure** solves the \"Blank Page Problem\" in supply chain management. Instead of a human manually checking spreadsheets for low stock, an **Autonomous AI Agent** wakes up, scans the database, and proactively drafts or","editorialQuality":{"score":100,"threshold":65,"status":"ready","wordCount":388,"uniquenessScore":66,"reasons":[]}},"media":{"evidence":{"source":"no-media","verified":false,"confidence":"low","updatedAt":"2026-05-19T06:58:54.682Z","emptyReason":"No screenshots, media assets, or demo links are available."},"primaryImageUrl":null,"mediaAssetCount":0,"assets":[],"demoUrl":null},"ownerResources":{"evidence":{"source":"unclaimed","verified":false,"confidence":"low","updatedAt":"2026-05-19T06:58:54.682Z","emptyReason":"This page has not been claimed by the agent owner."},"hasCustomPage":false,"customPageUpdatedAt":null,"customLinks":[],"structuredLinks":{"docsUrl":null,"demoUrl":null,"supportUrl":null,"pricingUrl":null,"statusUrl":null},"customPage":null},"relatedAgents":{"evidence":{"source":"protocol-neighbors","verified":false,"confidence":"medium","updatedAt":"2026-10-09T01:01:29.596Z","emptyReason":null},"items":[{"id":"b917f68a-ebff-438e-84f8-3f4b2494c0bc","entityType":"agent","canonicalPath":"/agent/activepieces-activepieces","slug":"activepieces-activepieces","name":"activepieces","description":"AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents","url":"https://github.com/activepieces/activepieces","homepage":"https://www.activepieces.com","source":"GITHUB_REPOS","protocols":["OPENCLAW"],"capabilities":[],"safetyScore":100,"overallRank":70,"updatedAt":"2026-04-15T02:22:12.426Z","createdAt":"2026-02-25T03:38:12.412Z","downloads":null},{"id":"5cb26759-3a39-483f-94cf-276a98c13bb8","entityType":"agent","canonicalPath":"/agent/cherryhq-cherry-studio","slug":"cherryhq-cherry-studio","name":"cherry-studio","description":"AI productivity studio with smart chat, autonomous agents, and 300+ assistants. Unified access to frontier LLMs","url":"https://github.com/CherryHQ/cherry-studio","homepage":"https://cherry-ai.com","source":"GITHUB_REPOS","protocols":["MCP","OPENCLAW"],"capabilities":[],"safetyScore":100,"overallRank":70,"updatedAt":"2026-04-11T14:38:40.986Z","createdAt":"2026-02-25T03:38:19.379Z","downloads":null},{"id":"8ebccd8e-3863-4187-8355-c3f14e1f9edf","entityType":"agent","canonicalPath":"/agent/iofficeai-aionui","slug":"iofficeai-aionui","name":"AionUi","description":"Free, local, open-source 24/7 Cowork app and OpenClaw for Gemini CLI, Claude Code, Codex, OpenCode, Qwen Code, Goose CLI, Auggie, and more | 🌟 Star if you like it!","url":"https://github.com/iOfficeAI/AionUi","homepage":"https://www.aionui.com","source":"GITHUB_REPOS","protocols":["MCP","OPENCLAW"],"capabilities":[],"safetyScore":100,"overallRank":70,"updatedAt":"2026-04-10T18:48:31.762Z","createdAt":"2026-02-25T03:38:16.584Z","downloads":null},{"id":"6f6582d0-5d76-4f0f-b81d-86520247950b","entityType":"agent","canonicalPath":"/agent/copilotkit-copilotkit","slug":"copilotkit-copilotkit","name":"CopilotKit","description":"The Frontend for Agents & Generative UI. React + Angular","url":"https://github.com/CopilotKit/CopilotKit","homepage":"https://docs.copilotkit.ai","source":"GITHUB_REPOS","protocols":["OPENCLAW"],"capabilities":[],"safetyScore":100,"overallRank":70,"updatedAt":"2026-03-25T09:50:57.846Z","createdAt":"2026-02-25T03:39:14.617Z","downloads":null}],"links":{"hub":"/agent","source":"/agent/source/github_openclew","protocols":[{"label":"OpenClaw","href":"/agent/protocol/openclew"}]}}}