πŸ€– TLH AI Phone Agent

After-Hours Call Handling with ElevenLabs + CallRail

Implementation Plan v1.0

🎯 Goal

Automatically answer TLH phone calls after business hours with an AI agent that:

πŸ”„ How It Works

πŸ“ž Inbound Call
↓
CallRail (tracking number β€” attribution preserved)
↓
CallRail auto-creates Lead in Salesforce βœ“
↓
Call Flow Builder [Schedule Check]
↓
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ Business Hours β”‚ After Hours β”‚
β”‚ β†’ Forward to β”‚ β†’ SIP Forward β”‚
β”‚ team phones β”‚ to ElevenLabsβ”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
↓
ElevenLabs AI Agent (handles conversation)
↓
Call Ends β†’ Query SF by Phone Number
↓
Update Lead: Notes + Status
↓
SMS Confirmation to Caller

🧩 Components

ComponentStatusPurpose
CallRail βœ“ Have Tracking numbers, attribution, Call Flow Builder
ElevenLabs βœ“ Have AI voice agent, SIP trunking, conversation handling
Salesforce βœ“ Have Lead creation via webhook
SIP Trunk Config To Setup Connect CallRail β†’ ElevenLabs
Webhook Endpoint To Build ElevenLabs β†’ Query SF Lead by phone β†’ Update notes/status
CallRail β†’ SF Sync βœ“ Have Auto-creates Leads from inbound calls (already working)

πŸ’° Cost Estimate

$0.00
New Phone Numbers
~$0.12
Per Minute (AI)
~$15-30
Est. Monthly (50-100 calls)

Cost Breakdown

ItemCostNotes
ElevenLabs Voice~$0.08/minTTS + ASR
LLM (Gemini Flash)~$0.02/minCheapest option
ElevenLabs Platform~$0.02/minTurn-taking, orchestration
CallRailExistingNo additional cost
SalesforceExistingNo additional cost
πŸ’‘ Volume Estimate

If TLH gets ~50 after-hours calls/month averaging 3 minutes each = 150 minutes = ~$18/month

πŸ“‹ Implementation Steps

Phase 1: ElevenLabs Agent Setup (Day 1)

1 Create Agent in ElevenLabs Dashboard
Go to elevenlabs.io β†’ Agents β†’ Create New Agent
2 Configure Agent Settings
β€’ Voice: Select warm, professional voice (recommend "Rachel" or custom clone)
β€’ LLM: Gemini 2.0 Flash (fastest, cheapest)
β€’ Language: English (US)
3 Set System Prompt
See prompt template below
4 Add Knowledge Base
Upload TLH FAQ, service descriptions, coverage areas

Phase 2: SIP Trunk Configuration (Day 1-2)

5 Create SIP Trunk in ElevenLabs
Agents β†’ Phone Numbers β†’ Import SIP Trunk
β€’ Authentication: IP Allowlist (add CallRail IPs) or Digest Auth
β€’ Note the SIP URI: sip:+1XXXXX@sip.rtc.elevenlabs.io:5060
6 Configure CallRail Call Flow
For each tracking number:
β€’ Call Flow Builder β†’ Add "Schedule" step
β€’ Business hours: Forward to existing destinations
β€’ After hours: Add "SIP Endpoint" step β†’ Enter ElevenLabs SIP URI

Phase 3: Salesforce Integration (Day 2-3)

βœ“ Simplified: CallRail Already Creates Leads

CallRail auto-creates Leads in Salesforce from inbound calls. The AI agent just needs to UPDATE the existing Lead after the conversation.

7 Create Lead Update Webhook
When call ends, ElevenLabs sends conversation data to webhook:
β€’ Zapier: Catch Hook β†’ Salesforce "Find Record" (by phone) β†’ "Update Record"
β€’ Make.com: Same flow, more control
β€’ Custom: Salesforce API endpoint
8 Configure ElevenLabs Post-Call Tool
Agent β†’ Tools β†’ Add Server Tool
β€’ Name: "update_lead"
β€’ Trigger: End of conversation
β€’ Endpoint: Your webhook URL
β€’ Parameters: caller_phone, inquiry_type, conversation_summary, callback_preference
9 Salesforce Field Mapping
Webhook updates these Lead fields:
β€’ Description/Notes: AI conversation summary
β€’ Status: "New" β†’ "Working" (or custom "AI Qualified")
β€’ Lead Source Detail: "After-Hours AI Call"
β€’ Custom fields: Inquiry Type, Callback Time Preference
10 Add SMS Confirmation Tool
Use ElevenLabs built-in SMS tool or webhook to smrtPhone

Phase 4: Testing & Launch (Day 3-4)

11 Test End-to-End
β€’ Call tracking number after hours
β€’ Verify AI answers correctly
β€’ Confirm Lead exists in Salesforce (created by CallRail)
β€’ Confirm Lead notes/status UPDATED by AI
β€’ Confirm SMS received
12 Gradual Rollout
Start with 1-2 tracking numbers, monitor for a week, then expand

πŸ’¬ Agent System Prompt

You are a friendly, professional receptionist for True Legacy Homes, a family-owned company in San Diego that helps families with estate sales, real estate, and senior transitions. ## Your Role You answer calls after business hours (before 8am and after 6pm, and weekends). Your job is to: 1. Greet the caller warmly 2. Find out what they need help with 3. Collect their information so someone can call them back 4. Reassure them that a team member will reach out promptly ## Conversation Flow ### Opening "Hi, thanks for calling True Legacy Homes! This is our after-hours line. I'm an AI assistant and I'd be happy to help get you connected with our team. What can I help you with today?" ### Qualifying Questions Based on their response, determine if they're calling about: - **Estate Sale**: "Are you looking to have an estate sale, or interested in attending one of our upcoming sales?" - **Selling Property**: "Are you thinking about selling a home? Is it your own home or are you helping a family member?" - **General Inquiry**: "No problem! Let me get your information and have someone call you back." ### Information Collection Collect (in natural conversation, not like a form): - Their name - Best phone number to reach them - Property address (if applicable) - Brief description of their situation - Best time to call back ### Closing "Perfect! I've got all your information. Someone from our team will give you a call [tomorrow morning / on Monday / within 24 hours]. Is there anything else I can help you with?" "Great, have a wonderful [evening/day]! Goodbye." ## Important Guidelines - Be warm and conversational, not robotic - If someone is emotional (dealing with a death, difficult family situation), be empathetic - Don't make promises about pricing or timelines - If asked something you don't know, say "I want to make sure you get accurate information, so let me have one of our specialists call you back about that." - Keep calls concise but not rushed β€” aim for 2-3 minutes ## Service Areas - San Diego County (primary) - Orange County (expanding) ## Business Hours Monday-Friday: 8am - 6pm Saturday-Sunday: Closed (estate sale events may occur)

πŸ“… Timeline

Day 1
Agent Setup
Create ElevenLabs agent, configure voice/LLM, set system prompt, upload knowledge base
Day 2
SIP & CallRail
Configure SIP trunk, update CallRail call flows for 1-2 test numbers
Day 3
Salesforce Integration
Set up webhook (Zapier or direct), configure Lead creation, test end-to-end
Day 4
Testing
Internal team test calls, refine prompt based on results, fix any issues
Week 2
Soft Launch
Enable on 2-3 primary numbers, monitor daily, collect feedback
Week 3+
Full Rollout
Enable on all CallRail numbers, ongoing monitoring and optimization

⚠️ Risks & Mitigations

RiskLikelihoodMitigation
Caller frustrated with AI Medium Add "press 0 for voicemail" fallback option
Misunderstood caller intent Medium Agent confirms understanding, human reviews all leads
Technical failure (SIP down) Low CallRail fallback to voicemail if SIP fails
Sensitive caller situations Medium Prompt includes empathy guidelines, escalation path

πŸ“Š Success Metrics

πŸš€ Next Steps

  1. Approve this plan β€” Any changes needed?
  2. Access check β€” Confirm ElevenLabs account has Agents access
  3. CallRail access β€” Who can edit Call Flow Builder?
  4. Decide webhook approach β€” Zapier (fast) vs custom (more control)?
  5. Schedule implementation β€” Pick a week to execute