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.
TypeScript ai-receptionistanswering-serviceappointment-bookinglivekitlocal-firstmcpopen-sourceself-hostedsiptelephonytypescriptvoice-agentvoice-ai
// Store screenshots from a local stack with the demo data (pnpm db:seed), rendered as inside the app: Capacitor's
// native bridge is faked, so the app's own look shows (no purchase steps). Run from apps/web (Playwright is there):
// LINEDESK_URL=http://localhost:5173 node ../mobile/scripts/store-screenshots.mjs <out dir>
// then frame them: python3 ../mobile/scripts/store-frame.py <Geist 600 .woff> <out dir>/ios <framed dir>
import { chromium } from '@playwright/test'
import { mkdirSync } from 'node:fs'
const B = process.env.LINEDESK_URL ?? 'http://localhost:5173'
const out = process.argv[2] ?? 'store-screenshots'
const sizes = {
ios: { width: 440, height: 956, scale: 3, platform: 'ios' }, // 1320 x 2868 (iPhone 6.9")
android: { width: 360, height: 720, scale: 3, platform: 'android' }, // 1080 x 2160 (2:1)
}
const browser = await chromium.launch()
for (const [name, s] of Object.entries(sizes)) {
mkdirSync(`${out}/${name}`, { recursive: true })
const ctx = await browser.newContext({
viewport: { width: s.width, height: s.height },
deviceScaleFactor: s.scale,
isMobile: true,
hasTouch: true,
userAgent:
s.platform === 'ios'
? 'Mozilla/5.0 (iPhone; CPU iPhone OS 18_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148'
: 'Mozilla/5.0 (Linux; Android 15; Pixel 9) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0 Mobile Safari/537.36',
})
await ctx.addInitScript(platform => {
// What Capacitor looks for to know it runs in the app; the plugins then never answer (nothing waits on them here).
if (platform === 'android') window.androidBridge = { postMessage() {} }
else window.webkit = { messageHandlers: { bridge: { postMessage() {} } } }
}, s.platform)
const p = await ctx.newPage()
await p.goto(B + '/')
await p.evaluate(async () =>
fetch('/api/auth/sign-in/email', {
method: 'POST',
headers: { 'content-type': 'application/json' },
body: JSON.stringify({ email: '[email protected]', password: 'brightwater-demo' }),
}).then(r => r.status),
)
await p.reload()
await p.waitForTimeout(3000)
// The one-time "Add a passkey" card is no part of the app's look.
await p
.getByRole('button', { name: 'Not now' })
.click({ timeout: 3000 })
.catch(() => {})
const shot = async (hash, file, wait = 2500) => {
await p.evaluate(h => {
window.location.hash = h
}, hash)
await p.waitForTimeout(wait)
await p.screenshot({ path: `${out}/${name}/${file}.png` })
}
await shot('#calls', '1-inbox', 4000)
const first = await p
.locator('[data-call-id]')
.first()
.getAttribute('data-call-id')
.catch(() => null)
if (first) await shot(`#call/${first}`, '2-call')
await shot('#contacts', '3-contacts')
await shot('#insights', '4-insights')
await shot('#assistant', '5-assistant')
await ctx.close()
}
await browser.close()