[verdetto][prompt curato][fonte: vapi.ai]
Posso vibecodare Vapi?
// si costruisce in un weekend, ma restano buchi veri
Un agent mirato in entrata è un progetto da weekend credibile con LiveKit Agents o Pipecat. Rimpiazzare Vapi è molto più grande: orchestrazione in tempo reale, flussi SIP, osservabilità e compliance. Il self-hosting toglie la commissione di 0,05 $ al minuto, non i costi di modelli, operatore e ingegneria.
confidenza: alta
cos’è: Piattaforma API-first per agent vocali telefonici e web, in entrata e in uscita
Indice di costruibilità · gioco editoriale
- Prezzo a consumo peso: zero
- Tempo un weekend per un agente inbound; operatività in produzione continua peso: più 2
- Categoria strumenti per sviluppatori non pesa
- Moat scala dell'infrastruttura · integrazioni peso: meno 3
- Confidenza alta peso: più 1
- Cosa perdi 5 voci peso: meno 2
- Sito vapi.ai (si apre in una nuova scheda) non pesa
Il moat pesa più del prezzo: rifarlo è un progetto, non una sera.
Gioco editoriale: il verdetto dice se un agente può, l’indice se conviene.
Cosa costruisci
Instradare un trunk SIP dentro un agent in tempo reale, far passare la voce per STT, LLM e TTS con la gestione delle interruzioni, eseguire un tool lato server e salvare l'esito della chiamata.
cosa ti serve
- una VM Linux pubblica, un dominio, TLS e porte SIP, WebRTC e RTP correttamente ristrette
- un trunk SIP e un numero di telefono da un operatore come Telnyx
- le API key dei provider STT, LLM e TTS
- una verifica su consenso, registrazione, caller ID e chiamate in uscita secondo le regole del paese, prima di far passare traffico reale
La commissione di orchestrazione è rimpiazzabile; è la gestione operativa affidabile della telefonia il prodotto più difficile.
Il prompt
Un weekend con un agente di coding. I buchi che restano sono qui sotto, in «cosa perdi».
Build me a focused, self-hosted alternative to Vapi for one inbound support number.
Requirements:
- Use Python 3.12 and livekit-agents~=1.5 with one named AgentServer worker.
Use direct provider plugins, not LiveKit Inference or another managed agent host.
- Run LiveKit Server, Redis, and LiveKit SIP with Docker Compose on one Ubuntu VM.
Put Caddy in front of HTTPS/WSS; expose only the documented SIP and UDP media ports.
- Provision one Telnyx DID and credential-authenticated SIP trunk. Include checked-in
LiveKit inbound-trunk and dispatch-rule JSON that sends calls to support-agent.
- Build an AgentSession with Silero VAD, Deepgram Nova-3 STT, gpt-5-mini through
the OpenAI plugin, and Cartesia Sonic-3 TTS. Load every secret from .env.
- Give the agent one narrow support prompt, interruption handling, and two tools:
look up an order in SQLite and save a callback request after caller confirmation.
- Persist call id, timestamps, transcript, tool results, and outcome to SQLite.
Add structured JSON logs and /healthz; recording is off by default.
- Include unit tests for both tools and scripted agent tests for lookup, refusal to
invent an order, callback confirmation, and a caller interruption.
- Provide make setup, make dev, make smoke, and docker compose up -d commands.
The smoke test must work in the LiveKit agent console before a real PSTN call.
- README: DNS, TLS, firewall, Telnyx, trunk, dispatch, provider-key, and test-call
steps, plus common one-way-audio and SIP authentication checks.
- The cost section must say the Vapi fee is removed, while the DID, SIP minutes,
model usage, VM, failed calls, monitoring, and operator time remain. Link the
source-backed calculator at https://voice.oss.codes for changing rates.
- Out of scope: outbound campaigns, a multi-tenant dashboard, squads, billing,
automatic provider failover, call recording, compliance claims, and high availability. Prompt curato: scritto e rivisto a mano per questa app. In inglese di proposito — è la lingua in cui gli agenti di coding rendono meglio.
Cosa perdi
- l'infrastruttura in tempo reale gestita, lo scaling, il failover tra provider e il supporto
- le API di configurazione per assistant, squad, workflow, numeri di telefono e provider
- le campagne in uscita, le integrazioni con gli operatori, la mitigazione dello spam e il debug della telefonia in produzione
- simulazioni, valutazioni, log delle chiamate, registrazioni, analytics e controlli di retention hosted
- gli SLA enterprise, gli add-on di compliance, i controlli sui ruoli e le opzioni di data residency
Perché pagano ancora
Si paga per passare da una demo vocale funzionante a chiamate di produzione affidabili, senza gestire in proprio SIP, RTP, WebRTC, worker degli agent, fallback tra provider, osservabilità e capacità.
moat: Scala dell'infrastruttura Integrazioni cos’è un moat
gestione operativa di realtime e telefonia, più il control plane
Alternative gratuite
Non hai voglia di costruirtelo? Queste esistono già, sono gratis o open source, e le abbiamo controllate una per una.
Scartate (1) — e perché
- Pipecat (si apre in una nuova scheda) — Un framework ben mantenuto per costruire agent vocali, non un prodotto da installare e usare.
Chi l’ha già costruito
Partire da qui è vibecoding lo stesso: il prompt serve quando lo vuoi esattamente a modo tuo.
- LiveKit Agents + SIP (si apre in una nuova scheda) — Apache-2.0 realtime agent framework. Pair it with the separately deployed LiveKit Server and SIP service for a self-hosted phone stack. (alive)
- Pipecat (si apre in una nuova scheda) — BSD-2-Clause Python framework with composable voice pipelines and broad model, transport, and telephony integrations. You still own deployment and carrier operations. (alive)
- Voice OSS cost planner (si apre in una nuova scheda) — Source-linked calculator and deployment reference for platform, model, SIP, number, infrastructure, and operational costs. It is a planning companion, not an agent runtime. (alive)
Sei d’accordo?
La bilancia dei voti
Ancora nessun voto: il tuo è il primo.
Nessun voto ancora — il primo pesa.