Skip to content

About

LiveKit-based voice AI agent for outbound + inbound phone calls. Pluggable LLM-voice backends (Sarvam, OpenAI Realtime, Retell, Bolna). Indian-language native. Open source (MIT).

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

3 stars

Watchers

0 watching

Forks

Repository files navigation

AI Voice Agent

License: MIT Part of Mesh Pilot Open on GitHub Mirrored on Codeberg

Part of the Mesh Pilot open-source 6-agent marketing stack. LiveKit-based voice AI agent for outbound + inbound phone conversations — built originally for COD (cash-on-delivery) order-confirmation calls in India, but the architecture is generic.

Receives platform webhooks (Shopify orders, custom triggers), places outbound calls via SIP, runs a low-latency voice loop with pluggable LLM backends, and persists every call + turn for analytics, replay, and operator review.

Quick start

git clone https://gitlab.com/nuraveda-lab/ai-voice-agent.git
# or: git clone https://codeberg.org/Nuraveda_lab/ai-voice-agent.git
cd ai-voice-agent

pnpm install
cp .env.example .env         # LiveKit + Shopify + SIP/Twilio + LLM provider keys
pnpm prisma migrate deploy

node src/server.js                       # HTTP webhook receiver
node src/livekit-agent.js start          # LiveKit agent worker

What it does

  • Receive Shopify order webhooks — when a new COD order lands, enqueue an outbound call task.
  • Place outbound calls via SIP/Twilio trunk — LiveKit dispatches per-call jobs.
  • Run a voice loop with Sarvam / OpenAI Realtime / Bolna / Retell — multiple LLM-voice backends supported, pluggable.
  • Tracks state in Postgres via Prisma — every call attempt + turn is persisted for analytics + replay.
  • Outbound + inbound — same agent code can answer inbound numbers.
  • Indian-language native — Sarvam STT covers Hindi, Punjabi, Tamil, Telugu, Bengali, Marathi, Gujarati and code-switching, where generic STT degrades.

The HITL pattern (shared across the stack)

Call scripts, follow-up actions, and any outbound campaigns route through the operator's approval queue before a single number is dialled. The agent surfaces calls for review (transcripts, outcomes, do-not-call additions) rather than running fully autonomously. In the Mesh Pilot cockpit, the voice surface lives alongside ads / sales / social in one inbox.

Layout

src/
  livekit-agent.js                # LiveKit agent main loop (one job per call)
  trigger-livekit-call.js         # webhook handler that enqueues outbound calls
  create-sip-trunk.mjs / create-twilio-trunk.mjs   # SIP setup helpers
  register-shopify-webhooks.mjs   # one-shot Shopify webhook registration
  setup-bolna-agent.mjs / setup-retell-agent.mjs   # vendor-specific config
  server.js                       # Express HTTP server (webhook receiver)
prisma/                           # Prisma schema + migrations
systemd/                          # systemd unit templates

Companions in the stack

Agent Domain Repo
AI Ads Agent Meta / Google / TikTok / Amazon Ads mesh-pilot/ai-ads-agent
AI Sales Agent Outbound B2B sales mesh-pilot/ai-sales-agent
AI Social Agent Multi-platform posting + ORM mesh-pilot/ai-social-agent
AI UGC Agent Vertical video ad pipeline mesh-pilot/ai-ugc-agent
AI Voice Agent This repo —
AI SEO Agent Shopify SEO autopilot mesh-pilot/ai-seo-agent

In production they're orchestrated by Mesh Pilot — the closed-source cockpit that runs all six in concert with shared brand context, a single web approval inbox, and cross-agent handoffs.

Mirrors

Contributing

Bug reports + PRs welcome. See CONTRIBUTING.md for the contribution shape (issue-first for non-trivial changes, preserve the HITL gate, conventional commits).

Security

Security reports go to help.nuraveda@gmail.com — see SECURITY.md. Please do not open public issues for vulnerabilities.

Code of conduct

Be kind, stay on scope — see CODE_OF_CONDUCT.md.

License

MIT — fork it, ship products with it, no attribution required.


Built by Mesh Pilot.

About

LiveKit-based voice AI agent for outbound + inbound phone calls. Pluggable LLM-voice backends (Sarvam, OpenAI Realtime, Retell, Bolna). Indian-language native. Open source (MIT).

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages