ChannelsVoice

Voice AI best practices

Write for the ear, keep actions fast and test every kind of call before you go live.

Most of your chat setup carries over to calls: the same workflows, bot rules, knowledge and actions. What changes is that every word is heard, not read. Calls also run on a smaller, faster model than chat, so the AI can reply without long pauses.

Instructions that work in chat can behave differently on a call, so keep them simple and test them on calls. These practices follow from how the voice AI works.

Write for the ear

  • Keep replies short. The caller can't skim or scroll back. One point per reply and one question at a time work best.
  • Don't script lists, links or formatting. A bullet list, a table or a URL doesn't work when spoken. If the caller needs a link or a long reference, have the AI offer to email it, with an action that sends it (for example using send_outbound_email).
  • Write emails, links and numbers normally. When the AI does say one, such as support@example.com, the voice reads it out correctly. Never spell them out or tell the AI how to say them; see Normalization.
  • Scope channel-specific behavior to the Phone Call channel. For a rule that only makes sense on calls, such as "ask callers to spell their email address", set its channels to Phone Call rather than writing "if on a call..." in a general rule. The same goes for workflows: a workflow can be limited to Phone Call under Available Channels.
  • Keep the greeting short. The caller can't interrupt it, and it's spoken word for word. Say who is answering and invite the caller to speak.

Collect details that transcribe badly

Email addresses, order numbers, postcodes and names are the details most often transcribed wrongly.

  • Prefer what you already have. The AI knows the caller's phone number (see shareCallerNumberWithAi). If your actions can look customers up by phone number, the caller doesn't have to spell anything.
  • Ask for one detail at a time, and have the AI read it back before using it.
  • Built-in lookups are lenient on calls. On chat, lookups by email, phone number, address, zip code or subscription ID require it to appear in the conversation exactly. On calls they don't, because spoken details rarely survive transcription character for character.

Identity checks in custom actions

A custom action that checks the caller's identity shouldn't compare a value letter for letter with the transcript. Instead, read what was said from context["liveCallContext"] and let an LLM judge the match with llm_classify_binary:

def execute_action(context):
    live_call = context.get("liveCallContext")
    if not live_call or not live_call["messages"]:
        return {"verified": False, "message": "Ask the caller for their postcode first."}

    expected = "SW1A 1AA"  # e.g. from your CRM, found by the caller's phone number
    said = [m["text"] for m in live_call["messages"] if m["sender"] == "customer"]

    verified = llm_classify_binary(
        f"Did the caller say a postcode that matches {expected}? "
        "The text is a phone transcript, so allow for transcription errors "
        "such as spelled-out letters and spaces.",
        said,
        fallback=False,
    )
    return {"verified": verified}

context["conversation"]["messages"] doesn't help here: during a call it contains only the greeting.

Keep actions fast and speakable

  • Every action is silence for the caller. The AI says one short line, then waits for the result. Aim for actions that return in a few seconds. An action that takes longer than a minute fails.
  • Avoid chains of actions in one turn. Actions run one at a time, so three lookups in a row are three waits. Combine them into one action where you can.
  • Return what the AI should say, not raw data. A short result like {"status": "shipped", "expected": "Thursday"} is easy to speak. Long lists, IDs and URLs are not.
  • Tell the AI what to do on failure. Return a clear message, such as "The order system is unavailable. Offer to have someone call back." The AI gets your action's error message, so make it say what to do next.

Look the caller up when the call starts

It's often a good idea to look up the caller's account, such as their orders or subscriptions, once while the phone rings instead of with actions during the call. This especially helps when most calls need an order lookup, or when order lookups cause a lot of problems on calls.

A prompt section runs while the phone rings, and what it returns stays in the prompt for the whole call. The AI then starts the call already knowing the caller. It can pass the email on file to your actions itself instead of asking the caller to spell it.

First check that your line receives the caller's number. Not every line passes it on.

Keep your usual lookups. Callers who ring from another number or hide theirs still need lookups by email or order number.

Transfers that work

  • Enable transferConversation in a workflow, as on other channels: see human escalation. Then add destinations in the voice AI settings.
  • Name destinations by what they're for, such as "Sales" or "Billing". The AI chooses a destination by its name.
  • Use destinations that always answer, such as a queue or a number with its own voicemail. To send callers to your team in the Octocom help desk, use the your_team destination: Octocom rings your available agents one by one, and plays the line's voicemail greeting if nobody answers. Set a voicemail greeting so callers can always leave a message.

Collect data from calls

Data collection runs on the transcript after the call ends. New data collection prompts don't include the Phone Call channel by default: add it to each prompt that should run on calls, or set the prompt to all channels.

Test before going live

  1. Open Settings -> Voice & SMS -> Voice agents and click Test call next to the voice agent. The call runs in your browser with your microphone, through the same phone network path as a customer's call, and follows the number's routing at that moment. Or call one of the demo numbers and enter the voice AI's access code followed by #. See Get a phone number.
  2. Try the calls you expect: a common question, a lookup, a transfer, and a caller who goes quiet.
  3. Open the conversation in the help desk after the call: the transcript and recording show exactly what the AI heard and said. A browser test call ends with a link to its conversation, which is marked as a test and kept out of reports.
  4. Change one thing at a time. Settings and instructions apply from the next call.

Over text

Copilot and other MCP clients can also hold a test call with the voice AI in writing. start_conversation with channel: "phone-call" starts from the greeting, and the AI answers with the same instructions, workflows and actions as on a call. Actions run for real, as on a call. phoneLineId and timeSlotId choose which voice AI answers. campaignId tests a campaign's call instead, with you as the recipient: customerName fills the greeting's {name} and {firstName}, and recipientContext is the recipient's context.

  • send_conversation_event stands in for what isn't speech: customer-silent for a caller who goes quiet, counted toward the hang-up limit like on a call, and max-call-time for a call reaching its time limit.
  • get_response shows the AI's replies, its tool calls, the time to its first token and how the turn ended: closed when it hung up, handed-off when it transferred the call.
  • close_conversation is the caller hanging up. The conversation shows in the help desk as Agent playground.

Testing a change

Things worth keeping in mind when testing a change to the voice AI over text:

  • Thorough testing is recommended. Calls run on a small model, so a change that reads correctly may not work as intended, and a change that works in one workflow may not work in a similar one.
  • Speech-to-text mistakes can be tested over text. Caller messages can be written the way a transcript would show them: misheard letters, filler words, words split or run together. Unlike on a real call, you choose exactly how clean or garbled the input is.
  • Actions run for real, but their paths can still be tested. A path that calls an action with external effects, such as a refund or cancellation, can be tested on an order where the action changes nothing, with test data, or by testing the action on its own with test_python_action.

One language per voice AI

Each voice AI speaks one language. To serve several languages, use one number per language, for example behind your own phone menu that sends callers to the right number.

On this page