Understanding Departments
Departments serve multiple purposes in TelemanAI:- Team Organization: Group agents by function (Sales, Support, etc.)
- Provider Assignment: Assign specific Twilio providers to departments
- Call Routing: Route inbound calls to specific departments
- IVR Integration: Create interactive voice response menus
- Reporting: Track metrics by department
- Access Control: Manage permissions at department level
Department Types
TelemanAI supports three types of departments:Outbound Departments
- Designed for outbound calling campaigns
- Agents make calls to contacts
- Used with voice campaigns and web dialer
- Tracks outbound call metrics
Inbound Departments
- Handle incoming customer calls
- Routes calls to available agents
- Queue management for busy times
- Tracks inbound call metrics
IVR Departments
- Interactive Voice Response systems
- Automated menu navigation
- Custom call flows
- Self-service options for callers
Creating a Department
Enter Department Name
Provide a descriptive name for the department:
- Example: “Sales Team”, “Customer Support”, “Technical Support”
- Use clear, recognizable names
- Name is used in routing and reporting
Select Department Type
Choose the operation type:Outbound
- For making outbound calls
- Used in campaigns and manual dialing
- Tracks outbound metrics
- For receiving incoming calls
- Automatic call distribution
- Queue management
- For interactive voice menus
- Custom call flows
- Redirects to IVR configuration on save
You can only select one type per department. Create separate departments for different functions.
Assign Providers
Select one or more Twilio providers for this department:
- Multiple providers can be selected
- Providers must be configured and active
- Department calls will use these providers
- Load balancing across providers (if multiple)
Set Department Status
Toggle the Active status:
- Active: Department can receive/make calls
- Inactive: Department is disabled
- Testing departments before launch
- Temporarily disabling during off-hours
- Archiving old departments
Managing Department Providers
Providers determine which Twilio credentials and phone numbers are used for department calls.Assigning Multiple Providers
You can assign multiple providers to a department for:- Load balancing: Distribute calls across providers
- Redundancy: Fallback if primary provider fails
- Cost optimization: Route calls through cheapest provider
- Geographic routing: Use local numbers per region
Provider Selection Logic
When department has multiple providers:- System selects active providers only
- Checks provider balance
- Verifies hourly quota availability
- Selects based on configuration or first available
Configuring Inbound Call Routing
Inbound departments route incoming calls to available agents.Setting Up Inbound Routing
Inbound Call Flow
When a call arrives at an inbound department:- Call arrives at Twilio number or SIP domain
- Department identified from provider or SIP configuration
- Agent availability checked in department
- If agent available:
- Call routes to agent’s web dialer
- Agent receives notification
- Call connects
- If no agents available:
- Call enters queue
- Caller hears hold message
- System announces queue position
- Retries when agent becomes available
Setting Up Outbound Departments
Outbound departments are used for campaigns and manual outbound calling.Configuring IVR Departments
IVR (Interactive Voice Response) departments provide automated call menus.Design IVR Flow
On the IVR configuration page:
- Create menu options (Press 1 for Sales, Press 2 for Support)
- Configure routing for each option
- Set default/timeout behavior
- Add voice prompts or text-to-speech
IVR configuration uses a visual flow builder. Detailed IVR setup is covered in the IVR documentation.
Managing Agents
Agents are users assigned to departments who handle calls.Understanding Agent Roles
Agents in TelemanAI:- Make and receive calls through web dialer
- Run voice campaigns
- Handle inbound calls routed to their department
- Track call history and metrics
- Update contact information
Adding Agents to Departments
Agents are assigned to departments through the department agent relationship:Add Agent
Select users to add as agents:
- Choose from existing user accounts
- Multiple agents can be assigned
- Agents can belong to multiple departments
Agent Availability
For inbound call handling, agents must set their availability:Agent Marked Available
Opening the dialerpad marks agent as available:
- System updates agent availability status
- Agent can now receive inbound calls
- Status visible to routing system
Removing Agents from Departments
Agent Permissions
Agent permissions are typically managed at the user account level:- View permissions: Access to contacts, campaigns, call history
- Call permissions: Ability to make outbound calls
- Campaign permissions: Run voice campaigns
- Department access: Which departments agent belongs to
Department-Based Call Queue
When all agents in a department are busy, calls enter a queue.Queue Behavior
- Call arrives when no agents available
- Queue entry: Call is added to department queue
- Hold message: Caller hears “All agents are busy…”
- Position announcement: “You are number X in the queue”
- Periodic updates: System repeats message every few seconds
- Agent available: Call routes to first available agent
- Queue exit: Caller connects or hangs up
Queue Management Functions
The system provides functions for queue management:moveToQueue(): Add caller to queueremoveFromQueue(): Remove caller when connectedgetCallerQueueSerialNumber(): Get caller’s queue positioncheckAgentAvailability(): Check if agents are available
Editing Departments
Modify Settings
Update any department configuration:
- Name
- Department type
- Provider assignments
- Active status
Update Providers
Change provider assignments:
- Existing providers are removed first
- New providers are assigned
- Both actions happen in a database transaction
Deleting Departments
Department Reporting and Analytics
Track department performance through various metrics:Available Metrics
- Call volume: Total calls by department
- Average handle time: Average call duration
- Agent utilization: Percentage of time agents are on calls
- Queue statistics: Average wait time, abandoned calls
- Conversion rates: For outbound departments
- Customer satisfaction: If post-call surveys enabled
Accessing Reports
- Navigate to Dashboard → Analytics
- Filter by department
- Select date range
- View metrics and charts
- Export reports as needed
Best Practices
Department Structure
Department Structure
- Create departments aligned with business functions
- Keep department sizes manageable (5-15 agents optimal)
- Use clear, descriptive names
- Document department purposes and workflows
- Review and optimize department structure quarterly
Agent Management
Agent Management
- Cross-train agents across departments for flexibility
- Monitor agent availability and utilization
- Set clear expectations for availability hours
- Provide agents with necessary tools and information
- Regular training and feedback sessions
Provider Assignment
Provider Assignment
- Assign multiple providers for redundancy
- Monitor provider balances regularly
- Test provider connectivity before busy periods
- Use geographically appropriate providers
- Document provider assignments and purposes
Inbound Call Handling
Inbound Call Handling
- Ensure adequate agent coverage during business hours
- Monitor queue times and adjust staffing
- Set up overflow routing for busy periods
- Use IVR for off-hours or overflow
- Track and optimize average handle time
Performance Optimization
Performance Optimization
- Review department metrics weekly
- Identify bottlenecks in call routing
- Optimize agent schedules based on call volume
- Implement skills-based routing where applicable
- Regular testing of call flows and routing
Troubleshooting
Inbound Calls Not Routing
Inbound Calls Not Routing
Problem: Calls to department not connecting to agentsSolution:
- Verify department has assigned agents
- Check at least one agent is available (dialerpad open)
- Ensure department status is Active
- Verify provider phone number is correct
- Check provider connection is working
- Review call logs for routing errors
Cannot Create Department
Cannot Create Department
Problem: Error when saving departmentSolution:
- Ensure name is filled in (required)
- Select at least one provider (required)
- Choose department type (required)
- Check for duplicate department names
- Verify providers exist and are active
- Check database connection
Agents Not Receiving Calls
Agents Not Receiving Calls
Problem: Specific agents never receive inbound callsSolution:
- Verify agent is assigned to department
- Check agent has opened dialerpad page
- Ensure agent hasn’t denied microphone permissions
- Check agent’s web dialer is connected
- Verify agent account is active
- Test with different browser
All Agents Busy (Queue Issues)
All Agents Busy (Queue Issues)
Problem: Calls always go to queue even when agents are freeSolution:
- Check agent availability status in database
- Verify dialerpad page is active for agents
- Ensure agents are in correct department
- Check for JavaScript errors in agent browsers
- Verify queue logic is working correctly
- Review agent_is_available table
Cannot Delete Department
Cannot Delete Department
Problem: Error when attempting to delete departmentSolution:
- Check for active campaigns using department
- Verify no active calls in department
- Remove all agents first (if required)
- Check database constraints
- Review error message for specifics
Advanced Configuration
Skills-Based Routing
For advanced routing, you can implement skills-based routing:- Define agent skills or expertise levels
- Tag contacts or campaigns with required skills
- Route calls to agents with matching skills
- Fallback to general agents if no skilled agents available
Department Hierarchies
Organize departments in hierarchies:- Parent department: Sales
- Child department: Inside Sales
- Child department: Field Sales
- Reporting rollups
- Overflow routing
- Skill escalation
Load Balancing Strategies
Implement load balancing across agents:- Round-robin: Distribute calls evenly
- Least-busy: Route to agent with fewest active calls
- Skills-based: Route based on agent expertise
- Performance-based: Route to highest-performing agents
Related Resources
Web Dialer
Learn how agents use the web dialer
SIP Trunk Setup
Configure SIP Trunks for department routing
Creating Campaigns
Use departments in campaigns
SIP Trunk Setup
Configure SIP trunks for calling