Case study · Slovak AI voice-agent platform

A phone line that answers in Slovak, knows the documents and books the appointment.

VoiceForge takes real phone calls, understands spoken Slovak, answers from uploaded documents, books into a calendar and hands the caller to a human when asked. I designed and built it in 2026. This page shows how it works and how it was built.

Live demo

Call my AI assistant.

It runs on VoiceForge and speaks Slovak. Ask about my experience, or book an intro call with me.

+420 910 925 502

Don't speak Slovak? Write to [email protected] instead.

Calls are recorded. The recording, a transcript and your phone number are stored so I can review how the agent performed. A booking creates an event in my calendar. To have a call deleted, e-mail me. Czech number; your operator's normal rates apply.

What to say

Any of these works. The assistant answers in Slovak.

  1. „Kto je Juraj Hudák?“Who is Juraj Hudák?
  2. „Kde Juraj pracoval?“Where has Juraj worked?
  3. „Chcel by som si dohodnúť úvodný hovor s Jurajom.“I'd like to arrange an intro call with Juraj.
  4. „Máte voľný termín zajtra dopoludnia?“Do you have a free slot tomorrow morning?

01 · What it does

Four things, on a real phone call.

The caller dials an ordinary number. There is no app to install and no menu to press through. Each business has its own documents, greeting, voice and calendar.

Listens and speaks Slovak

Streaming speech recognition and speech synthesis, with replies starting while the model is still writing. The caller can interrupt mid-sentence and the agent stops talking.

Answers from your documents

Upload a PDF, Word or text file. The agent retrieves the relevant passages with combined keyword and vector search, and answers only from that account's documents.

Books the appointment

It finds free slots in Google Calendar, offers them, takes the caller's name and books only after an explicit yes. The same booking logic serves the phone and the web chat.

Hands off to a human

When the caller asks for a person, the call is transferred to the business's own operator number. If the agent cannot retrieve an answer, it apologises and transfers instead of guessing.

And a web app to run it

  • Document upload with background parsing
  • Call log with recordings and transcripts
  • Per-account greeting, voice, models and prompts, with version history
  • Booking hours and calendar settings
  • Invitation-only sign-in with Google

02 · Call flow

What happens between the ring and the answer.

Twilio carries the call on the phone network. LiveKit handles SIP and audio. Everything that decides what the agent says or does lives in one orchestrator service that I own.

VoiceForge call flow A caller reaches Twilio, which connects over SIP to LiveKit. A voice runtime streams speech to and from the caller. The orchestrator runs the session, routes intent, books appointments, retrieves from documents and transfers to a human. It uses a language model, PostgreSQL with pgvector, Google Calendar and Redis. Callerphone network Twilionumber · webhooks LiveKit SIPauthenticated SIP · RTP LiveKit roomone room per call Voice runtimevoice detection · streaming speech ElevenLabsspeech-to-text · voice OrchestratorPython · FastAPI Signed call instructions One session per call Intent routing Booking state machine Document retrieval Human transfer signed webhooks room events text inspeech out Language modelstreamed via OpenRouter PostgreSQL + pgvectordocuments · calls · settings Google Calendarfree slots · bookings Redisstate · cache Human operatorthe business's own number hand-off: Twilio calls the operator
  1. The call arrives.Twilio receives it and asks the orchestrator what to do. The request's signature is checked before anything is returned.
  2. The caller joins a room.Twilio dials the LiveKit SIP gateway with digest credentials. The caller's audio lands in a room created for this call.
  3. A session starts for the right business.The dialled number decides which account answers: its greeting, voice, documents and calendar.
  4. Speech becomes text as it is spoken.The voice runtime streams audio to speech recognition in Slovak and passes finished sentences to the orchestrator.
  5. The orchestrator decides what this turn is.A transfer request, a booking step, or a question. Questions go to document retrieval and then to the language model.
  6. The reply is spoken in short phrases.Model output is cut into phrases and sent to speech synthesis as it arrives, so the caller is not left waiting for a full paragraph.
  7. Interruptions cancel the reply.When the caller starts talking, generation stops and queued speech is dropped. Phone echo and recognition noise are filtered so they do not count as interruptions.
  8. A human takes over when asked.The agent says goodbye, the call is transferred with a SIP REFER, and Twilio connects the caller to the operator.

03 · Engineering evidence

Counted, not claimed.

The repository is private, so here is what is in it. Every number below was measured from the repository or the production database.

453unit tests in 40 files, run with coverage on every push
14end-to-end browser tests, run against the live stack
3CI pipelines: unit tests, an API smoke suite on a throwaway stack, end-to-end
12,000lines of orchestrator code, with 8,500 lines of tests beside it
205commits in six weeks, 15 August to 29 September 2026
30calls placed over the real phone network during testing

Measured on 23 November 2026.

Decisions that keep it safe

  • Booking is never left to the model. A fixed sequence runs from offer to slot to name to confirmation. Only a clear yes at the last step writes to the calendar.
  • The model cannot choose who gets called. The transfer number comes only from account settings. The number inside the transfer request is ignored, and each call gets one transfer attempt.
  • Every phone webhook is verified. Requests from Twilio are checked against their signature before the app responds. Eighteen tests cover this path.
  • One business cannot read another's documents. Retrieval is scoped to the account that owns the dialled number, and tests assert the boundary.
  • Provider keys are encrypted at rest. Each account's own API credentials are stored with authenticated encryption.
  • Calls end. Every call has a ten-minute limit, set at the phone network, not in the prompt.

Incident review · 28 August 2026

Every health check was green and no call was answered.

What happened
After a rebuild of the stack, inbound calls were rejected. The phone webhook worked and the SIP gateway was up and listening.
Cause
Call routing in LiveKit is stored as data, not as configuration. The rebuild started from empty state, so a healthy gateway had no route for the number.
Fix
The orchestrator now recreates and verifies the route at startup, and refuses to report ready if it cannot.
Lesson
A running container is not a working phone line. The check that matters is a real call.
Technology stack
Phone networkTwilio: phone number, webhooks, call transfer
SIP and audioLiveKit SIP and LiveKit server
SpeechElevenLabs speech recognition in Slovak and speech synthesis, streamed through the Sayna voice runtime
OrchestratorPython 3.12, FastAPI
Language modelStreamed through OpenRouter, selectable per account
DataPostgreSQL 16 with pgvector and full-text search, Redis
Web appVite, LiveKit browser client, Google sign-in
DeliveryDocker Compose, Caddy, GitHub Actions, pytest, Playwright

04 · How it was built

Written by AI agents. Directed by me.

I did not type most of this code. AI coding agents did, working to my design and my review. Of the 205 commits, 198 were authored by an agent.

The agents wrote the code. I decided what to build, what must never happen, and whether it worked on a real phone call.

  • ArchitectureI chose the split: Twilio for the phone network, LiveKit for SIP and audio, and one orchestrator of my own for sessions, retrieval, booking and transfer.
  • Rules the agents could not bendNo booking decision by the model. No transfer target from the model. Signature checks on every webhook. Each one is enforced in code and covered by tests.
  • Testing on real callsThe system was tested by phoning it. When a call went wrong, the failure became a regression test. Some test files still carry the call's number, such as test_call32_fixes and test_call48_finalizing_queue.
  • Review and releaseChanges went through three CI pipelines. I read what the agents proposed, rejected what I did not want, and decided what shipped.

About

Juraj Hudák

Senior AI Engineer and AI Solution Architect, based near Bratislava, Slovakia. I spent nearly twenty years building enterprise software for insurers in Vienna. I now build AI applications: voice agents, document retrieval and workflows connected through APIs.

VoiceForge is a working platform that I built and run alone. It has been tested on real phone calls. It has no customers.