Deploy ai-front-desk-template
AI receptionist that answers, texts back, books and invoices
Just deployed
Redis
Just deployed
/data
Just deployed
Just deployed
/var/lib/postgresql/data
Deploy and Host AI Front Desk (AI Offices OS) on Railway
AI Front Desk is a self-hosted AI receptionist and front office for service businesses. Ava answers the phone, texts back missed calls, books appointments, sends review requests, runs follow-ups, and invoices through Stripe. It is multi-tenant, so one deployment can serve many businesses, and every outbound channel is off until you turn it on.
About Hosting AI Front Desk (AI Offices OS)
This template deploys four services: the app (API, owner dashboard, scheduler, and the SMS, call, follow-up, review, campaign, billing, and support desks), the relay (a Twilio ConversationRelay WebSocket bridge for live voice, built from the voice-relay/ directory of the same repository), a Postgres database (Prisma migrations run automatically before each start), and Redis (BullMQ queues and rate limits). All internal secrets are generated at deploy time. The app boots with only an Anthropic key and keeps each desk dark with HTTP 503 until that desk's provider key is present, so nothing sends, calls, or charges by accident. Per-provider and per-tenant daily spend ceilings are enforced by the built-in model router.
Common Use Cases
- A plumber, HVAC, electrical, or cleaning company that misses after-hours calls and wants them answered, texted back, and booked.
- An agency or operator running a front desk for several local businesses from one deployment, each as its own tenant.
- A business that wants review requests, follow-ups, and Stripe invoices sent from one place with consent gating and spend caps.
Dependencies for AI Front Desk (AI Offices OS) Hosting
- Anthropic API key (required for Ava's answers): set
AIOFFICES_ANTHROPIC_KEYonapp. - Twilio account for the phone line and SMS: set
AIOFFICES_TWILIO_SIDandAIOFFICES_TWILIO_TOKENonapp, andAIOFFICES_TWILIO_TOKENonrelay(the relay verifies Twilio's signature on every WebSocket upgrade). - Optional: ElevenLabs (
ELEVENLABS_API_KEY,AVA_TTS_VOICE) for Ava's voice, Cal.com (CALCOM_API_KEY,CALCOM_WEBHOOK_SECRET) for bookings, Resend (RESEND_API_KEY,RESEND_FROM) for email, Stripe (STRIPE_SECRET_KEY,STRIPE_WEBHOOK_SECRET) for invoices. Stripe accepts test keys only unlessSTRIPE_LIVE_OK=1.
Deployment Dependencies
- Repository: https://github.com/LeadGenius1/ai-offices-os
- Twilio ConversationRelay: https://www.twilio.com/docs/voice/twiml/connect/conversationrelay
- Anthropic API: https://docs.anthropic.com
- Prisma migrations run via
npx prisma migrate deploybefore the app starts.
Implementation Details
After the first deploy, open the app domain and create the owner account. Owners and admins must enroll a TOTP factor on first login. Point your Twilio number's voice webhook at the app and its ConversationRelay at the relay's wss:// domain (already wired into AVA_VOICE_RELAY_WSS). Turn desks on one at a time with the feature switches, all default off:
SMS_DESK_ENABLED=1
CALL_DESK_ENABLED=1
CAMPAIGNS_SEND_ENABLED=1
REVIEWS_SEND_ENABLED=1
BILLING_REMINDERS_ENABLED=1
Daily model spend is capped by ROUTER_DAILY_CEILING_ANTHROPIC_USD (default 15), ROUTER_DAILY_CEILING_OPENROUTER_USD (default 10), and ROUTER_DAILY_CEILING_TENANT_USD (default 5). The router refuses calls past the ceiling instead of running up a bill.
Why Deploy AI Front Desk (AI Offices OS) on Railway?
Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you don't have to deal with configuration, while allowing you to vertically and horizontally scale it.
By deploying AI Front Desk on Railway, you are one step closer to supporting a complete full-stack application with minimal burden. Host your servers, databases, AI agents, and more on Railway.
Template Content
AIOFFICES_ANTHROPIC_KEY
Redis
redis:8.2REDISPORT
REDISUSER
PGDATA
PGPORT
POSTGRES_DB
POSTGRES_USER
SSL_CERT_DAYS
RAILWAY_DEPLOYMENT_DRAINING_SECONDS
