π Google ADK Python Agentic App: Autonomous Procurement System
December 17, 2025 Β· View on GitHub
A Next-Gen Agentic AI System built with Google ADK (Agent Development Kit) and Python. This ADK Python project demonstrates how to build autonomous agents that handle complex enterprise workflows...
This project demonstrates the future of enterprise software: Autonomous Agents that don't just chat, but work. It implements an intelligent procurement assistant capable of handling complex purchase requests, negotiating with suppliers, and managing approval workflowsβall with a seamless Human-in-the-Loop (HITL) interface.
β¨ Key Features
π§ True Agentic Reasoning
Powered by Google's Agent Development Kit (ADK) and Vertex AI (Gemini Pro), this agent goes beyond simple RAG.
- Multi-Step Planning: Breaks down complex requests (e.g., "I need 50 laptops for the new engineering team") into actionable steps.
- State Management: Maintains context across long-running conversations and workflows.
- Policy Compliance: Automatically checks requests against internal procurement policies.
π€ Human-in-the-Loop (HITL) with AG-UI
Automation shouldn't be a black box. The AG-UI frontend provides a rich, streaming interface for collaboration.
- Interactive Cards: The agent streams structured UI components (approval forms, product comparisons) directly into the chat.
- Approval Workflows: Critical actions pause for user confirmation, ensuring control over budget and compliance.
π Extensible MCP Ecosystem
Built on the Model Context Protocol (MCP), the system is modular and easily extensible.
- MongoDB MCP: Persistent memory for user profiles, purchase history, and supplier data.
- PDF Generation MCP: Dynamically generates professional Purchase Orders and reports.
- Search Tools: Integrated web search for real-time supplier discovery.
πΈ Visual Walkthrough
1. Intelligent Need Analysis
The agent understands vague requests and asks clarifying questions to build a complete purchase requisition.

2. Smart Product Search & Comparison
It searches catalogs (and the web) to find the best products, presenting them in a clear comparison view.

3. Human-in-the-Loop Approval
Before finalizing, the agent presents a summary for approval. You can edit details or confirm with a single click.

4. Automated PO Generation
Once approved, the agent generates a formal Purchase Order PDF and handles the "paperwork" automatically.

ποΈ Architecture
The system consists of three main pillars:
- Frontend (
app/): A modern Angular application using AG-UI for streaming agent responses. - Procurement Agent (
procurement/): The core reasoning engine built with Python and Google ADK. - MCP Servers (
mcp_server/): Specialized microservices for Data (MongoDB) and Documents (PDF).
π Quick Start
Prerequisites
- Node.js (v18+)
- Python (v3.11+)
- Yarn (Installed automatically if missing)
- Google Cloud Project (Vertex AI API enabled)
Setup & Run
-
Configure Environment: Copy the
.env.examplefiles to.envinprocurement/,mcp_server/mongodb/, andmcp_server/pdf-generation/, and fill in your API keys. -
One-Click Setup:
./setup.shInstalls all dependencies (Python & Node) and sets up the environment.
-
Run the System:
./run.shStarts the Agent, MCP Servers, and Frontend.
Access the app at http://localhost:4200!
βοΈ Deployment
Ready for production?
- Google Cloud Run:
./deploy_cloudrun.sh(Deploys as containerized services) - Vertex AI:
./deploy.sh(Deploys reasoning engine to Vertex AI)