A multilingual, multi-agent AI assistant for manufacturing SMEs built with Google ADK, FastAPI, MCP, and Streamlit.
FactoryOS is an AI employee designed for small and medium manufacturing businesses.
Instead of navigating multiple software systems, workers and managers can simply ask questions in natural language:
- "How many steel coils are left?"
- "What is my shift schedule?"
- "Generate today's production report."
The system provides instant responses through a conversational interface while enforcing role-based permissions.
Many manufacturing SMEs still rely on:
- Excel sheets
- WhatsApp groups
- Paper registers
- Manual reporting
- Phone calls for daily operations
Enterprise ERP systems are often expensive and difficult to adopt.
FactoryOS demonstrates how AI agents can provide a simple conversational layer on top of factory operations.
FactoryOS acts as an AI employee that helps with:
- Check stock levels
- View material availability
- Supplier information lookup
- Shift schedules
- Leave balances
- Employee FAQs
- Daily production reports
- Yield metrics
- Defect summaries
- Purchase order assistance
- Vendor reminders
- Supplier information
Workers / Managers
โ
โผ
โโโโโโโโโโโโโโโโโโโโโโโโโ
โ Streamlit Frontend โ
โโโโโโโโโโโโโฌโโโโโโโโโโโโ
โ
โผ
โโโโโโโโโโโโโโโโโโโโโโโโโ
โ FastAPI Backend โ
โ Role-Based Access โ
โโโโโโโโโโโโโฌโโโโโโโโโโโโ
โ
โผ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Google ADK Manager Agent โ
โโโโโโโโโฌโโโโโโโโโโฌโโโโโโโโโโฌโโโโโโโโโ
โ โ โ
โผ โผ โผ
HR Agent Inventory Production
โ
โผ
MCP Tool Server
| Agent | Responsibility |
|---|---|
| Manager Agent | Intent routing and orchestration |
| HR Agent | Shift schedules and leave balances |
| Inventory Agent | Stock levels and supplier information |
| Procurement Agent | Purchase workflows and reminders |
| Production Agent | Daily production reporting |
- Role-Based Access Control (RBAC)
- Worker permissions
- Production manager permissions
- Factory owner permissions
- Session management
- Tool-level access restrictions
Supported languages:
- English ๐ฌ๐ง
- Hindi ๐ฎ๐ณ
- Telugu ๐ฎ๐ณ
The architecture supports multilingual interactions for factory workers and managers.
| Layer | Technology |
|---|---|
| Frontend | Streamlit |
| Backend | FastAPI |
| AI Framework | Google ADK |
| Tool Protocol | MCP |
| Language | Python |
| Database | SQLite |
| Session Store | InMemorySessionService |
factoryos-ai-employee/
โโโ backend/
โ โโโ app/
โ โ โโโ agents/
โ โ โ โโโ orchestrator.py
โ โ โ โโโ sub_agents.py
โ โ โ โโโ prompts/
โ โ โโโ api/
โ โ โโโ database/
โ
โโโ frontend/
โ โโโ streamlit_app.py
โ
โโโ mcp_server/
โ โโโ server.py
โ
โโโ specs/
โ โโโ product_vision.md
โ โโโ system_architecture.md
โ โโโ security.md
โ
โโโ skills/
โ
โโโ tests/
โ โโโ test_api.py
โ โโโ test_agents.py
โ โโโ test_mcp_tools.py
โ
โโโ requirements.txt
โโโ README.md
โโโ .env.example
git clone https://github.com/YOUR_USERNAME/factoryos-ai-employee.git
cd factoryos-ai-employeepython -m venv .venvWindows:
.venv\Scripts\activateLinux / macOS:
source .venv/bin/activatepip install -r requirements.txtCreate a .env file:
GEMINI_API_KEY=YOUR_API_KEYuvicorn backend.app.api.app:app --reloadBackend:
http://127.0.0.1:8000
Health Check:
http://127.0.0.1:8000/health
streamlit run frontend/streamlit_app.pyStreamlit Dashboard:
http://localhost:8501
How many steel coils are left?
Response:
There are 150 units of Steel Coils remaining in inventory.
What is my shift schedule?
Response:
Employee: Demo User
Shift: A
Time: 08:00 AM โ 04:00 PM
Leave Balance: 12 days
Generate today's production report.
Response:
Production Report (2026-07-01)
Units Produced: 258
Defects: 5
Yield: 98.06%
โ Multi-Agent Systems
โ Google ADK
โ Model Context Protocol (MCP)
โ Role-Based Access Control
โ FastAPI APIs
โ Streamlit Dashboards
โ Session Management
โ Structured Prompt Engineering
โ Modular Architecture
โ Production-Oriented Design
This project demonstrates the architecture and workflows of an AI employee for manufacturing SMEs using mock operational data.
In a real deployment, FactoryOS would integrate with:
- Excel files
- Tally ERP
- Odoo
- Inventory systems
- Attendance systems
- WhatsApp Business APIs
The current implementation focuses on multi-agent orchestration, security patterns, and conversational interfaces rather than full ERP integration.
- WhatsApp integration
- Tally integration
- Odoo connector
- PostgreSQL support
- Real-time inventory updates
- Voice-based interactions
- IoT sensor integrations
- Deployment on Azure
MIT License.
Praband Kumar
AI & Data Science Enthusiast
Built as part of the Google AI Agents Capstone Project (2026).



