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
import { useEffect, useState } from 'react'
/** The current time, refreshed every `everyMs`, so reminders return to their view when they pass. */
export function useNow(everyMs = 30_000): Date {
const [now, setNow] = useState(() => new Date())
useEffect(() => {
const id = setInterval(() => setNow(new Date()), everyMs)
return () => clearInterval(id)
}, [everyMs])
return now
}