ZUA.
Projects/Minaya
AI / Voice Agents

Minaya

AI Chat & Voice Agents for Businesses

A multi-tenant AI assistant that answers a business's visitors from its own content, by chat on its website and by voice on the phone. I lead the project: I designed the architecture, wrote most of the core backend, and review and merge every change the team ships.

My Role

Technical Lead

Channels

Web chat · Phone · Browser voice

Languages

8, including Arabic & Urdu

Status

Beta, live testing

How I Lead It

Minaya went from its first commit to a multilingual beta with chat, phone calls and in-browser voice in about seven weeks. I lead a small team of engineers: I set the architecture, write most of the core platform myself, and every pull request goes through my review before it reaches the main branch. I also own the product decisions that shape the engineering, such as pricing, plan limits and which model answers which conversation.

  • ▸Designed the system split: one core platform owns every business rule, and voice runs as a separate stateless service
  • ▸Wrote most of the core backend and review and merge the team's work
  • ▸Worked through the pricing and competitive analysis, so plan limits and model costs were designed in, not bolted on
  • ▸Set the bar for production: signed webhooks, rate limits, tests alongside features, Dockerised deploys

The Chatbot

A business signs up, points Minaya at its website pages, PDFs or plain text, and pastes one script tag before </body>. A background worker crawls, chunks and embeds the content into Postgres with pgvector, so every answer comes from the business's own material, with the source attached. An answer is never a guess.

  • ▸Retrieval over the business's own content, answered in the visitor's language
  • ▸Spots buying intent, captures the lead's details and emails the team that same minute
  • ▸Connects to the business's own systems through MCP, so it can book a table, check an order or look up stock, not just explain
  • ▸Hands the conversation to a person when it should, including over WhatsApp and phone
  • ▸Analytics per domain: sessions, messages and every transcript available to review

The Voice Agent

Phone calls and browser calls run through a dedicated voice service. Twilio streams the caller's audio, OpenAI Realtime handles voice activity detection and transcription, the core platform decides the answer, and ElevenLabs speaks it back in the voice the business chose. The voice service holds no database and no business configuration, so one deployment serves every business.

  • ▸Barge-in: the caller can interrupt and the agent stops talking and listens
  • ▸When a tool call takes a moment, the agent says "one moment, let me check that" in the caller's language, instead of leaving seconds of silence that make people repeat themselves
  • ▸Any instance can pick up any call by asking the core platform for its session, so a call survives a restart or landing on a different server
  • ▸The assistant's name, greeting, language and voice change from the dashboard and apply to the next call, with no redeploy
  • ▸Plan and remaining minutes are checked before a call connects, and failures show up in the business's dashboard

Model Routing & Cost Control

Each turn goes to the cheapest model that can handle it well. That decision is made in one small, tested router, not scattered through the code.

  • ▸Free plans stay on low-cost models; paid chat gets a standard model
  • ▸Turns that may call a business's live systems through MCP get a stronger model built for multi-step reasoning
  • ▸Voice calls get a strong model at low effort, because a caller needs understanding and an answer within a second or two
  • ▸OpenAI, Anthropic and Cloudflare Workers AI behind one interface; any model can be swapped by configuration without a deploy

Security & Privacy

Minaya handles other businesses' customer conversations, so privacy is part of the design, not a setting.

  • ▸Strict multi-tenant isolation: inbound calls are matched to a business by the number dialled, never by a shared configuration
  • ▸Twilio webhooks and media streams are signature-verified; internal calls use a service key that never reaches a client
  • ▸Browser voice sessions use short-lived session IDs issued by the platform and checked against the site's key and origin
  • ▸No API keys, raw audio, prompts or caller data in the logs

Tech Stack

NestJSOpenAI RealtimeAnthropicElevenLabsTwiliopgvectorMCPBullMQDocker

Work with me

Building something similar?

I design and build production-grade backend systems, APIs, and cloud infrastructure. If you're working on a problem in this space, let's talk.

Get in touch