ReceptionistAgent
A front-desk agent that handles visitor check-in, department directory lookup, and
call transfers by extension. The check_in_visitor tool is enabled by default and
fires an optional callback when a visitor checks in.
ReceptionistConfig
companyName
Company name displayed in greetings and prompts.
departments
Departments with extensions for the directory. Each ReceptionistDepartment object has:
name(string, required) — Department name (e.g.,"Engineering").extension(string, required) — Internal extension number or SIP address.description(string) — Optional description of the department.
welcomeMessage
Custom welcome message. Defaults to "Welcome to {companyName}! How may I help you today?".
checkInEnabled
Whether visitor check-in functionality is enabled. When true, the check_in_visitor tool is registered.
onVisitorCheckIn
Callback fired when a visitor checks in. Receives a record with visitor_name, purpose,
visiting, and checked_in_at fields.
name
Agent display name.
agentOptions
Additional AgentBase options forwarded to the constructor.
Built-in Tools
The transfer_to_department tool uses FunctionResult.connect() to
dial the department’s extension and transfer the call.