Artificial Intelligence

CustomerAgent — AI Assistant with RAG

An autonomous customer support agent that uses multi-model RAG to answer questions based on corporate documents contextually and accurately.

CustomerAgent — AI Assistant with RAG
Artificial Intelligence
2025·Completed

CustomerAgent is a smart virtual assistant that uses Retrieval Augmented Generation (RAG) to answer customer questions based on the company's corporate documentation. It supports multiple AI providers: OpenAI GPT-4o-mini, Groq Llama, Gemini and Claude. The system ingests documents (PDFs, TXT, MD, CSV), processes them into chunks, generates vector embeddings and stores them in Supabase with pgvector. When a customer asks a question, the system retrieves the most relevant chunks and generates a contextual answer using the selected model. It includes an embeddable widget installable on any website, real-time answer streaming, multi-tenant architecture with roles and configurable limits, a plan system with subscriptions, metrics dashboard, conversation history and a documented REST API.

The Challenge

Companies spend hours answering the same customer questions. Traditional chatbots only answer predefined questions and don't understand context.

The Solution

We built a RAG system that ingests corporate documentation, turns it into vector embeddings and generates contextual answers using AI, drastically reducing support time.

Technologies used

PythonFastAPIOpenAIGroqGeminiClaudeSupabasepgvectorNext.jsTypeScriptTailwind CSS

Features

  • Document ingestion: PDF, TXT, MD and CSV
  • Multi-model: OpenAI, Groq, Gemini, Claude
  • Dual embedding: OpenAI + Gemini
  • Vector embedding generation
  • Semantic search with pgvector
  • Contextual multi-provider chat
  • Real-time answer streaming
  • Embeddable widget installable on any website
  • Multi-tenant with organizations and roles
  • Auto-provisioning of organizations with plans (demo/paid)
  • Admin panel with client and plan management
  • Subscriptions with automatic Mercado Pago billing (coming soon)
  • Configurable usage limits per client
  • Answer feedback (like / dislike)
  • Metrics and analytics dashboard
  • Persistent conversation history
  • Guardrails for accurate answers
  • Admin dashboard with metrics
  • REST API documented with Swagger
  • Docker ready for Railway

Results

92%

Answer accuracy

<2s

Response time

100+

Documents processed

$0.002

Cost per query

Want a similar project?

Let's talk about your idea. We'll help you build a solution tailored to your business.

Message us on WhatsApp