Let’s talk
← ProjectsCase study · 02In construction

Colmena: AI agents for each area of a company

Colmena is an AI agents platform for companies. Each agent knows one area, answers with the source of each figure and proposes actions that a person approves. It is in construction: the landing page is live and the product is not yet.

Visit colmenahq.com ↗
My roleArchitecture and development
StackPython · FastAPI · PostgreSQL + pgvector · React
InfrastructureOne isolated installation per client
StatusIn construction · landing live, product not launched
colmenahq.com
Colmena — AI agents for each area of a company: they answer with the source of each figure and propose actions that a person approves.
Contents
  1. 01What it is and its status
  2. 02The problem it solves
  3. 03How it is built
  4. 04The AI part
  5. 05Approvals and audit
  6. 06What is done and what is missing
01

What it is and its status

Colmena is an AI agents platform for companies in Argentina and Latin America. Each agent knows one area of the company, answers with the sources of each figure and proposes actions that a person approves. Everything is recorded. The first industry is logistics, but the brand and the product work for any business.

Real status: it is in construction. The landing page is live at colmenahq.com. The server and the application already exist and run against a demo ERP, but they are not installed in any company and there are no clients yet.

NoteStatus: in construction. What is public is the landing page; the product has not launched.
02

The problem it solves

A company’s information is spread across its management system, emails, spreadsheets and documents. To find out which supplier invoices fall due this week and still have no payment order, someone has to cross all of that by hand.

Colmena takes those sources, answers in plain language saying where each figure comes from and, when it applies, drafts a proposed action. Before anything changes in a company system, the proposal goes through an approval rule.

03

How it is built

It is a modular monolith with a hexagonal architecture: a single process split into modules, with boundaries enforced by import-linter. Each client gets its own isolated installation, on a server with its own database, and no database is shared between companies.

  • Server: Python, FastAPI, SQLAlchemy 2 and Alembic, on PostgreSQL with pgvector.
  • Web application: React and TypeScript with Vite. The landing page is an Astro site.
  • Language model: used through an API, behind a swappable port, with Claude as the first adapter.
  • Connectors: external systems through MCP; today there is a demo ERP, a SQL database reader, spreadsheets and mail.
04

The AI part

Ask is the home screen. Rules in the code first decide whether a question goes to the documents or to the data; the model decides only when the rules are not enough. Documents are indexed inside the installation with local embeddings, and the model only receives the fragments it needs, with sensitive data masked.

Excel or CSV spreadsheets become tables in a separate schema, which Ask reads with a read-only role. The SQL the model writes is validated with sqlglot before it runs, and the figures are computed by the code, not by the model. If it finds nothing, it says so and does not make anything up.

05

Approvals and audit

  • AI proposes and a person approves: a rule says who approves each type of action depending on the amount.
  • Each proposal shows what it will do, why, with what data and which rule applies. It can be approved, corrected or rejected.
  • Every query, proposal, approval and action goes into a hash-chained audit trail.
  • A Control Agent reviews invoices and flags what is worth a look before approving.
  • Every day at 8 a.m. an email arrives with what the agents did and what is waiting for approval.
06

What is done and what is missing

  • Done and running in demo: Ask with sources, Documents, Data, Approvals, audit, user administration and the Control Agent.
  • Done: the colmenahq.com landing page, built with Astro.
  • Decided and still without code: LangGraph for flows that wait for an approval, WhatsApp, licences, the Docker installer and the desktop app.
  • There are no clients, no live installations and no metrics, because there is nothing to measure yet. When there is a first installation, this page will be updated with what was measured.
Competencies applied