Case study · 2025

ERP + CRM with AI Agents COMPIPRO

Multi-company commercial ERP with Peruvian electronic invoicing (SUNAT) and a suite of 3 AI agents (quoting, customer service and social media content) operating on a multi-tenant architecture.

The client

COMPIPRO operates with a multi-company commercial model that requires unifying sales, administration and marketing operations — while keeping data fully isolated between entities. Like most of Peru's mid-market, they had grown on spreadsheets and disconnected tools, and reached the point where that setup was costing more than it delivered.

The challenge

Unlike a conventional ERP, COMPIPRO needed three things at once that few systems solve together: true multi-tenant architecture (multiple companies on the same install, with isolated databases per client), Peruvian tax compliance (electronic invoicing integrated with SUNAT), and intelligent automation for the repetitive tasks of sales and marketing — all in a single platform.

Off-the-shelf solutions (SAP, Odoo) don't solve the third point without significant glue code, and retrofitting AI agents into a legacy system is generally more painful than rewriting it.

The solution

We built an integrated multi-company ERP with embedded AI suite: it covers the full commercial cycle from prospect capture to electronic invoicing, with three AI agents working on the same system —quoting, customer service and social media content generation— all operating under a human-in-the-loop model where AI suggests and the team validates before any customer-facing action.

The multi-tenant architecture lets multiple companies run on a single install with fully isolated data, and the native SUNAT integration delivers tax compliance out of the box, without patches.

Key capabilities

  • Commercial CRM: Lead → Requirement → Quote → Project flow, with Kanban board, management of companies, contacts, suppliers and tracking indicators
  • Intelligent quoting (AI Agent): AI-assisted pre-quoting with a real costing engine (direct/indirect costs, minimum margins by segment, volume scales, VAT treatment), supplier evaluation and PDF proposal generation
  • Automated customer service (AI Agent): web and WhatsApp chatbot, intelligent classification (triage) of incoming emails with urgency detection — always validated by a human before responding
  • Social media content (AI Agent): editorial calendar and content piece generation for Facebook, Instagram, LinkedIn and TikTok, learning from the client's historical content
  • Electronic invoicing: receipt issuance integrated with SUNAT
  • Administrative modules: finance, inventory, logistics and reporting

Technical differentiators

  • Suite of 3 specialized AI agents working on the same ERP, reducing manual work for sales and marketing teams
  • Multi-provider AI architecture: integration with multiple LLMs (Claude, GPT, Gemini) configurable per agent from the UI, with no dependence on a single provider
  • Responsible AI (human-in-the-loop): no customer-facing action runs without team approval
  • Multimodal capabilities: product image interpretation to infer specifications and image generation for marketing pieces

Tech stack

Backend: PHP · Laravel (modular architecture)

Frontend: Vue.js + Element UI (SPA)

Database: MariaDB / MySQL with multi-tenant architecture (isolated database per company)

Cache & queues: Redis

AI: Multi-provider LLMs (Claude · GPT · Gemini) + image generation

Integrations: SUNAT electronic invoicing API · WhatsApp Cloud API (Meta) · Email IMAP/SMTP

Infrastructure & engineering practices

  • Docker / Docker Compose containers (Nginx, PHP-FPM, MariaDB, Redis)
  • Linux VPS with admin panel and SSL/HTTPS (Let's Encrypt)
  • Automated CI/CD with GitHub Actions (staging and production environments)
  • Automated test suite running on every change
  • Per-client data isolation with automated per-tenant migrations
  • Webhook signature validation (HMAC) and encrypted credential handling

Status

In pilot phase. The COMPIPRO team is running the system with real processes while final details are refined before full rollout.

05 · Let's talk

Have a project
that deserves
good software?

Tell us what you want to build. We reply in under 24 hours with an honest first take — no long forms.


24h response

Free first read

No commitment