Core concepts
Agents, campaigns, contacts, and calls, and the statuses each one moves through.
The Resonera API is built around four objects. An agent places or answers calls. A campaign assigns a list of contacts to an agent. Each conversation is recorded as a call.
Agents
An agent is the AI that speaks on a call. It is defined by:
| Property | Description |
|---|---|
name, greeting | The name the agent introduces itself with, and the opening line it speaks word for word. |
prompt, call_purpose | Instructions for the agent's role and behavior, and the goal of the call. |
voice_name, language | The voice and language, from GET /voices. |
tools | Actions the agent can take during a call. See Tools. |
kb_item_ids | Knowledge base files the agent answers questions from. |
custom_tool_ids, skill_ids | Your own custom tools and skills. |
direction is outbound (the agent places calls) or inbound (the agent answers a phone
number). status is offline, active, or paused. Any agent can run an outbound campaign. An
inbound agent answers calls only while its status is active.
Tools
| Tool | Action |
|---|---|
take_message | Records a message for your team. |
schedule_callback | Agrees on a time to call back. |
transfer_call | Transfers the caller to the number in the agent's transfer_to. Without a transfer_to number, the agent takes a message instead. |
search_knowledge_base | Answers questions from the agent's knowledge base files. |
gather_requirements | Saves the caller's requirements as a document in your knowledge base. |
place_order | Takes an order. The order is returned in the call's order_details. |
summarize_call | Records a summary and an outcome at the end of the call. |
check_availability, book_appointment | Finds an open slot and books it on your connected booking calendar. |
lookup_in_sheet, append_to_sheet | Reads rows from or adds rows to a connected Google Sheet. |
detected_answering_machine | Leaves a short message and ends the call when voicemail answers. |
An empty tools list enables every tool. The agent can always end the call.
Campaigns
A campaign is one agent calling a list of contacts.
| Status | Description |
|---|---|
draft | Created. No calls have been placed. |
scheduled | Launched with a start_at time. Calling starts at that time. |
running | Calls are being placed. waiting_reason explains a pause between calls: outside calling hours, all lines in use, or only retries remaining that are not yet due. |
paused | Calling is stopped. Launch the campaign again to resume. paused_reason: minutes means your calling minutes ran out. |
completed | Every contact has been called. |
Calls are placed up to your plan's concurrent call limit, which is shared across your running
campaigns, and only within each campaign's calling hours (default 09:00 to 21:00 IST). When
max_attempts is greater than 1, contacts who are busy, do not answer, or are unreachable are
called again after retry_delay_minutes.
campaign_prompt adds instructions for a single campaign, such as "Mention the Diwali offer",
without changing the agent.
Contacts
A contact is one person in a campaign.
| Status | Description |
|---|---|
pending | Not yet called. |
initiated | The call is ringing or in progress. |
completed | The call connected. |
no_answer | The call was not answered. |
busy | The line was busy. |
failed | The call could not be placed or connected. |
do_not_call | The number is on your do-not-call list and is never called. |
A contact waiting for a retry returns to pending, with attempts and next_attempt_at set.
Phone numbers are accepted in any common format, such as 98765 43210, +91 98765 43210, or
919876543210, and are stored in E.164 format. A number without a country code is treated as an
Indian number.
The extra object stores your own data with the contact and is returned with each of its calls.
The agent also has access to extra during the call, and confirms those details with the
contact instead of asking for them again.
Calls
A call is one conversation placed or answered by an agent. It has a call_id, a status,
timestamps, duration_seconds, and, when the agent records them, an outcome and a summary.
Retrieve a single call to get its transcript.
When the same phone number has been called before, the agent receives notes from its three most recent completed calls with that number in the last 90 days.
Recordings
Campaign calls are recorded. Test calls are not. At the start of each recorded call, the agent
states that the call is recorded, unless its greeting already does. The agent's
recording_purpose sets the wording:
recording_purpose | Notice |
|---|---|
quality (default) | "This call is recorded for quality purposes." |
quality_training | "This call is recorded for quality and training purposes." |
If a team member joins the call, their audio is also recorded.
When a recording is available, has_recording is true, and
GET /calls/{call_id}/recording-url returns a link to the audio that is valid for one hour.
Recordings are deleted 90 days after the call. After deletion, has_recording is false.