Skip to content

The open-source AI receptionist for businesses. Answers every call, books the appointment and hands over to a person when needed. You own the code and the data.

3.9 KB
Raw Blame

Linedesk docs

How it works, in ten lines

  1. Three apps: the API (apps/api, Hono, which also runs the pg-boss jobs), the web app (apps/web, a Vite + React SPA) and the voice agent (apps/agent, LiveKit Agents in TypeScript). See architecture.md §3.
  2. One write path: every change, from the UI, the REST API, MCP or the voice agent, is an action in the registry (packages/actions) run through POST /v1/actions/<name>. See §5.
  3. Local-first UI: the web app applies a change locally at once and sends it through an IndexedDB outbox; data comes back through read sync (Electric). See §6.
  4. Postgres is the source of truth, with Drizzle migrations (packages/db); every synced table belongs to a workspace. See §9.
  5. A call: the carrier (Telnyx or Twilio) sends it over SIP to LiveKit; the agent answers with speech to text, a language model and a voice (or one speech-to-speech model), calls actions as tools, and the API stores the summary, transcript and recording. See §7.
  6. Providers behind interfaces: telephony, speech, model, voice, calendar, email and storage are adapters; an operator connects the keys in Server admin. See §12.
  7. Calendars and phone setup: own adapters for Google, Microsoft, CalDAV, Calendly and Cal.com, and phone modes: conditional forwarding with a carrier code, forward all, or a new or ported number. See §8.
  8. Integrations: API keys, OpenAPI, MCP, signed webhooks and connected business apps. See §13.
  9. Self-hosting: one Docker Compose stack with Caddy in front; every service has a memory and a CPU limit. See §11.
  10. Optional for hosted installs: billing with Stripe and white-label partners. See §17 and §18.

Every doc

Run it

  • hosting.md: put Linedesk on a server: providers, sizes, the one-command install, your own domain, calls to other countries, billing your own workspaces
  • self-hosting.md: the self-hosting reference: settings, HTTPS and proxies, deploy methods, ports and firewall, memory and CPU, push, recordings, updates, backups and restore
  • backups-wal.md: WAL archiving, for restores that lose minutes instead of a day
  • operator-responsibilities.md: your responsibilities when you run Linedesk: callers' data, recording, AI disclosure, emergencies
  • public-demo.md: a live demo call on your website

Build on it

  • api.md: the public API, API keys, MCP and the setup MCP for AI agents
  • webhooks.md: an assistant's webhook: hooks, payloads, signatures, the during-call lookup
  • crm-sync.md: connected business apps: HubSpot, Slack, Jobber (coming soon)
  • white-label.md: agencies and partners running workspaces for their clients

Work on the code

  • architecture.md: how Linedesk works, the single source of truth
  • commands.md: every command: dev stack, voice, call tests, recordings, snapshots, seeding
  • local.md: a local stack like production, on a public HTTPS address
  • dev-mode.md: run the stack from a git checkout, on your machine or a test server
  • design-principles.md: the UI rules
  • translations.md: languages, the translation pipeline, fixing a translation
  • ci.md: what CI checks on a pull request and on the trunk
  • research.md: what an AI call-answering product must do well