Python / React / PostgreSQL / AI/Agents

Trinetry ERP/CRM

Custom ERP/CRM system for SME manufacturing and distribution. Automated invoicing, inventory management, and client outreach with agentic AI workflows.

Agentic

AI workflows

Trinetry ERP/CRM

Showcase

Product Walkthrough

Four screens illustrating the agentic AI surface — Mission Control, autonomous decision audit trail, AI-augmented inventory, and progressive trust configuration.

Trinetry ERP/CRM — Mission Control — real-time autonomous action stream, three agent status cards (Invoice/Reorder/Outreach), low
Mission Control — real-time autonomous action stream, three agent status cards (Invoice/Reorder/Outreach), low-confidence escalations queue.
Trinetry ERP/CRM — Decision Detail · Smart Reorder — full chain-of-thought audit trail showing tool calls, confidence aggregation
Decision Detail · Smart Reorder — full chain-of-thought audit trail showing tool calls, confidence aggregation, and the resulting purchase order.
Trinetry ERP/CRM — Inventory + AI Forecast — 8-row stock grid with reorder/safety threshold ticks, plus 30-day demand forecast an
Inventory + AI Forecast — 8-row stock grid with reorder/safety threshold ticks, plus 30-day demand forecast and supplier comparison.
Trinetry ERP/CRM — Progressive Trust — 12-week autonomy timeline, per-agent confidence threshold sliders, granular scope controls
Progressive Trust — 12-week autonomy timeline, per-agent confidence threshold sliders, granular scope controls per workflow.

Leadership Lens

01 The Call

Decided to build a purpose-fit, AI-native ERP rather than deploying any off-the-shelf solution, recognising that the real bottleneck for Trinetry's SME clients was not missing features but missing automation — 15+ hours a week lost to invoicing, 23% monthly stock-out rate, and 40% lead drop-off from inconsistent follow-ups that no existing SaaS product addressed with autonomous decision-making.

02 The Bet

Bet that embedding LangChain-orchestrated AI agents directly into the ERP core — rather than bolting on a chatbot — would allow routine business decisions (invoice approvals, reorder triggers, client follow-up sequences) to execute autonomously, with a configurable confidence threshold (0.85) that builds operator trust progressively over eight weeks.

03 The Trade-off

Accepted the complexity of maintaining an agent orchestration layer (LangChain, Celery task queue, Redis state) on top of a full-stack ERP, trading a simpler CRUD architecture for autonomous operations capability. This meant the system required more initial setup and operator onboarding than a conventional ERP, but eliminated the ongoing manual overhead that made simpler tools unviable at scale.

04 The Outcome

Trinetry clients achieved a 70% reduction in time spent on routine decisions, 95% agent decision accuracy, and full AI autonomy within eight weeks of deployment. The platform consolidated five disconnected tools into one unified system with a shared data layer — an invoice automatically updating inventory, triggering CRM events, and feeding the AI agent decision engine.

05 Coordinated

Aligned with Trinetry's operations stakeholders on four distinct module scopes (Invoicing, Inventory, Client Outreach, CRM) and the phased autonomy model — starting with AI suggestions in week one, moving to autonomous routine decisions with daily human review by week four, and full exception-only human oversight by week eight. Defined agent confidence thresholds collaboratively with the client to ensure trust was built before each escalation of autonomy.

06 Where this goes next

Extend the agent layer with multi-agent coordination for cross-module decisions (e.g. a single stock-out event triggering both a reorder agent and a client outreach agent to proactively communicate delivery delays); add GST e-invoicing (IRP/IRN) integration for invoices above the threshold; introduce a natural-language query interface so operators can interrogate business data without navigating the full UI.

01 Chapter 1

The Business Problem: Fragmented Operations in SME Manufacturing

SME manufacturing and distribution companies in India struggle with disconnected systems — invoicing in one tool, inventory in another, client outreach entirely manual. Data lives in silos, decisions are delayed, and operational overhead compounds as the business scales.

The need was a unified platform that not only consolidated operations but also automated repetitive decisions using AI agents — reducing human bottlenecks while maintaining compliance with Indian regulatory requirements (GST, multi-branch reporting, regional norms).

Pain Points

Manual invoice creation (2–3 hrs/day) · Stock-outs from delayed reorder decisions · Lost leads from inconsistent follow-ups · Zero visibility across branches · Five disconnected tools with no shared data layer.

Manual Hours

15+

hrs/week on invoicing

Stock-outs

23%

monthly occurrence

Lead Drop-off

40%

due to no follow-up

Systems Used

5+

disconnected tools

02 Chapter 2

Platform Modules

Trinetry consolidates four core operational pillars into a single unified system, each module designed for Indian SME workflows from the ground up. All modules share a unified data layer so that events in one module automatically propagate to others.

Module A — Invoicing

Automated invoice generation with full GST compliance (CGST, SGST, IGST). Payment tracking, recurring invoices, multi-currency support, and automated reminders for overdue payments.

Module B — Inventory Management

Real-time stock levels across warehouses and branches. Intelligent reorder points, supplier management, batch tracking, and consumption pattern analysis for demand forecasting.

Module C — Client Outreach

Automated follow-up sequences triggered by client behaviour. Proposal generation from templates, lead nurturing workflows, and multi-channel communication (email, WhatsApp, SMS).

Module D — CRM

Complete customer lifecycle management from initial lead capture to repeat purchase. Deal pipeline visualisation, customer segmentation, and relationship health scoring.

Design Principle

Each module works standalone but shares a unified data layer — an invoice automatically updates inventory, triggers CRM events, and feeds the AI agent decision engine.

03 Chapter 3

Agentic AI Workflows

The defining feature of Trinetry: AI agents that autonomously handle routine business decisions, escalating to humans only when confidence is low or stakes are high. This is not a chatbot bolted on — agents are wired directly into the business event loop.

Agent 1 — Invoice Processing

Automatically categorises incoming invoices, matches them to purchase orders, flags discrepancies, and routes for approval. High-confidence matches (≥0.85) are auto-approved and the invoice is generated without human input.

Agent 2 — Smart Reorder

Analyses consumption patterns, seasonal trends, and supplier lead times to generate reorder suggestions before stock-outs occur. Evaluates multiple suppliers on price and lead time before placing orders autonomously.

Agent 3 — Client Follow-up

Sequences automated outreach based on client engagement signals — proposal views, email opens, purchase history gaps. Selects the right message template and channel (email, WhatsApp, SMS) based on client behaviour.

Confidence Thresholds

Each agent operates with a configurable confidence threshold (default 0.85). High-confidence decisions execute autonomously; low-confidence ones surface to the dashboard for human review — building trust progressively over eight weeks.

Agentic Workflow Pipeline

Business Event
AI Agent
Decision
Action

Time Saved

70%

on routine decisions

Accuracy

95%

agent decision accuracy

Adoption

8 wks

to full autonomy

04 Chapter 4

System Architecture

A layered architecture separating business logic, AI orchestration, and data persistence — designed for incremental automation adoption. The system starts fully manual and enables AI autonomy module by module.

Architecture Layers

React Frontend
Python API
Agent Orchestrator
PostgreSQL

Frontend — React Dashboard

TypeScript React application with real-time dashboards, management UI for all four modules, and an agent monitoring panel showing autonomous decisions and their outcomes. Operators can see every action the agent took and why.

Backend — Python FastAPI

FastAPI-based backend handling business logic, authentication, and serving as the bridge between the UI and the AI agent layer. RESTful endpoints for all CRUD operations. Celery handles async agent tasks and background processing.

AI Layer — Agent Orchestrator

LangChain-based agent framework that coordinates autonomous workflows. Each agent has defined tools, memory, and decision boundaries. Supports chain-of-thought reasoning for complex decisions. Confidence scores determine autonomous vs. human-reviewed execution.

Data — PostgreSQL + Redis

Relational database for all business data — invoices, inventory, CRM records, and agent decision logs. Full audit trail of every autonomous action taken. Redis handles session management and real-time state for the agent layer.

Agent Decision Schema

event = business_trigger(source, payload, timestamp) → agent.gather(context, history, rules) → agent.reason(confidence_threshold=0.85) → if confidence ≥ 0.85: execute autonomously, else: escalate to human dashboard.

05 Chapter 5

What Sets This Apart

Trinetry is not another CRUD application with a chatbot bolted on. It represents a fundamentally different approach to SME business software — one where AI agents are first-class participants in the business process, not optional add-ons.

Beyond CRUD

AI agents make decisions autonomously — not just responding to queries, but proactively taking action on business events without human intervention. The system moves from a tool operators use to a system that operates alongside them.

Indian SME Native

Built for Indian workflows: GST compliance (CGST/SGST/IGST), multi-branch operations, regional language support, and compliance with local regulations out of the box. Not adapted from a global product.

Progressive Automation

Start fully manual, add AI incrementally. Each agent can be enabled or disabled per module. Week 1: AI suggests, human approves. Week 4: AI executes routine decisions, human reviews daily summary. Week 8: AI operates autonomously within defined boundaries, human handles exceptions only.

Progressive Trust Model

The eight-week trust ramp is a deliberate design choice, not a limitation. Operators who have watched the agent make correct decisions for four weeks are far more comfortable granting autonomy than those who flip a switch on day one.

06 Chapter 6

Technology Stack

A modern, production-ready stack chosen for reliability, developer velocity, and AI-native capabilities. Every layer has a defined role in the autonomous decision pipeline.

LayerTechnologyPurpose
FrontendReact + TypeScriptDashboard, management UI, agent monitoring panel
BackendPython + FastAPIBusiness logic, REST API, authentication
AI / AgentsLangChain + GPT-4Agent orchestration, reasoning, tool use
DatabasePostgreSQLBusiness data, audit logs, agent memory
CacheRedisSession management, real-time agent state
QueueCeleryAsync agent tasks, background processing
PythonReactTypeScriptPostgreSQLLangChainAI AgentsFastAPIRedisCeleryGPT-4