> ## Documentation Index
> Fetch the complete documentation index at: https://docs.lokutor.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Outbound calls

> What an agent says when it places a call, what the call is for, who is not called, how often, at what hours, and how your numbers are looked after

What applies to the calls your agents place: single calls, and [campaigns](https://docs.lokutor.com/guides/phone-numbers.md#campaigns). `GET /callcenter/rules` answers all of it, with the figures in force.

## AI notice

With **Says it is an AI** on, in the agent's **Phone** tab (`ai_notice`), the calls it places begin by saying that it is an AI and who it calls for, in the agent's own voice and language:

> I'm an artificial intelligence assistant, calling on behalf of Clínica Sol.

* It is part of the opening, so the first word comes no later. When the agent [waits for the person to speak](https://docs.lokutor.com/guides/call-settings.md#opening-silence-and-goodbye), its first reply begins with it. If it is cut off before it was heard, the next reply begins with it.
* It comes after the recording notice, when there is one, and before your first message: with the switch on, leave out of your first message that it is an AI, so it is not said twice.
* The company is the one set in the agent (`ai_notice_company`, up to 80 characters), or the workspace's name.
* The sentence of each language is in `GET /callcenter/rules` (`ai_notice`), and the agent's **Phone** tab shows it as it will be said.
* The call's [record](https://docs.lokutor.com/guides/conversations.md) keeps the sentence and whether it was heard: not on a call that ends first, nor on a voicemail.

It is off unless you turn it on, and a setting of the agent like any other: part of its [draft](https://docs.lokutor.com/guides/testing-agents.md#drafts), published with it, and set through the [API](https://docs.lokutor.com/api-reference/agents.md) too. Calls an agent receives never begin with it.

Some countries require telling people that they are talking to an AI. You can use the switch, or say it in your own greeting.

## What a call is for

A campaign or a call is **Service** (about something they already have with you: an order, an invoice, an appointment) or **Commercial** (offers or promotes something): `purpose`, `service` unless you say otherwise.

Some countries have a rule for commercial calls, which the platform checks before dialling:

| Country called | A commercial call needs | Without it |
| :- | :- | :- |
| Spain | To show a 400 number (one of [your carrier's](https://docs.lokutor.com/guides/phone-numbers.md#bring-your-own-numbers), when connecting carriers is on your workspace) | `dial.commercial_number` |
| Spain | The consent of each person, given beforehand | `dial.consent_needed` |

Consent is kept with the call, and with who gave it, in one of two ways:

* **Each person's**: when and where they agreed, with the year ("2026-10-03, web form"), in a column of the sheet or `consent` of the row or the call.
* **One for the list**: what they agreed to and where you keep the proof, in 20 to 1,000 characters (`consent_proof`).

A commercial campaign that lacks either does not start, and says which people it is about. Other countries have a note at most, which the dashboard shows and refuses nothing.

## Who is not called

The **[do-not-call list](https://docs.lokutor.com/api-reference/call-center.md#do-not-call)** (**Phone** → **Campaigns** → **Do not call**) stops every call: campaigns, single calls and the API. It holds numbers and **businesses**: an id of yours, like a tax number, so that nobody at a business is called from another row (`business_id`, 3 to 40 letters and digits). A whole list can be imported, with its name, and removed at once. Up to 100,000 numbers and as many businesses.

**When somebody asks not to be called again** on a call the agent placed, it is always recorded, with their words:

| The agent's "Don't call me again" | What happens |
| :- | :- |
| On (or not set) | They go on the list, with their business if the call had one. The agent tells them so |
| Off (`do_not_call: false`) | It is only noted: your own system decides. The agent says it will pass it on |

Those who asked and are not on the list are in **Asked not to be called, not on the list** and in `GET /callcenter/objections`, until somebody decides: on the list, or they may be called, which only an admin says, in the dashboard. A campaign with one of them asks before it starts (`campaign.asked_not_to_be_called`); a single call to one is placed with a warning. The campaign's list and its export say that they asked.

## How often

| Of | Usual | You can set |
| :- | :- | :- |
| A number, in a day | 60 | 5 to 100, per [pool](https://docs.lokutor.com/guides/phone-numbers.md#pools) |
| A number, in an hour | 8 | 1 to 15, per pool |
| A number in its first week, in a day | 15 | 5 to 40, per pool |
| A number in its second week, in a day | 30 | 5 to 70, per pool |
| A person, in a day, by all your campaigns | 1 | 1 to 3, per workspace |
| A person, in 14 days, by all your campaigns | 3 | 1 to 10, per workspace |

A campaign skips a number that is full, waits when they all are, and leaves a person for the next day or out of the list. It says why it waits and until when. A number's day is counted in its own time zone.

Calls placed one by one, by hand or through the API, go further:

* **The number.** From a pool, another of its numbers with room is shown first (unless the pool always shows the same one). When none has any, the call goes out with a warning, up to twice the calls of an hour and of a day. Past that it answers `429` `dial.number_limit`, with when there is room (`Retry-After` and `retry_at`).
* **The person.** Only a warning, when they were already called that day or as often as campaigns may in 14 days.

Campaigns show a number of the called person's own province or area when the pool has one (Spain and Mexico).

## When

A campaign calls **in their own working hours**, where each person is, Monday to Friday and not on national holidays (those of Spain, Portugal, France, Italy, Germany and Mexico; elsewhere only the main ones):

| Country | Hours |
| :- | :- |
| Spain | 9:30 to 14:00 and 16:00 to 19:00 |
| France | 10:00 to 13:00 and 14:00 to 18:30 |
| Italy | 9:30 to 13:00 and 14:30 to 18:30 |
| Any other | 9:00 to 18:00 |

In a country with several time zones it calls when it is open in all of them, unless the number says which. Set your own hours instead (`calling_window` with `hours` and a `timezone`), or none (`{"any_time": true}`).

## How your numbers are doing

Operators and phone apps label numbers that call a lot and are not answered. **Phone** shows, for each number, how many people answer it, how many calls last six seconds or less, how many asked not to be called, and its calls of the day (`GET /callcenter/numbers/health`).

**A number rests by itself for 14 days** when:

* two people ask not to be called in a day,
* more than 15% of its answered calls in a week (of at least 20) last six seconds or less, or
* it is answered less than 60% as often as it usually is (its last 40 calls, against at least 60 before).

A resting number still answers; it is not shown on calls. The workspace gets an e-mail with why. An admin wakes it or puts one to rest (1 to 90 days).

* **On their screens.** Write down when somebody saw a label on one of your numbers, and where; the dashboard says where each operator or app takes a correction. It is a note: nothing is checked with operators.
* **Replacing one.** Buying a number while another rests or shows a label asks whether it is to replace it, and what caused it. A new number does not change what caused it.
* **Who answers it.** A campaign calls only from numbers that somebody answers when called back (an agent, or the pool's); a single call from another says so.

## When they call back

Somebody who calls one of your numbers within 30 days of being called by the workspace is known: the agent that answers is told when they were called, whether they picked up and what it was about, and has the campaign's [data](https://docs.lokutor.com/guides/call-settings.md#data-of-each-call) of that person.

## Every call placed

Each attempt is kept: which number, to whom, when, what came of it, how long it lasted and the carrier's reason. Open a person in a campaign, or `GET /callcenter/attempts`; a campaign's export has one line per person, or per call (`?attempts=1`). Attempts are kept as long as [conversations](https://docs.lokutor.com/guides/conversations.md#deleting-and-how-long-they-are-kept).

## What it costs

A call an agent places carries the request not to be called in its tools, 125 input tokens a request, so a typical minute is still about **6¢**. The AI notice, when it is on, is 67 more and 4 or 5 seconds of the call.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.