docs
/
AI skills

Business phone number and call routing

Take the business's number, decide who it rings, and how it answers — straight to people, to an AI, or through a menu that changes with business hours. Buying the number and switching live callers over are a person's yes.

A number answers in one of two ways, and the number's mode decides which:

Mode (Phone & SMS › the number › Webhook Configuration)How calls are answeredSet where
Direct Voice (the default)Rings the people the number is assigned to, or an AI, or forwards. When nobody answers, a failover runs. No menu, no business hours.On the number: Phone & SMS › Phone Configuration › Call Handling
IVR MenuRuns the number's IVR routing record: Forward to a group, AI assistant, Simple menu, or Automation flow, with business hours.AI, IVR, Automation › IVR & Phone System (/ivr)

Saving an IVR routing does not switch the number. A routing for a number still in Direct Voice mode is never used for its calls (only its missed-call actions and voicemail settings are read — see Voicemail and missed-call text back).

For the person-facing walkthrough (turning on the phone service, buying, SMS registration, devices), see Set up a phone number. This skill does the configuration.

Ask first

  • Which number? Find it on phone (find_records, data.phoneNumber in E.164, e.g. +12145550100). If the business has none, see step 1: buying is a person's job.
  • Who should answer? Named people (their sign-in emails), a team (a user group), an AI assistant (by name), or an AI employee.
  • Is a menu needed? "Press 1 for sales, 2 for support" means IVR Menu. "Just ring us, and AI if we don't pick up" is Direct Voice.
  • Business hours, and the time zone. Every open day with its hours, and what callers get when closed. Holidays by date.
  • What happens when nobody answers? Voicemail, an AI, another number, or a message. Missed-call texts are their own skill.

Steps

1. Phone & SMS: the number

Find the phone record for the number. Take its sk and phoneNumber.

If there is no number:

  • call_appengine GET /phone/available?areaCode=<area code>&countryCode=US lists numbers that can be bought. It costs nothing.
  • Stop. Buying a number costs a monthly rental, and the phone service must be turned on first (its agreement and charges are shown on Phone & SMS). Show the person the numbers and send them to Configuration › Phone & SMS (/phone-system) to buy one. Don't call POST /phone/numbers or POST /phone/setup yourself.

Hands on: the phone's sk and phoneNumber. Check: the number is listed on Phone & SMS (/phone-system), status active.

2. Users & Groups: who it rings

A number rings the people it is assigned to, on every device where they are signed in (the Studio softphone or Appmint Mobile). Assignment is on the phone record:

FieldValue
data.assignedUserssign-in emails, e.g. ["[email protected]"]
data.assignedGroupsuser group names; everyone in the group's users rings

Write both with update_record_partial on phone (send the whole list). For a team, find the usergroup and check its users first.

An AI employee answers a number when its user email is in assignedUsers, it is active and its voice is on. Assigning is the switch. If the number has only AI employees and they are off, the caller gets the failover (step 3) or the unassigned greeting.

A number can have only one AI. A save that would give it a second AI (an AI employee, the number's AI assistant, an IVR AI assistant) is refused with 409 NUMBER_HAS_AI, naming the AI that already has it.

Hands on: the assigned emails and group names. Check: the Assigned To column on Phone & SMS shows them.

3. Phone & SMS: Direct Voice answering (no menu)

Skip to step 4 if the person wants a menu or hours.

Set it with the number's own update, call_appengine PUT /phone/numbers/<phone sk> with { "voiceConfig": { … } }. It checks the AI choice, which a raw write does not. voiceConfig is merged one level deep, so send failover and ai whole.

voiceConfig fieldValue
inboundModering (the assigned people), ai, or forward
ai{ assistantId: "<ai_assistant sk>", greeting, context } — for ai, or for a failover to AI
failover{ enabled: true, action, ringTimeoutSeconds, forwardTo, message } — what happens when the people don't answer. action: forward (to forwardTo, E.164), ai, voicemail, message (says message, hangs up)
voicemailGreetingwhat a failover voicemail says before the beep
unassignedMessagesaid when nobody is assigned; empty = hang up silently
callerIdMode / customCallerIdthe number shown on a forwarded call: caller, office, custom
  • forward sends every call to failover.forwardTo. The Forward to number box on screen writes that same field.
  • ai without an assistant is refused: Set up an AI assistant first… An assistant with phone calls off is refused too.
  • ringTimeoutSeconds is how long the people ring before the failover (30 when unset).
  • If the org can't pay for the AI's voice, an AI line rings people instead.

Hands on: the saved voiceConfig. Check: reopen the number's Phone Configuration; Call Handling shows the choice.

4. IVR & Phone System: the routing record

Find any ivr_routing whose phoneNumbers already has the number. Update it rather than add a second: with two, which one answers is not reliable. Otherwise create_record on ivr_routing:

FieldValue
nameletters, digits, -, _; unique, e.g. main-line
displayNamee.g. "Main line"
phoneNumbers["<phoneNumber>"]
routingTypeforward, ai-assistant, simple_menu or automation_flow
enabledtrue
forwardingGroupswhere calls ring (below)

Forwarding groups — { id, name, strategy, targets, ringDuration, fallback }:

  • strategy: simultaneous (all at once), sequential (one by one, ringDuration each, default 20 s), round-robin (starts with the next person each call).
  • targets: { type: "phone", value: "+1…", label }. Only phone and sip ring. agent and queue targets are skipped.
  • fallback when nobody answers: voicemail (needs menuSettings.voicemailEnabled: true), ai-assistant (needs aiAssistantConfig.assistantId), or hangup. automation is not built: the caller hears "No one is available" and the call ends.

By routingType:

routingTypeAlso set
forwardforwardConfig: { forwardingGroupId, greeting }. Business hours don't apply.
ai-assistantaiAssistantConfig: { assistantId, greeting, context, canTransfer, fallbackForwardingGroupId }. The AI is given the menus and forwarding groups, so it can transfer to them, and told whether the business is open now.
simple_menumenus and menuAssignments: { normalHours, afterHours, holiday } (menu ids)
automation_flowautomationAssignments: { normalHours, afterHours, holiday } (automation ids). See IVR actions.

A menu — { id, name, greeting, options, timeout, maxRetries, defaultAction }. After the greeting the line reads every option itself as "Press 1 for sales." So write label as the words after "for" ("sales"), and keep the options out of the greeting.

option actionactionParams (a string)
forwarda forwarding group's id — the way to ring a team
transfer-phonean E.164 number
menuanother menu's id
voicemailnone
ai-assistantthe AI assistant's sk
hangupoptional goodbye words

timeout is the seconds to wait for a key (10 when unset). After maxRetries silent or wrong tries (3 when unset), defaultAction runs.

In a simple menu, Transfer to User and Transfer to Group don't work. They dial the user's or group's id as if it were a phone number, and the call fails. Put the team in a forwarding group and use forward. collect-payment, verify-caller, play-consent and custom-webhook aren't built for simple menus: the caller hears "Invalid option" and is hung up on.

Business hours — businessHours: { enabled: true, officeHours, holidays, offDays }:

  • officeHours: one row per open day, { dayOfWeek: "Monday", timezone: "America/Chicago", startTime: "09:00", endTime: "17:00" } ("All" for every day).
  • holidays: { date: "2026-12-25", name, closed: true }. offDays: { date, description }, treated as after hours.
  • In a simple menu, a day with no row is after hours.
  • For AI and automation flow lines, a day with no row counts as open, and only the first row's time zone is used (New York when none). Give those lines a row for every day the person means.

Leave menuSettings.recording off unless the person asks. Recording laws differ by place.

Hands on: the routing's sk. Check: open AI, IVR, Automation › IVR & Phone System (/ivr). The routing is listed with the number. Its Review & Save tab summarizes the menus and groups.

5. Phone & SMS: switch the number to IVR Menu

Stop. From this moment every caller to the number gets the routing. Show the person:

  • the number, and what a caller hears first (the greeting, each option);
  • who rings for each option, and the fallback when nobody answers;
  • the hours and time zone, and the after-hours menu or flow.

After a clear yes: call_appengine POST /phone/numbers/<phone sk>/routing with { "mode": "ivr" }. It points the number's voice webhook at the IVR and saves routingMode: "ivr" on the number. { "mode": "voice" } switches it back.

Hands on: the number's routingMode. Check: Phone & SMS › the number › Webhook Configuration shows IVR Menu, and its Voice URL ends in /ivr-menu?orgid=…. A person places one test call.

When it's done

Tell the person:

  • the number and its mode (Direct Voice or IVR Menu);
  • who it rings, and on which devices they must be signed in;
  • what callers hear, by hours, and the time zone used;
  • what happens when nobody answers;
  • anything waiting for them: buying the number, the switch to IVR Menu, a test call.

Open Phone & SMS on the number, or the routing on IVR & Phone System.

What it can't do yet

  • Whisper and screening aren't built. A forwarding group's whisper and screening settings are saved, but the person answering hears nothing first and can't decline.
  • Forward routing ignores business hours. For different after-hours handling, use a simple menu, an AI line or an automation flow.
  • Phone Configuration's "Enable call forwarding", "Enable voicemail" and "SMS Settings › Enable auto-reply" do nothing. They are saved on the number and never read. Call Handling and its failover are what work.
  • The company calendar counts as a holiday only on AI and automation-flow lines. A simple menu reads only the routing's own holidays.
  • Nobody signed in means nobody rings. In ring mode the call rings signed-in devices only. With nobody signed in, it goes straight to the failover.

Don'ts

  • Don't buy a number, start SMS registration or switch the mode without a yes. Each costs money or changes live calls.
  • Don't use transfer-user or transfer-group in a menu. Use a forwarding group and forward.
  • Don't list the options in the greeting. The line reads them out already.
  • Don't give one number two enabled routings.
  • Don't send a menu or group list with only the new item. Send the whole array, or the others are wiped.