Skip to content

Route by Caller Location

Use the Branch step to route inbound calls based on where the caller is calling from. Revenue.io can evaluate the caller’s US area code or international country code and send the call down the matching branch.

Route by US area code

Goal: Route California callers to a West Coast queue and all other callers to a general queue.

Branch step configured to evaluate the call.fromAreaCode variable
  1. Drag a Branch step into your flow.
  2. Set the evaluation variable to {{call.fromAreaCode}}.
  3. Add a branch for each territory. In the Branch Assignment field, enter a comma-separated list of area codes — no spaces (e.g., 213,310,323,424,562,619,626,650,657,661,714,747,760,805,818,831,858,909,916,925,949).
Branch assignment showing California area codes entered as a comma-separated list
  1. Connect each branch to the appropriate Dial step or queue.

Handling unmatched callers:

Call flow showing Any Value and No Value branches for unmatched area codes
  • Any Value — Catches callers whose area code is not listed in any branch. Use this as your default/fallback path (e.g., route to a national queue).
  • No Value — Catches callers whose caller ID does not contain an area code — blocked numbers, anonymous callers, or non-US/Canada numbers. Route these to a Greeting + Hangup, voicemail, or the same default queue.
No Value branch configuration for callers with no area code

Route by country code

Goal: Route UK and Ireland callers to a regional team and all other countries to a global queue.

Branch step configured to evaluate the call.fromCountryCode variable
  1. Drag a Branch step into your flow.
  2. Set the evaluation variable to {{call.fromCountryCode}}.
  3. Add a branch for each country or region. In the Branch Assignment field, enter a comma-separated list of country codes — no spaces (e.g., 44,353 for UK and Ireland).
Branch assignment showing UK and Ireland country codes
  1. Connect each branch to the appropriate Dial step.

Handling unmatched callers:

Call flow showing Any Value branch catching unlisted country codes
  • Any Value — Catches callers from any country not explicitly listed.
  • No Value — Catches callers with no country code in their caller ID.
No Value branch for callers without a country code

Tips

  • A single call flow can include Branch steps for both area code and country code routing — for example, first branch by country, then branch by area code within a specific country’s path.
  • Branch values are evaluated as exact string matches. 44 and +44 are treated as different values — use whichever format Revenue.io stores in {{call.fromCountryCode}} for your account.
  • Use the Any Value branch liberally. Calls that don’t match any explicit branch and have no Any Value path configured will stall in the flow.