Live calls still require Twilio, OpenAI, and a public HTTPS endpoint for the dashboard. Phone calls also need a Twilio Elastic SIP trunk that sends calls to your OpenAI project.
Run it yourself. Your assistant deploys LobbyStack on your servers and gets it to a test call.
Deploy on Railway
The LobbyStack Railway template deploys the admin, worker, and migration services with PostgreSQL, Redis, and a storage bucket. Railway generates every secret and database password. You enter an OpenAI API key and your Twilio credentials, then create your account on the admin domain and finish the steps in After deploying.After deploying
Browser test calls work as soon as the deploy finishes. Email, phone calls, website import, and Google Calendar need more setup, and the phone and calendar steps use the admin domain that Railway assigns. Set each variable on the service named below, then deploy the staged changes in Railway.Set up email
Password resets, verification codes, team invites, and operator alerts fail until the worker can send email. On theworker service, set:
SMTP_HOST,SMTP_USERNAME, andSMTP_PASSWORDfrom your email providerSMTP_PORT, which defaults to587, andSMTP_SECURE, which defaults tofalse. Use465andtrueif your provider needs TLS from the start.EMAIL_FROM, an address your provider lets you send from, such asLobbyStack <no-reply@example.com>EMAIL_REPLY_TO, if replies should go to another address
Finish phone calls
Browser calls work without these steps. Phone calls need an OpenAI project with SIP enabled and a Twilio Elastic SIP trunk:- In the OpenAI dashboard, add a webhook for
live.transport.incomingthat points tohttps://your_admin_domain/api/webhooks/openai/live. - Set the webhook’s signing secret as
OPENAI_WEBHOOK_SECRETon theadminservice. - In Twilio, create an Elastic SIP trunk with the origination URI
sip:your_openai_project_id@sip.api.openai.com;transport=tls. - Set the trunk’s SID as
TWILIO_SIP_TRUNK_SIDon theworkerservice. The worker can’t provision a phone number without it.
Import websites (optional)
SetFIRECRAWL_API_KEY on the worker service. Without it, website import fails.
Connect Google Calendar (optional)
In Google Cloud, enable the Google Calendar API and create an OAuth client for a web application. Addhttps://your_admin_domain/api/calendar/google/callback as an authorized redirect URI. Set GOOGLE_CLIENT_ID and GOOGLE_CLIENT_SECRET on the admin service. The template fills in GOOGLE_REDIRECT_URI, and the worker reads all three from the admin.
With both values set, the sign-in and sign-up pages also offer Continue with Google. Add https://your_admin_domain/api/auth/callback/google to the same OAuth client as a second authorized redirect URI. Your partners’ domains don’t offer it: people sign in there with email and password.
Your partners’ businesses connect their calendars on the partner’s domain through the same /api/calendar/google/callback redirect URI. Google sends the person back to your admin domain, which passes them on to the partner’s domain to finish.
Connect Cal.com (optional)
In Cal.com, open Settings, then Developer, then OAuth clients, and create a confidential client. Addhttps://your_admin_domain/api/calendar/calcom/callback as its redirect URI and select every scope LobbyStack requests: PROFILE_READ, EVENT_TYPE_READ, SCHEDULE_READ, BOOKING_READ, BOOKING_WRITE, APPS_READ, WEBHOOK_READ and WEBHOOK_WRITE. Cal.com reviews a new client before other accounts can authorize it, and reviews it again when you add a scope. Set CALCOM_CLIENT_ID and CALCOM_CLIENT_SECRET on the admin service. The template fills in CALCOM_REDIRECT_URI, and the worker reads the Cal.com variables from the admin.
LobbyStack books under a stand-in attendee address, booking+appointment_id@ followed by CALCOM_PLACEHOLDER_EMAIL_DOMAIN. Set that variable on the admin service too: Cal.com stays off until it’s set, since Cal.com checks the domain for an MX record. Point the domain at a mail server that discards mail. Cal.com sends booking webhooks to APP_BASE_URL, so the worker needs the public admin address there.
Connect Calendly (optional)
In Calendly, open Developer tools from the profile menu, select Create OAuth app, and choose the Production environment. Addhttps://your_admin_domain/api/calendar/calendly/callback as its redirect URI and select every scope LobbyStack requests: users:read, organizations:read, event_types:read, availability:read, scheduled_events:read, scheduled_events:write, webhooks:read and webhooks:write. Calendly shows the client ID, client secret and webhook signing key once, so copy all three. Set CALENDLY_CLIENT_ID, CALENDLY_CLIENT_SECRET and CALENDLY_WEBHOOK_SIGNING_KEY on the admin service. The template fills in CALENDLY_REDIRECT_URI, and the worker reads the Calendly variables from the admin.
LobbyStack books under a stand-in invitee address, booking+appointment_id@ followed by CALENDLY_PLACEHOLDER_EMAIL_DOMAIN. Set that variable on the admin service too: Calendly stays off until it’s set. Calendly sends its invitee notifications to that address, so point the domain at a mail server that discards mail. Calendly sends booking webhooks to APP_BASE_URL, so the worker needs the public admin address there.
Use a custom domain
Add the domain to theadmin service, then set APP_BASE_URL on the admin service to https://your_domain. These variables reference it and follow the change:
SITE_URL,AUTH_TRUSTED_ORIGINS,TWILIO_SMS_WEBHOOK_URL,TWILIO_STATUS_CALLBACK_URL, andGOOGLE_REDIRECT_URIon theadminserviceAPP_BASE_URL,TWILIO_STATUS_CALLBACK_URL, andGOOGLE_REDIRECT_URIon theworkerservice
APP_BASE_URL, the exact origins in AUTH_TRUSTED_ORIGINS, and your partners’ domains. After the change, the Railway domain gets a 404. To keep it, add its origin to AUTH_TRUSTED_ORIGINS. A pattern such as https://*.example.com makes no hostname reachable, so list each hostname as its own origin. Health checks and provider webhooks answer on any hostname.
Official baseline
The repository’sdocker-compose.yml runs:
- PostgreSQL with pgvector for durable data, authentication state, and knowledge embeddings
- Redis for queues, rate limits, and realtime coordination
- a persistent Docker volume for recordings and uploaded documents
- the Next.js admin dashboard and HTTP API
- the background worker and transactional outbox dispatcher, which also runs each GPT-Live call
- Caddy to route the dashboard hostname, over plain HTTP behind the proxy or load balancer that terminates HTTPS, or over HTTPS with certificates Caddy issues for your dashboard and your partners’ domains
Data flow
- The dashboard and API read and write PostgreSQL through role-specific connections and row-level security.
- Durable side effects enter the PostgreSQL outbox in the same transaction as business state changes.
- The worker dispatches queued jobs and refreshes business context snapshots.
- OpenAI hosts call audio. The admin starts each call with the business snapshot, and the worker answers GPT-Live’s requests for bookings, messages, and transfers.
- The admin and worker share the configured storage provider. Single-host Compose deployments use a persistent local volume by default.
Responsibilities
You are responsible for:- PostgreSQL, Redis, and file-storage durability
- backups, restore drills, upgrades, and monitoring
- public DNS and TLS for the dashboard
- Twilio, OpenAI, email, calendar, billing, and analytics credentials
- secret rotation and least-privilege database roles
Get support
You can get free help from the community or buy a support plan from the LobbyStack team:- Ask questions on Discord and report bugs in GitHub issues. Community help is free.
- Buy Premium support or Enterprise support for email support with reply-time targets and help installing and upgrading. The self-hosted pricing page lists the prices and what each plan includes.
- If your agency runs the partner program on your own servers, the white-label page lists support plans with one price per agency.