Skip to content

Platform overview

Voicebot runs automated voice conversations: it answers and places calls, understands the caller, and acts on what was said. Your systems decide whom to call and what to do with the result. This page gives short answers on how the platform is built; every section links to the guide or API reference with the details.

The platform comes in two forms with the same API and object model:

  • Cloud: run by Apifonica, with many isolated tenants per installation.
  • On-premises: run by you inside your perimeter, usually with one tenant.

Integration work is identical in both. Platform objects (tenant, account, trunk, number, scenario, agent, communication) are described in the object model and the glossary.

ComponentWhat it does
Platform coreScenarios, agents, numbers, contacts, call automations, users and permissions; the API
Call processing and speech recognitionRuns the call and executes the dialogue scenario
Call balancingAccepts calls over SIP and distributes them across nodes
Voice activity detectionDetects when the caller is speaking
Intent recognitionUnderstands intent and extracts data from answers
Edge functionsRuns JavaScript functions called from scenarios
Call analyticsProcesses call events
LLM gatewayConnects cloud or self-hosted language models
Speech synthesis gatewayConnects local or cloud synthesis engines
GPU model controllerManages models on machines with GPUs
Audio storageWrites and reads recordings in S3-compatible storage
Web consoleUser interface and scenario builder
Documentation portalAPI reference and guides

The platform runs on Kubernetes and is deployed as infrastructure as code.

WhatWith
ContainersKubernetes (RKE2), reference CNI: Cilium
Primary databasePostgreSQL (Patroni, etcd, pgbouncer)
AnalyticsClickHouse
Sessions and cacheRedis (Sentinel)
Call event busApache Kafka (KRaft)
Call recordingsS3-compatible object storage
SecretsHashiCorp Vault, included in the delivery
Monitoring and logsPrometheus and Grafana, Elasticsearch, SIP tracing
DeploymentConfiguration in git, synchronised by Flux; Terraform and Ansible

PostgreSQL, ClickHouse, Redis and Kafka are third-party software under their own licences. Options for each store and Kubernetes requirements are in sections 4–7 of the deployment scoping checklist.

Models connect through adapters, so the same scenario can use a cloud provider, a model inside your perimeter, or your own gateway.

Model typeUsed forWhere it runs
Speech recognition (STT)Caller speech to text, recognition dictionariesExternal provider or your own model
Speech synthesis (TTS)Agent replies, audio cacheLocal or cloud engine
Intent and entity recognitionClassifying phrases, extracting data from answersInside the platform, on CPU
Language models (LLM)Free-form dialogue, answers from a knowledge baseCloud provider, model inside your perimeter, or your gateway
  • Provider switching. Adapters connect through a single entry point with a fallback chain.
  • Data residency. Language models carry residency flags, and requests are routed by them. Which data leaves the perimeter (dialogue text, audio) is agreed per installation.
  • Models inside your perimeter. The standard delivery needs no GPUs. Models on your own GPUs connect through the GPU model controller and are agreed separately.
  • Your own gateway. A gateway with a compatible API can be connected, for example for a recognition model trained on your callers’ speech.

Which models an installation offers depends on the engines enabled for the account. Query them with an account key:

Permissions for working with models are in roles and permissions.

An agent is a scenario bound to a number or pool of numbers and a schedule. Scenarios are built from bricks in the scenario builder or through the API; a call runs the published version.

  • Inbound and outbound calls. Outbound calls are placed one at a time through the API, or by call automations over a segment, on demand or in scheduled windows, with retries.
  • Understanding the caller. Speech recognition, intent recognition and data extraction from answers: contract number, address, date. The AI question brick handles free-form dialogue with a language model.
  • Speaking. Synthesised speech, pre-recorded audio files and audio sequences, background audio; synthesis can be pre-loaded ahead of the phrase.
  • Working with data during the call. The HTTP request brick calls an external system and maps the response into scenario variables; Variables and Conditions bricks drive the logic, and custom code goes into JavaScript.
  • Caller identification. The phone number is only the first step. If no match or several matches are found, the agent asks for an account number or login, recognises it from speech and checks it against your system before disclosing anything.
  • Transfer to an operator with the conversation context.
  • SMS from the scenario through a connected SMS provider.
  • Recording consent. A dedicated brick asks the caller for consent to record the call.
  • Goals and business metrics. Bricks that mark what the call achieved, for reporting on outcomes.
  • Reusable sub-scenarios. A scenario can call another one, passing data in and out through Input and Output bricks.
  • Results. The outcome of each call, step history, dialogue, recording and transcript, by request or webhook. See monitoring and results.

Everything an agent does is set up and monitored in the web console. The same operations are available through the Account API.

SectionWhat it is for
DashboardWhat the account’s lines are doing right now: agents, line usage, running automations, call and minute activity
AgentsVoice agents that run scenarios on inbound and outbound calls; each is bound to a scenario and a number
AutomationsOutbound calls over a segment through one agent, on demand or in scheduled windows
ConversationsCall history with recording, transcript, recognised intents and variables set at each step
ScenariosThe scenario builder: conversation flows as a graph of bricks, with sub-scenarios and a test call from the builder
Contacts and segmentsPeople your agents call, the data collected about them, and groups of contacts to call as one
Numbers, SMS providers, usersAccount setup. Numbers and users synced from your system are shown read-only and changed only there

Scenario bricks:

GroupBricks
Asking and understandingQuestion, AI question
SpeakingText-to-speech, Pre-load Text-to-speech, Audio file, Audio sequence, Background audio
Logic and dataVariables, Conditions, HTTP request, JavaScript, Custom
ActionsCall transfer, SMS, Recording Consent
OutcomesGoal, Business Metric
Sub-scenariosInput, Output

Calls go over SIP through a trunk. A number is a record in the platform; a trunk is the actual voice path to your carrier. Without a working trunk, nothing dials. See trunks and numbers.

ParameterValue
Trunk connectionIP peering without registration (default) or SIP registration
TransportUDP, TCP or TLS
CodecsG.722, PCMU, PCMA
BandwidthAbout 100 kbit/s per call in each direction (G.711)
NetworkNo NAT; explicit RTP port range
Numbers and poolsAn agent on a pool answers on all its numbers; a number belongs to at most one pool
LinesConcurrent call limit per account

Network options, firewall and SBC are in section 2 of the deployment scoping checklist; trunk setup is in phase 1.

If your API speaks HTTP(S) and returns JSON, no changes are needed on your side: the call is configured in the HTTP request brick (runScenarioWebhook in the API).

WhatHow
RequestAny HTTP method and URL; body as a typed string or form fields; custom headers; call variables substituted into the request
AuthorisationBasic, Bearer or a custom header; optionally through a proxy
ResponseValues from the body (JSONPath) or headers are mapped into scenario variables, each with a default
ModeSynchronous with a timeout, or asynchronous; optionally with call metadata attached
ErrorsAn unreachable system or a response code of 300 or above gives status fail, handled by the scenario as a failed call
TestingA call can be run on test data: the response shows the code, timing, body and a ready-made curl command

All configuration fields are in runScenarioWebhook; the list of system call variables is in getSystemVariables.

Beyond calls from scenarios, everything available in the web console is also available through the Account API.

MechanismWhat it gives
Sync by external_idNumbers, pools and users carry your system’s identifiers; the tenant can lock resources so only sync changes them
ContactsCreate and update subscribers with your own data fields, search with a query language, export
Segments and sourcesCall lists: upload a whole file or append, add rows through the API, validation and rejected rows
Call automationsStart and stop, attempts, progress, reset dialling for a contact
Single callsPlace a call with subscriber data; call event stream, history, recording of the conversation and the caller’s speech
Result deliveryAgent webhooks; list of deliveries, correction and resend
SMSConnect your own SMS provider and send through the API or from a scenario
Edge functionsVersioned JavaScript functions, callable from scenarios and through the API
Knowledge baseUpload and update documents for language model answers (RAG): tariffs, services, procedures
Recognition dictionariesYour own vocabulary: tariff, service and place names
Classifiers and entitiesCreate and train your own topic classifiers, extract entities from text
Model adaptersDirect access to recognition, synthesis and language models through the API
AnalyticsSummaries by calls, lines and contacts for your reports
Users and keysProvision users from your system, sign-in by magic link, issue and revoke keys

Result webhooks are stored until delivered and may arrive more than once, so your handler must be idempotent by communication id. See monitoring and results.

REST over HTTPS, specifications in OpenAPI, bearer key authorisation. There are two APIs; the key determines which one answers.

APIForAccessSpecification
Tenant APIAccounts, trunks, keys, tenant usersTenant keytenant-api.yaml
Account APIScenarios, agents, numbers, contacts, calls and results, SMS, modelsAccount key, own account onlyaccount-api.yaml

A minimal fault-tolerant installation has three nodes per role: PostgreSQL, Kafka and Redis work by quorum.

OptionMinimumDetails
Cloud virtual machines15 machines: 36 vCPU, 120 GB RAM, 1.3 TB plus object storage for recordingsSystem requirements: cloud
Your own hardware3 servers: 60 threads, 192 GB RAM, 4.8 TBSystem requirements: on-premises

Key hardware requirements:

  • AVX-512 VNNI instructions on intent recognition nodes; without them, processing is about six times slower
  • Dedicated vCPUs without overcommit: audio is processed in real time
  • SSD or NVMe for databases, 1 Gbit/s per node
  • Database backups on separate storage, about 140 GB

Sizing inputs (peak concurrent calls, calls per day, duration, share of recorded calls and their retention) are collected in section 11 of the checklist.

Integration runs in three phases, each with its own owner.

PhaseWhat it coversWho does it
1. Infrastructure and connectionRequirements check, installation, SIP trunk, tenant and first keyApifonica together with your engineers
2. API integrationKeys, sync of accounts, numbers and pools, user sign-in, checklist validationYour engineers, validated by Apifonica
3. ConfigurationScenarios, agents, automationsAgreed per project

Before installation, go through the deployment scoping checklist: compute and disks, network and telephony, TLS, storage, Kubernetes, configuration, secrets, observability, image registry, support and load. It also lists what must be reachable from outside: model providers, the image registry, inbound SIP and RTP from your carrier.

Next steps: Your first automated call, Object model, Integration guide