A front-desk agent that greets callers and transfers them to the correct department by phone number or SIP address. Visitor check-in is opt-in.
Departments the agent can transfer callers to. Each ReceptionistDepartment
has:
name (string, required) — department identifier (e.g. "sales").description (string, required) — description shown to the AI.number (string, required) — phone number or SIP address dialed by
transfer_call.Initial greeting spoken when the call starts.
Voice identifier passed to addLanguage.
Optional company name appended to the greeting.
When true, registers the check_in_visitor tool.
Callback fired when a visitor checks in. Receives a record with the fields collected during check-in.
Agent display name.
HTTP route for the agent.
Additional AgentBase options forwarded to the constructor.
transfer_call uses FunctionResult.connect() to dial the
department’s configured number.