Case Study
How we built the infrastructure for KraftunAI — a voice AI assistant for Czech businesses
Small businesses lose customers in the most boring way possible: the phone rings and nobody picks up. A shop owner is packing orders, a receptionist is with another client, or it's simply 9 p.m. on a Friday. KraftunAI was built to close that gap — a Czech-speaking voice assistant that answers every call, talks to the customer naturally and hands the business a clean summary afterwards.
The voice is what people hear. The infrastructure behind it is what makes the assistant actually useful: it has to know today's prices and stock, never invent an order status, and make sure that a call which needs a human really reaches one. This case study walks through how we at Manulix built that backend, using one of the first production deployments — a Czech online toy store with roughly 19,000 products — as the example.
The requirements
Before choosing any tools we wrote down what "working" means for a voice assistant in an e-shop:
- Real-time answers. A caller asks "Do you have the wooden train set in stock?" and expects an answer in the same breath, not "we'll get back to you".
- Fresh data. Prices, promotions and stock change daily. An assistant quoting yesterday's price is worse than no assistant.
- No silent failures. If something breaks, the assistant must degrade gracefully, and the shop owner must still learn about calls that need attention.
- Czech first. Local +420 numbers, Czech speech, Czech emails — and, under EU rules, a clear statement at the start of every call that the customer is talking to AI.
- Cheap to run. This is a product for small businesses, so the stack has to stay lean.
Architecture at a glance
The system has three loops that run on different clocks:
- During the call — the voice agent talks to the customer and calls tools when it needs facts.
- Every two hours — a sync job refreshes the product catalog in the database.
- After the call — a reporting workflow decides whether the shop owner needs to act and sends them an email.
Keeping these loops separate is the main design decision. The call path stays fast and simple, while the heavy lifting (downloading and parsing a large catalog) happens in the background where a slow run can't hurt a live conversation.
The voice layer
The conversational part runs on ElevenLabs Conversational AI. Each business gets its own agent with a Czech voice, a knowledge base (opening hours, shipping and return policies, contact details) and a short list of tools it is allowed to call.
We deliberately keep the knowledge base for things that rarely change. Anything that changes daily — prices, stock, product variants — is not pasted into the prompt. Instead, the agent looks it up through a tool at the moment the customer asks. This keeps answers accurate and the prompt small, and it means updating the catalog never requires touching the agent.
n8n as the integration hub
n8n is the glue between the voice agent and everything else. We use it for two jobs.
Tool calls during the conversation. When a caller asks about a product, the agent calls a webhook in n8n. The workflow searches the catalog in Supabase and returns a compact answer: name, variant, price and stock. Keeping this logic in n8n rather than in the agent means we can change how search works, add a filter or log requests without redeploying the assistant.
Post-call reporting. When a call ends, ElevenLabs sends a post_call_transcription webhook with the full transcript and the fields the agent extracted during the conversation — caller name, phone number, order number, request type, products mentioned and a short Czech summary. The n8n workflow:
- ignores every event that isn't a finished call,
- normalizes the data (falls back to caller ID when the customer didn't say their number, converts timestamps to Prague time, formats the transcript as a readable dialogue),
- checks that the event belongs to this shop's agent and that the call was flagged as needing follow-up,
- emails the owner a report with the request type, the summary and the full transcript.
The result is that the owner doesn't read every call — only the ones where a human really has to do something, such as a complaint or an unusual order question.
Supabase and the catalog sync
The product catalog lives in Supabase (managed Postgres, hosted in the EU in Frankfurt). The source of truth is the shop's Shoptet XML export, and a small Node.js job keeps the two in sync every two hours via cron.
The job is short, but most of its code is about not breaking things:
- Download with retries. The feed request has a five-minute timeout and is retried three times, 30 seconds apart, before the run is marked as failed.
- Careful parsing. Only products visible in the shop are imported. Each variant (size, colour) becomes its own row, and rows are deduplicated by product code, so duplicates in the feed can't break the import. Blocks for related and alternative products are stripped first, because they contain other products' codes.
- A sanity guard. If the feed suddenly returns fewer than 50 products — an empty or truncated export — the job stops and leaves the database untouched. Without this check, one bad feed would wipe the catalog and the assistant would tell every caller that nothing is in stock.
- One transaction. Rows are upserted in batches of 500, then everything not seen in this run is deleted, and all of it happens inside a single transaction. Any error triggers a rollback, so the assistant always answers from the last complete catalog, never a half-updated one.
One small detail made a big difference for voice: every product gets a search_text column — name, variant, manufacturer and code, lowercased and stripped of Czech diacritics. Speech-to-text doesn't always get "č" or "ř" right, so searching the normalized text makes product lookups far more forgiving of how the customer's words were transcribed.
Deployment and monitoring
The whole stack is intentionally boring to operate:
- The sync job is a single Node.js script with one dependency (
pg) and an.envfile for secrets. Deploying it means copying the folder to the server, runningnpm installand adding one cron line. - A
--dry-runmode parses the live feed and prints a few rows without writing anything. We run it before every change. - Every run writes a timestamped line to
sync.log: how many rows were upserted, how many stale rows were removed and how long it took. A failed run logs a clearSYNC FAILEDline with the reason and exits with a non-zero code. - On the conversation side, ElevenLabs keeps the history of every call, and the follow-up emails act as a functional check: if reports stop arriving, something upstream is wrong.
The next step on our roadmap is to turn these signals into active alerts — for example, a notification when the sync hasn't succeeded for several hours — so problems surface without anyone opening a log.
What we learned
- Separate the real-time path from the batch path. The voice agent should only ever do quick lookups; anything slow belongs in a background job.
- Guard rails beat clever code. The row-count check and the single transaction are a few lines of code, and they protect against the failure customers would notice most.
- Normalize for voice, not for screens. Search that works perfectly in a web shop can fail on the phone because transcription is imperfect.
- Report exceptions, not everything. Business owners don't want 40 emails a day — they want the three calls that matter.
If you run an online store and miss calls during busy hours, take a look at the voice AI assistant for e-shops we built this infrastructure for. And if you need similar pipelines, automation or monitoring for your own product, get in touch with Manulix.