Skip to content

About

Multilingual AI employee for manufacturing SMEs built with Google ADK, FastAPI, MCP, and Streamlit.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

ย 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿญ FactoryOS AI Employee

A multilingual, multi-agent AI assistant for manufacturing SMEs built with Google ADK, FastAPI, MCP, and Streamlit.


๐Ÿš€ Overview

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.


๐ŸŽฏ Problem Statement

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.


๐Ÿ’ก Solution

FactoryOS acts as an AI employee that helps with:

๐Ÿ“ฆ Inventory Management

  • Check stock levels
  • View material availability
  • Supplier information lookup

๐Ÿ‘ท HR Assistance

  • Shift schedules
  • Leave balances
  • Employee FAQs

๐Ÿ“ˆ Production Operations

  • Daily production reports
  • Yield metrics
  • Defect summaries

๐Ÿ›’ Procurement Workflows

  • Purchase order assistance
  • Vendor reminders
  • Supplier information

๐Ÿ—๏ธ System Architecture

Workers / Managers
        โ”‚
        โ–ผ
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚   Streamlit Frontend  โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
            โ”‚
            โ–ผ
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚     FastAPI Backend   โ”‚
โ”‚   Role-Based Access   โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
            โ”‚
            โ–ผ
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚      Google ADK Manager Agent      โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
        โ”‚         โ”‚         โ”‚
        โ–ผ         โ–ผ         โ–ผ
   HR Agent   Inventory  Production
                  โ”‚
                  โ–ผ
           MCP Tool Server

๐Ÿค– Multi-Agent Design

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

๐Ÿ” Security Features

  • Role-Based Access Control (RBAC)
  • Worker permissions
  • Production manager permissions
  • Factory owner permissions
  • Session management
  • Tool-level access restrictions

๐ŸŒ Multilingual Support

Supported languages:

  • English ๐Ÿ‡ฌ๐Ÿ‡ง
  • Hindi ๐Ÿ‡ฎ๐Ÿ‡ณ
  • Telugu ๐Ÿ‡ฎ๐Ÿ‡ณ

The architecture supports multilingual interactions for factory workers and managers.


๐Ÿ› ๏ธ Technology Stack

Layer Technology
Frontend Streamlit
Backend FastAPI
AI Framework Google ADK
Tool Protocol MCP
Language Python
Database SQLite
Session Store InMemorySessionService

๐Ÿ“‚ Project Structure

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

โš™๏ธ Installation

Clone Repository

git clone https://github.com/YOUR_USERNAME/factoryos-ai-employee.git

cd factoryos-ai-employee

Create Virtual Environment

python -m venv .venv

Windows:

.venv\Scripts\activate

Linux / macOS:

source .venv/bin/activate

Install Dependencies

pip install -r requirements.txt

๐Ÿ”‘ Environment Variables

Create a .env file:

GEMINI_API_KEY=YOUR_API_KEY

โ–ถ๏ธ Running The Backend

uvicorn backend.app.api.app:app --reload

Backend:

http://127.0.0.1:8000

Health Check:

http://127.0.0.1:8000/health

๐Ÿ–ฅ๏ธ Running The Frontend

streamlit run frontend/streamlit_app.py

Streamlit Dashboard:

http://localhost:8501

๐Ÿงช Example Queries

Inventory

How many steel coils are left?

Response:

There are 150 units of Steel Coils remaining in inventory.

HR

What is my shift schedule?

Response:

Employee: Demo User

Shift: A
Time: 08:00 AM โ€“ 04:00 PM

Leave Balance: 12 days

Production

Generate today's production report.

Response:

Production Report (2026-07-01)

Units Produced: 258
Defects: 5
Yield: 98.06%

๐Ÿ“ธ Demo Screenshots

Dashboard HR Inventory Production


๐ŸŽ“ Capstone Concepts Demonstrated

โœ… 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


๐Ÿ“Œ Demo Scope

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.


๐Ÿš€ Future Improvements

  • WhatsApp integration
  • Tally integration
  • Odoo connector
  • PostgreSQL support
  • Real-time inventory updates
  • Voice-based interactions
  • IoT sensor integrations
  • Deployment on Azure

๐Ÿ“œ License

MIT License.


๐Ÿ‘จโ€๐Ÿ’ป Author

Praband Kumar

AI & Data Science Enthusiast

Built as part of the Google AI Agents Capstone Project (2026).

About

Multilingual AI employee for manufacturing SMEs built with Google ADK, FastAPI, MCP, and Streamlit.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages