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
export { createGmail, createGmailOAuth, GMAIL_SCOPES, gmailBodyText } from './google.ts'
export { createGraphMail, createMicrosoftMailOAuth, MICROSOFT_MAIL_SCOPES } from './microsoft.ts'
export { createDemoMail, DEMO_MAILBOX } from './demo.ts'
export * from './provider.ts'
export { namesOf, redactPersonal, stripQuoted } from './redact.ts'
import { createGmail } from './google.ts'
import { createGraphMail } from './microsoft.ts'
import type { AccessTokenSource, MailProvider, MailProviderName } from './provider.ts'
/** The adapter for a connected mailbox. */
export function createMailProvider(
name: MailProviderName,
options: { accessToken: AccessTokenSource; accountEmail: string; fetch?: typeof fetch; timeoutMs?: number },
): MailProvider {
return name === 'google' ? createGmail(options) : createGraphMail(options)
}