type: "inbound". When you attach an inbound agent to a phone number, every incoming call to that number is answered by CallingBox and handed to the agent.
You don’t make an API call to start an inbound call. The caller dials your number, CallingBox looks up the inbound agent attached to that number, and the conversation starts.
Routing rule
Each phone number can have at most one inbound agent. That agent answers every incoming call to the number.Set up an inbound agent
Purchase or pick a number
You need at least one active number. See Numbers.
Create the inbound agent
Configure the behavior once: persona, instructions, voice, returns, tools, voicemail action. Attach the number at creation time.
What happens per inbound call
- A caller dials your number.
- CallingBox looks up the inbound agent attached to that number. If none is attached, the call is rejected.
- A call record is created with
direction: "inbound"andagent_idset to the inbound agent. - CallingBox answers, runs the agent (persona, instructions, voice, tools, language), and drives the conversation.
- When the call ends, CallingBox extracts the agent’s
returnsschema from the transcript and updates the call record. - Webhooks fire (
call.answered,call.completed, etc.) to the agent’swebhook_urland any account-wide endpoints.
Update the agent’s behavior
Edits to the agent apply to the next call. In-progress calls continue with the config they started with.Swap numbers
Detach and attach numbers as you move the agent to a different line. The number starts routing to the new inbound agent as soon as it’s attached.Retrieve inbound calls
Inbound calls show up in the sameGET /v1/calls list as outbound calls. Filter by direction or by agent_id in the dashboard, or by id in the API.
Agents
The agent primitive in depth.
Outbound calls
Dispatch a call from an outbound agent.
Structured results
Define the
returns schema on your agent.Webhooks
Get notified when an inbound call finishes.