ConciergeAgent
A concierge that provides multi-department routing with a knowledge base of department info, hours of operation, and call transfer capabilities.
ConciergeConfig
departments
List of departments available for routing. Each Department object has:
name(string, required) — Department name (e.g.,"Sales").description(string, required) — What this department handles.transferNumber(string) — Phone number or SIP address for transfers.keywords(string[]) — Keywords that help route callers to this department.hoursOfOperation(string) — Human-readable hours (e.g.,"Mon-Fri 9am-5pm EST").
companyName
Company name used in greetings and prompts.
generalInfo
General company information the agent can share with callers.
afterHoursMessage
Message spoken when a department is closed or has no transfer number.
name
Agent display name.
agentOptions
Additional AgentBase options forwarded to the constructor.
Built-in Tools
The transfer_to_department tool uses FunctionResult.connect() to transfer the call.
If the department has no transferNumber, the agent returns the afterHoursMessage instead.