ResoneraDocs

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:

PropertyDescription
name, greetingThe name the agent introduces itself with, and the opening line it speaks word for word.
prompt, call_purposeInstructions for the agent's role and behavior, and the goal of the call.
voice_name, languageThe voice and language, from GET /voices.
toolsActions the agent can take during a call. See Tools.
kb_item_idsKnowledge base files the agent answers questions from.
custom_tool_ids, skill_idsYour 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

ToolAction
take_messageRecords a message for your team.
schedule_callbackAgrees on a time to call back.
transfer_callTransfers the caller to the number in the agent's transfer_to. Without a transfer_to number, the agent takes a message instead.
search_knowledge_baseAnswers questions from the agent's knowledge base files.
gather_requirementsSaves the caller's requirements as a document in your knowledge base.
place_orderTakes an order. The order is returned in the call's order_details.
summarize_callRecords a summary and an outcome at the end of the call.
check_availability, book_appointmentFinds an open slot and books it on your connected booking calendar.
lookup_in_sheet, append_to_sheetReads rows from or adds rows to a connected Google Sheet.
detected_answering_machineLeaves 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.

StatusDescription
draftCreated. No calls have been placed.
scheduledLaunched with a start_at time. Calling starts at that time.
runningCalls 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.
pausedCalling is stopped. Launch the campaign again to resume. paused_reason: minutes means your calling minutes ran out.
completedEvery 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.

StatusDescription
pendingNot yet called.
initiatedThe call is ringing or in progress.
completedThe call connected.
no_answerThe call was not answered.
busyThe line was busy.
failedThe call could not be placed or connected.
do_not_callThe 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_purposeNotice
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.

On this page