Call campaigns
What a campaign is, what it guarantees, and what it cannot do through the API yet.
Updated
On this page
A call campaign is a standing instruction to ring everybody in a batch, at a survivable rate. A batch says who. An agent and a line say how. Columns on the campaign say how fast and when.
Not available over the API yet
Call campaigns have no REST endpoint and no dashboard screen today. They're
created on the platform side and drained by a scheduled job. This page documents
what a campaign is and what it guarantees, because those guarantees apply to any
call you see arriving from one. There is no /campaigns resource for
you to call.
The /api/v1/orgs/<org_id>/campaigns route that does exist
is a different thing entirely. It's the 10DLC messaging registration filed with
the carrier, not an outbound calling campaign.
The audience is a batch, not a list of numbers
That is the whole design. A campaign resolves its batch through the one
method that applies do_not_call as a database clause, and that
method has no keyword argument to switch it off. So a campaign cannot dial
somebody who has opted out by any route: not by a rule that asks for them, not
by a caller that forgets, and not by a feature written next year that never knew
the guarantee existed.
The limits are columns, not prompt text
| Field | Default | What it does |
|---|---|---|
timezone_name | America/Chicago | The clock the window is read against. |
window_start_hour | 9 | Earliest hour it may ring. |
window_end_hour | 20 | Latest hour it may ring. |
max_concurrent | 5 | Calls in the air at once. |
daily_cap | 500 | Dials per local day. |
max_attempts | 2 | Tries per contact. |
retry_after_hours | 48 | How long before trying again. |
You can tell an agent to be polite and it will be, right up until a model rewrites the sentence. Quiet hours, the daily cap and the attempt ceiling are enforced against these fields, below anything a conversation can reach.
Status
draft, running, paused or
done. A new campaign is a draft, not running. A
campaign that began dialling the moment it was saved would be a campaign nobody
got to read back before it rang twenty thousand people.
Attempts
Every dial writes a row before the phone rings. Each row carries an
attempt_number, when it was dialled, the line it went out on, the
call it produced, and an outcome:
| Outcome | Means |
|---|---|
pending | Ringing right now. |
answered | A person answered. |
no_answer | Nobody answered. |
machine | Voicemail. |
failed | The carrier refused it, with the reason in detail. |
answered and machine both end this campaign's
business with that person. Answered is obvious. Voicemail is on the list because
a second call to a number that went to voicemail once is how a campaign becomes
a nuisance, and the gain over ringing back is not worth what it costs.