AACFlow

Twilio Voice

Make and manage phone calls

Usage Instructions

Integrate Twilio Voice into the workflow. Make outbound calls and retrieve call recordings.

Tools

twilio_voice_make_call

Input

ParameterTypeRequiredDescription
tostringYesNo description
fromstringYesNo description
urlstringNoWebhook URL that returns TwiML instructions for the call (e.g., https://example.com/twiml\)
twimlstringNoTwiML instructions to execute. Use square brackets instead of angle brackets (e.g., [Response][Say]Hello[/Say][/Response])
statusCallbackstringNoNo description
statusCallbackMethodstringNoNo description
accountSidstringYesNo description
authTokenstringYesNo description
recordbooleanNoNo description
recordingStatusCallbackstringNoNo description
timeoutnumberNoNo description
machineDetectionstringNoNo description

Output

ParameterTypeDescription
successbooleanWhether the call was successfully initiated
callSidstringUnique identifier for the call
statusstringCall status (queued, ringing, in-progress, completed, etc.)
directionstringCall direction (outbound-api)
fromstringPhone number the call is from
tostringPhone number the call is to
durationnumberCall duration in seconds
pricestringCost of the call
priceUnitstringCurrency of the price
errorstringError message if call failed

twilio_voice_list_calls

Input

ParameterTypeRequiredDescription
accountSidstringYesNo description
authTokenstringYesNo description
tostringNoNo description
fromstringNoNo description
statusstringNoFilter by call status (e.g., queued, ringing, in-progress, completed, busy, failed, no-answer, canceled)
startTimeAfterstringNoNo description
startTimeBeforestringNoNo description
pageSizenumberNoNo description

Output

ParameterTypeDescription
successbooleanWhether the calls were successfully retrieved
callsarrayArray of call objects
totalnumberTotal number of calls returned
pagenumberCurrent page number
pageSizenumberNumber of calls per page
errorstringError message if retrieval failed

twilio_voice_get_recording

Input

ParameterTypeRequiredDescription
recordingSidstringYesNo description
accountSidstringYesNo description
authTokenstringYesNo description

Output

ParameterTypeDescription
successbooleanWhether the recording was successfully retrieved
recordingSidstringUnique identifier for the recording
callSidstringCall SID this recording belongs to
durationnumberDuration of the recording in seconds
statusstringRecording status (completed, processing, etc.)
channelsnumberNumber of channels (1 for mono, 2 for dual)
sourcestringHow the recording was created
mediaUrlstringURL to download the recording media file
filefileDownloaded recording media file
pricestringCost of the recording
priceUnitstringCurrency of the price
uristringRelative URI of the recording resource
transcriptionTextstringTranscribed text from the recording (if available)
transcriptionStatusstringTranscription status (completed, in-progress, failed)
transcriptionPricestringCost of the transcription
transcriptionPriceUnitstringCurrency of the transcription price
errorstringError message if retrieval failed

On this page

Start building today
Trusted by over 100,000 builders.
The SaaS platform to build AI agents and run your agentic workforce.
Get started