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.

- Drag a Branch step into your flow.
- Set the evaluation variable to
{{call.fromAreaCode}}. - 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).

- Connect each branch to the appropriate Dial step or queue.
Handling unmatched callers:

- 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.

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

- Drag a Branch step into your flow.
- Set the evaluation variable to
{{call.fromCountryCode}}. - 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,353for UK and Ireland).

- Connect each branch to the appropriate Dial step.
Handling unmatched callers:

- Any Value — Catches callers from any country not explicitly listed.
- No Value — Catches callers with no country code in their caller ID.

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.
44and+44are 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.