New260+ blocks and 240+ tools are now fully documented
DocumentationReferenceTool IntegrationsCommunication & Chat
Tool

AgentPhone

Provision phone numbers, send SMS/iMessage, and initiate AI-powered voice calls via AgentPhone

Automate voice and messaging communication with AgentPhone. Provision phone numbers, send outbound SMS and iMessage, and trigger AI-powered voice calls — all from within a Zelaxy workflow.

Overview

PropertyValue
Typeagentphone
CategoryTool — Communication
AuthAPI Key (Bearer token)

Operations

OperationTool IDDescription
Create Numberagentphone_create_numberProvision a new SMS- and voice-enabled phone number
List Numbersagentphone_list_numbersList all phone numbers provisioned for the account
Release Numberagentphone_release_numberPermanently release (delete) a provisioned phone number
Send Messageagentphone_send_messageSend an outbound SMS or iMessage from an AgentPhone agent
Create Callagentphone_create_callInitiate an outbound AI-powered voice call from an AgentPhone agent

Configuration

SettingTypeRequiredDescription
apiKeystring (secret)YesAgentPhone API key. Store as {{AGENTPHONE_API_KEY}} and reference it here. Sent as a Bearer token on every request.
countrystringNoTwo-letter country code for number provisioning (e.g. US, CA). Defaults to US. Only used by Create Number.
areaCodestringNoPreferred area code when provisioning a US or CA number (e.g. 415). Only used by Create Number.
agentIdstringNo / YesAgentPhone agent ID. Required for Create Call and Send Message; optional for Create Number (attaches the number to the agent immediately).
numberIdstringNo / YesID of an existing provisioned phone number. Required for Release Number; optional for Send Message (sets the sender) and Create Call (maps to fromNumberId).
toNumberstringYes (Send Message, Create Call)Destination phone number in E.164 format, e.g. +14155551234.
bodystringYes (Send Message)Text content of the message to send.
mediaUrlstringNoURL of an image, video, or file to attach as MMS. Only used by Send Message.
fromNumberIdstringNoPhone number ID to use as caller ID. Only used by Create Call (same as numberId in the block UI).
initialGreetingstringNoOptional greeting spoken when the recipient answers the call. Only used by Create Call.
voicestringNoVoice ID override for the call. Only used by Create Call.
systemPromptstringNoSystem prompt passed to the agent's built-in LLM for the call conversation. Only used by Create Call.
limitnumberNoMax number of phone numbers to return (default 20, max 100). Only used by List Numbers.
offsetnumberNoNumber of results to skip for pagination. Only used by List Numbers.

Outputs

Create Number

FieldTypeDescription
idstringUnique phone number ID
phoneNumberstringProvisioned phone number in E.164 format
countrystringTwo-letter country code
statusstringNumber status (e.g. active)
typestringNumber type (e.g. sms)
agentIdstringAgent the number is attached to (if any)
createdAtstringISO 8601 timestamp when the number was created

List Numbers

FieldTypeDescription
dataarrayArray of phone number objects
data[].idstringPhone number ID
data[].phoneNumberstringPhone number in E.164 format
data[].countrystringTwo-letter country code
data[].statusstringNumber status
data[].typestringNumber type (e.g. sms)
data[].agentIdstringAttached agent ID (if any)
data[].createdAtstringISO 8601 creation timestamp
hasMorebooleanWhether more results are available beyond this page
totalnumberTotal number of phone numbers in the account

Release Number

FieldTypeDescription
idstringID of the released phone number
releasedbooleanWhether the number was released successfully

Send Message

FieldTypeDescription
idstringMessage ID
statusstringDelivery status
channelstringMessage channel: sms, mms, or imessage
fromNumberstringSender phone number
toNumberstringRecipient phone number

Create Call

FieldTypeDescription
idstringUnique call identifier
agentIdstringAgent handling the call
statusstringInitial call status
toNumberstringDestination phone number
fromNumberstringCaller ID used for the call
phoneNumberIdstringID of the phone number used
directionstringCall direction (outbound)
startedAtstringISO 8601 timestamp when the call started

Example

[Starter] → [AgentPhone: Send Message] → [Agent: log the result]

When a form submission triggers the workflow, the Send Message block reads the customer phone number from {{starter.toNumber}} and sends a personalised confirmation SMS using the text from {{starter.messageBody}}. The API key is stored as {{AGENTPHONE_API_KEY}} and injected into the block's apiKey field. The agent block downstream receives {{agentphone.id}} and {{agentphone.status}} to log the delivery outcome.

Tips

  • Phone numbers must be in E.164 format for both toNumber and fromNumberId/numberId — always include the country code prefix (e.g. +14155551234).
  • Release Number is irreversible. Protect this operation with a Condition block that confirms the correct numberId before calling agentphone_release_number.
  • Attach a number to an agent at provisioning time by passing agentId to Create Number — this avoids a separate configuration step in the AgentPhone dashboard.
  • Use List Numbers with pagination when managing large fleets: set limit and offset via upstream block outputs (e.g. {{pagination.offset}}) to iterate over all provisioned numbers.
  • Override voice and system prompt per call using the voice and systemPrompt params in Create Call to personalise each outbound conversation without changing the agent's default configuration.