AI outbound calls: make your first call
AI outbound calls are phone calls that your software starts and an AI agent runs. With Hail, you send the number, instructions, and a consent flag in one API request or through your AI assistant. It dials, detects voicemail, and reports the result through the call status and webhooks.
This tutorial places an AI outbound call with Hail, reads the result, and covers the rules that keep outbound calling safe. For the parts of an agent and the build options, read the AI phone agent guide.
What are AI outbound calls used for?
AI outbound calls work best for short calls with one clear purpose:
- Appointment reminders. Confirm a visit, and ask for a better time if needed.
- Lead follow-up. Call someone who asked to hear from you, and find out what they need.
- Order updates. Confirm an address or a delivery window.
- Payment reminders. Tell a customer a payment is due. Never take card details on the call.
- Surveys and feedback. Ask one or two short questions after a visit.
- Customer win-back. Call past customers who agreed to hear from you.
Each of these calls needs consent. Sales calls, such as lead follow-up and win-back, need more. In the US, that means prior express written consent. Send message_type: "marketing" and consent_source on those calls. Read what US law allows for AI sales calls first.
How AI voice calling works
AI voice calling joins a phone line to a conversation loop. Speech to text turns the person's words into text. A large language model (LLM) decides the reply. Text to speech says it on the call.
With Hail, one request does all of this:
You or your AI assistant asks for a call
Hail dials the number
- Person: the agent talks
- Voicemail: Hail hangs up
- Phone menu: the agent presses keys
Hail saves the result and sends webhooks
Here is each step:
- Your code sends
POST /v1/calls, or your assistant usesplace_call. - Hail returns
201with a callid. The call is queued, not finished. - Hail dials. It ends the call when it detects voicemail. It can press keys to get through phone menus. If a person answers, the agent speaks.
- Hail sends webhooks as the call changes state, and saves the final status.
AI outbound calls vs robocalls and autodialers
An AI outbound call is a conversation. That's the main difference from older automated calling systems.
| Robocall | Autodialer | AI outbound call | |
|---|---|---|---|
| Who talks | A recording | A person, after the dialer connects | An AI agent |
| Can answer questions | No | Yes | Yes, from its instructions |
| Needs staff on each call | No | Yes | No |
| Good for | One-way alerts | Sales teams with many agents | Short calls with one purpose |
AI doesn't change the law. The FCC ruled in 2024 that TCPA rules for artificial voices cover AI voices. This is not legal advice, so check the rules where you call.
Place an AI outbound call
You can start a call from your AI assistant or from your own code. Both use the same agent and the same call records. Calls use your prepaid balance. Top it up on the Usage & billing page in the console.
Ask your AI assistant
Connect your assistant to Hail MCP. Then ask for the call in plain words. Replace the number and the details:
Use Hail to call +14155550101. Confirm the dental cleaning on Tuesday at 3 PM. If the time does not work, ask for a better day. Do not book anything. This person opted in to reminder calls on our booking form, so recipient consent is true. Show me the call details and wait for my approval before you call.
Your assistant gets a queued call back, not the final result. After the call, ask it to check the call and tell you what happened.
Use the API
You need an API key in HAIL_API_KEY. The numbers below are placeholders in E.164 format.
curl --fail-with-body --silent --show-error \
https://api.hail.so/v1/calls \
-H "Authorization: Bearer $HAIL_API_KEY" \
-H 'Content-Type: application/json' \
-H 'Idempotency-Key: reminder-appt-1042' \
--data '{
"to": "+14155550101",
"recipient_consent": true,
"consent_source": "Appointment booking form, reminder calls opted in",
"message_type": "informational",
"system_prompt": "You call to confirm a dental cleaning on Tuesday at 3 PM. Ask if the time still works. If not, ask for a better day. Do not book anything. Thank the person and end the call.",
"first_message": "Hi, this is a reminder call from Acme Dental about your appointment on Tuesday.",
"voice_config": { "language": "en" },
"metadata": { "appointment_id": "1042" }
}'
What each field does:
toandrecipient_consentare required.recipient_consent: trueis your statement that you have a lawful basis to call this person. Hail does not check it.system_promptholds the instructions. To reuse a saved agent, sendagent_idinstead.first_messagesets your opening after the AI disclosure. If you omit it, Hail generates an opening.fromis optional. Leave it out and Hail uses one of your numbers, or a number from a shared pool.voice_configsetslanguageandvoice_id. There are 39 languages.metadatacomes back on every read, so you can match the call to your own record.- The
Idempotency-Keyheader stops a retry from placing the same call twice. Use a new key for a new call.
Read the result: statuses and webhooks
Save the id and read the call:
curl --fail-with-body --silent --show-error \
"https://api.hail.so/v1/calls/$HAIL_CALL_ID" \
-H "Authorization: Bearer $HAIL_API_KEY"
A live call shows queued, dialing, ringing, or in_progress. A finished call shows completed, failed, busy, no_answer, or canceled. Read end_reason to learn why it ended.
Polling works for a test. In production, register a webhook. Hail sends call.answered, call.completed, call.failed, call.busy, and call.no_answer. Each event carries the call id, status, direction, from, and to, and end_reason once the call ends. Webhooks are signed, so check the X-Hail-Signature header. The webhooks docs show how.
A completed status means the call ended normally. It does not mean the person agreed. Read the recording or your own records before your code acts on the answer.
What happens when voicemail answers
Hail runs answering machine detection on every outbound call. It checks the greeting before the agent speaks.
- A person, or an unclear result: the call goes on as normal.
- A voicemail or an unavailable line: the agent hangs up without a word. It never leaves a message.
- The call ends with status
no_answerandend_reasonset tovoicemail_reachedormachine_unavailable.
Plan a retry for these calls in your own code, or send a text with the SMS API instead. Machine-answered calls are billed, because billing starts when the line connects.
Build an automated calling system, not one call
One call is a test. An automated calling system decides who to call, when, and what to do with each result. Use this checklist:
What to measure in AI outbound calling
Call activity alone tells you very little. Count these from your call results and your own records:
- Connect rate. Calls that a person answered, out of calls placed. Check your own records, because
completedalone doesn't prove it. - Voicemail rate. Calls that ended with
voicemail_reachedormachine_unavailable, out of calls placed. - Goal rate. Calls that got the result you wanted, such as a confirmed visit.
- Opt-out rate. People who asked to stop getting calls.
A high voicemail rate can mean bad timing. A high opt-out rate means you should stop and fix the list or the script.
When a person should take the call
An AI agent works well when the call has a clear goal. Keep a person ready for these calls:
- Upset callers. A person can calm the situation and make a decision.
- Big or unusual deals. Customers expect to talk to someone they know.
- Anything off script. The agent can only act on its instructions.
Save an agent with handover_contacts, and send its agent_id when you place the call. The agent can then pass a live call to a person. Read the warm transfer guide for the steps.
How much do AI outbound calls cost?
Hail bills per minute, so your cost grows with call length and call volume. Three things drive it:
- Call length. Short calls with one question cost less.
- Machine-answered calls. These still bill, because billing starts when the line connects.
- Retries. Each new attempt is a new call.
Hail has no monthly software subscription. A dedicated phone number has its own monthly cost. Check current rates on the pricing page.
Make your automated phone system honest
An automated phone system must be clear that it is a machine. Hail turns on AI disclosure by default (ai_disclosure: true). The agent says it is an AI at the start of the call. If you turn disclosure off, the change is logged and the responsibility is yours. The agent still says it is an AI when someone asks.
Keep each call to one purpose. Let people say no. Do not let the agent invent dates, prices, or promises that your system did not give it.
AI phone calls: a reminder template
Short, specific AI phone calls work better than long scripts. Copy this template for a reminder call, then replace the parts in braces.
You are an AI assistant calling for {business name}. Purpose: confirm the {appointment type} on {day} at {time}. Ask one question: "Does this time still work for you?" If yes: thank them and end the call. If no: ask for a better day and time. Repeat it back. Do not promise a booking or text. Do not book anything yourself. If they ask who you are: say you are an AI assistant for {business name}. If they ask to stop getting calls: say you will pass that on, thank them, and end the call. Never ask for payment details. Keep each reply under two sentences.
For a first call to your own phone, follow Make your first AI phone call.
AI outbound calls FAQ
Can AI make outbound calls without a person?
Yes. The agent dials, talks, and ends the call on its own. You still decide who to call, and you must have consent to call them.
Is it legal to use AI for outbound calls?
Yes, with the right consent. In the US, TCPA rules for artificial voices cover AI voices. Read what US law allows for AI sales calls. This is not legal advice.
Will people know they are talking to an AI?
Yes, by default. On Hail, the agent says it is an AI at the start of the call. It also says so when someone asks.
Does the AI leave a voicemail?
No. When Hail detects voicemail, the agent hangs up without a word. Your code can retry later or send a text.
What happens when the agent cannot answer a question?
It follows your instructions. Tell it to admit what it doesn't know and offer a callback. A saved agent can also pass the call to a person.
Can the agent get through a phone menu?
Yes. The agent can press keypad digits to get past a menu.
Which number does the call come from?
Set from to choose one of your Hail numbers. If you leave it out, Hail uses one of your numbers or a number from a shared pool.
What languages can the agent speak?
Hail supports 39 call languages. Set language in voice_config.
Can I use my own AI model?
Yes. You can point voice calls at your own model through an OpenAI-compatible endpoint.
How do I connect call results to my CRM?
Save the call id next to your CRM record when you place the call. Hail's call webhooks include that id, so use it to update the record when the call ends.
Make your first call.
Connect your assistant and start calling.