Inbound Calls
Routing inbound calls to campaigns.
Inbound Calls
Voice agents can be configured to receive inbound calls. When a lead calls one of your phone numbers, the system routes the call to the appropriate campaign and handles it with the AI agent.
Enabling Inbound Calls
On the voice agent configuration page:
- Toggle Enable Inbound Calls
- Add one or more Inbound Campaigns — these are the campaigns that inbound calls will be routed to
Campaign Priority
Inbound campaigns are ordered by priority:
- Index 0 is the primary campaign (used as the default for unknown callers)
- The system searches campaigns in order to find a matching lead
- If the caller's phone number matches a lead in a lower-priority campaign, that campaign is used
Inbound Call Flow
- A call comes in to the agent's phone number
- The system identifies the agent by the phone number
- The caller's phone number is matched against leads in the inbound campaigns (in priority order)
- If a match is found, the call is associated with that lead and campaign
- If no match is found, a new lead may be created in the primary campaign
- The voice prompt template is rendered with the lead data and
call_direction: inbound - The AI agent handles the conversation
- Post-call processing runs as normal (webhook, status update, post-call pipeline)
Prompt Conditionals
Voice prompt templates can use the call_direction variable to customize behavior for inbound vs. outbound calls:
call_direction = inbound— The lead called youcall_direction = outbound— You called the lead
This lets you create different greetings and conversation flows. For example, an inbound call might skip the introduction and go straight to asking how you can help.
Contact Type
The contact_type variable is also set during inbound calls:
new— Brand new lead, no prior contactfirst— First contact in this campaignreturning— Lead has been contacted before
Combined with call_direction, you can create highly specific prompt conditionals (e.g., a returning lead calling back gets a different experience than a new inbound caller).