Architecture
Requirements
What to have ready for a hybrid or on-premise deployment – subdomains, database access, channels, servers and GPUs.
For a hybrid or on-premise deployment, have everything on this page ready before the project starts, so set-up isn’t held up.
Deployment requirements
Subdomains
All four subdomains are needed:
| Subdomain | What it’s for |
|---|---|
app.<yourdomain> | The frontend interface |
api.<yourdomain> | The backend APIs |
frame.<yourdomain> | Embedded features, such as rendering in an iframe |
embed.<yourdomain> | Embedding on the frontend, such as widgets |
Database access
The connection details for your PostgreSQL database:
- hostname or IP address
- port
- database name
- a username and password with the privileges Proto needs
Channels
Facebook Messenger
If you plan to use Facebook Messenger with your on-premise AI agent, tell the Proto team as early as possible. Your AI agent has to be connected to a Meta app, and Meta’s App Review and verification can take 2–3 weeks. There are two ways to do it:
- Use Proto’s verified app. We connect your on-premise AI agent to one of Proto’s Meta apps. Only staff added as test or developer users can use it.
- Use your own Meta app. Create and configure it as described in How to create and configure a Meta app for Messenger integration.
Other channels
For other channels, such as WhatsApp and Telegram, set them up yourself or give us the credentials to connect them.
Servers
| Development and test | Production | |
|---|---|---|
| Used for | Internal testing, QA and non-critical development | Live deployments with real-time traffic, integrations and full data retention |
| CPU | 4-core, 64-bit (x86_64) | 16-core or more, 64-bit (x86_64) |
| Memory | 16 GB RAM | 32–64 GB RAM, depending on the expected load and data processing |
| Storage | 100 GB SSD, for the operating system, services and PostgreSQL data | 250–500 GB SSD, for logs, database growth, backups and file uploads |
| Network | 1 Gbps LAN | Dual 1 Gbps, or 2.5 or 10 Gbps LAN for high throughput |
| Operating system | Ubuntu Server 22.04 LTS or Red Hat Enterprise Linux 8+ | Ubuntu Server 22.04 LTS or Red Hat Enterprise Linux 8+ |
| PostgreSQL | Version 14 or later | Version 14 or later |
| Virtualisation | Docker, with services in containers | Docker, for running and isolating services |
GPU requirements
Speech recognition, speech synthesis, the LLM and intent classification each run on their own GPU server. Every GPU server needs:
- Ubuntu 22.04 LTS or later
- NVIDIA drivers, CUDA and the NVIDIA Container Toolkit
- Docker with NVIDIA GPU support
Speech recognition (ASR)
Turns speech into text, in many languages.
| GPU | Best for |
|---|---|
| NVIDIA L4 24 GB | Moderate workloads |
| NVIDIA A10G 24 GB | Production |
| NVIDIA A100 40 or 80 GB | Higher concurrency |
| NVIDIA H100 80 GB | High throughput |
| Resource | Requirement |
|---|---|
| GPU memory | 16 GB at least, 24 GB or more recommended, 40–80 GB for high concurrency |
| Number of GPUs | 1 at least. Add more for higher concurrency or availability. |
| CPU | 8 or more vCPUs recommended |
| System memory | 16–32 GB recommended |
| Storage | 50–100 GB SSD at least |
Tip: for normal production workloads, use 1 NVIDIA A10G or L4 24 GB per server. If you expect a lot of voice traffic at once, use an A100 40 or 80 GB.
Speech synthesis (TTS)
Turns text into speech, in many languages.
| GPU | Best for |
|---|---|
| NVIDIA L4 24 GB | Moderate workloads |
| NVIDIA A10G 24 GB | Production |
| NVIDIA A100 40 or 80 GB | Higher concurrency |
| NVIDIA H100 80 GB | High throughput |
| Resource | Requirement |
|---|---|
| GPU memory | 16 GB at least, 24 GB or more recommended, 40 GB or more for high concurrency |
| Number of GPUs | 1 at least. Add more for more voice sessions at once. |
| CPU | 8 or more vCPUs |
| System memory | 16–32 GB |
| Storage | 50–100 GB SSD |
Tip: start with 1 NVIDIA L4 or A10G 24 GB. For a lot of voice sessions at once, or very low latency, use an A100 40 or 80 GB, or an H100 80 GB.
LLM
Writes your AI agent’s replies.
| GPU | Best for |
|---|---|
| NVIDIA A100 40 GB | Testing |
| NVIDIA A100 80 GB | Moderate workloads |
| NVIDIA H100 80 GB | Production |
| Resource | Requirement |
|---|---|
| GPU memory | 24 GB at least, for an optimised, quantised mid-sized model. 48–80 GB recommended, 80 GB or more for high concurrency. |
| Number of GPUs | 1 at least. 2 or more for higher concurrency, larger models or redundancy. |
| CPU | 16–32 or more vCPUs |
| System memory | 64–128 GB |
| Storage | 200–500 GB NVMe SSD |
Tip: start production with 1 NVIDIA A100 80 GB. It leaves plenty of room for model weights, the KV cache, context and requests at the same time. For more traffic, use 2 A100 80 GB or 1 H100 80 GB.
Intent classification
Works out what a person wants, in 109 languages.
| Resource | Requirement |
|---|---|
| GPU | NVIDIA T4 16 GB, L4 24 GB or A10G 24 GB |
| GPU memory | 8 GB at least, 16 GB recommended |
| Number of GPUs | 1 at least. For lower volumes, it can also run on CPU only. |
| CPU | 4–8 vCPUs |
| System memory | 16–32 GB |
| Storage | 30–50 GB SSD |
Tip: start with 1 NVIDIA L4 24 GB, 4–8 vCPUs, 16–32 GB RAM and a 50 GB SSD. For an AI agent with low to medium traffic, you can run intent classification on CPU and keep the GPUs for the LLM, speech recognition and speech synthesis. A GPU helps when you generate a lot of embeddings or need very low latency.
Support
Our team is available throughout the deployment for:
- configuration guidance
- environment testing
- integration validation
For customised deployments, we also provide additional support SLAs and handover documentation.