Skip to content

How to design an inbound voice agent for a Costa Rica number

Seven decisions for launching an inbound voice agent: number type, routing, channels, greeting, handoff, testing and measurement.

An inbound voice agent works well when five decisions are made before the number is published: which kind of Costa Rica number callers will dial, how that number routes to the agent, how many simultaneous calls the trunk carries, what the agent says in the first seconds and when it hands off, and how you will measure the result. This guide walks through each decision in order, with the SIP.cr settings that apply and the questions to answer on the agent platform side.

1. Choose the number callers will dial

SIP.cr offers Costa Rica numbers only, in three kinds. All of them are bought from stock in the portal or through the API and routed to a trunk group.

Number typeFormatTypical use
Geographic+506A local line customers save and call back
National toll-free800A service line printed on invoices, packaging or ads in Costa Rica
International toll-free0800A toll-free line in the international format; confirm with [email protected] that it fits who will call

A few practical points:

  • Use one number per purpose when you can. A separate number for sales and another for support makes routing and reporting simpler than asking the agent to sort every caller.
  • If the same business also places outbound calls, remember that outbound caller ID must be one of your account's own numbers. Choosing a geographic number that can also be used for callbacks keeps the experience consistent.
  • Numbers come from stock. Through the API, /api/v1/numbers lets you search stock by area code, and the MCP server offers a search_available_numbers tool.

2. Plan the routing: number, trunk group, trunk

Inbound calls in SIP.cr follow a simple chain: the number points to a trunk group, and the trunk group contains one or more trunks. Each trunk is the connection to one platform, such as ElevenLabs, Vapi, Retell AI, Synthflow or a PBX.

Trunk groups apply ordered failover for inbound calls. That gives you a design choice:

  • Single trunk. The group contains only the agent's trunk. Simple, and the right start for a pilot.
  • Agent first, PBX second. If you already run Asterisk, FreeSWITCH or 3CX, you can put the agent's trunk first and the PBX trunk after it, so the PBX is next in line for inbound calls. Check the order in the group, because failover follows it.
  • Separate numbers. Keep the PBX on its own number and give the agent a new one. This is the cleanest way to run an agent beside an existing team while you compare results.

Several trunks can live in one account, with numbers, channels and billing in one place, so you can run a test agent and a production agent on separate trunks without mixing their call records.

3. Size the channels

One channel carries one simultaneous call. You set channels per trunk, from 1 to 1,000, and change them from the portal or the API.

To size them:

  1. Look at your current call volume by hour, from the PBX or the old line, and find the busiest hour.
  2. Estimate how many calls overlap in that hour. If callers used to get a busy signal or wait on hold, expect more overlap once every call is answered.
  3. Set channels slightly above that peak, then check the statistics after the first busy week.
  4. Check the concurrency limit on the agent platform as well. If the platform accepts fewer calls at the same time than your trunk, the platform is the real limit. Each vendor documents this in its own account settings.

4. Design the first seconds of the call

Callers decide quickly whether an automated line will help them. The opening should do three things in one or two short sentences:

  • Name the business, so the caller knows they dialed the right number.
  • Say plainly that they are speaking with an automated assistant.
  • Ask an open question or offer two or three clear options.

For Costa Rica, plan the language from the start. Many callers expect Spanish with usted; a second language can be offered as an option rather than mixed into the greeting. Keep the agent's turns short, let callers interrupt, and confirm critical data back to them. Costa Rica phone numbers have eight digits, so have the agent read them back in pairs or groups of four, the way people say them.

Write down what the agent must never do

A short list of limits is as important as the prompt. For example: do not promise delivery dates the agent cannot see, do not take payment details by voice, and do not invent answers when the knowledge base has none. Put that list in the agent's instructions and test against it.

5. Plan the handoff and the after-hours path

Every inbound agent needs a way out for callers it cannot help. Decide in advance:

  • When to hand off: the caller asks for a person, the agent fails to understand twice, or the request is outside its scope.
  • Where the call goes: a human team, a PBX extension or a callback request.
  • What the agent says before it hands off, so the caller is not surprised by silence.

How a transfer is carried out depends on the agent platform, so follow its documentation: ElevenLabs, Vapi, Retell AI or Synthflow. Outside business hours, a clear message with the hours and the option to leave details for a callback is better than a transfer that rings with no answer.

6. Test before you publish the number

Run a short test plan before the number appears on your website or invoices:

  1. Call the number from a mobile phone and from a landline.
  2. If you use an 800 or 0800 number, test it the way your customers will dial it.
  3. Place as many simultaneous test calls as you have channels, to confirm the trunk and the platform both accept them.
  4. Test the hard cases: a silent caller, background noise, a caller who interrupts, and a request for a human.
  5. Open each test call in the SIP.cr portal. The record shows the timeline, the hangup cause in plain words, and audio quality (MOS, jitter and packet loss). The trunk page also shows the last call and how it ended.

If a test call fails, fix the configuration before launch rather than adjusting the prompt. The call record usually tells you which side to look at.

7. Measure after launch

Separate the telephony layer from the conversation layer:

LayerWhat to watchWhere in SIP.cr
TelephonyAnswer rate (ASR), average duration (ACD), hangup causes, call volumeStatistics view, /api/v1/stats, call records
AudioMOS, jitter and packet loss per callCall record
ConversationResolved calls, handoffs, repeat callersYour agent platform and CRM

To join both layers, use the call webhooks. SIP.cr posts call.initiated, call.answered, call.completed and call.failed to your URL when the call record arrives, right after the call ends. Each request is signed with HMAC-SHA256 in X-Webhook-Signature, so verify it before trusting the body:

expected = hmac_sha256(secret, raw_body)
valid = constant_time_equals("sha256=" + expected, header)

Because the events arrive after the call, use them for reporting and follow-up, not for decisions during the call. Call records can also be exported as CSV or PDF, and a coding agent connected to the MCP server can pull get_call_stats and list_calls while you review the week.

A very short average duration usually means callers hang up during the greeting; a rising share of handoffs points to gaps in the agent's knowledge. Review both weekly for the first month and adjust one thing at a time.

To connect your agent and attach a Costa Rica number, follow the guide for your platform, starting with Vapi, ElevenLabs, Retell AI, Synthflow or Asterisk, FreeSWITCH and other PBXs.

More articles

Reviewed, then live

Put your AI voice agent on the phone network.

Create the account today. Once our team approves it and you add a payment method, your first trunk and number take a few minutes.

Create account Talk to sales