AACFlow

Twilio SMS

Send SMS, MMS, WhatsApp messages and manage calls

Usage Instructions

Integrate Twilio into the workflow. Send SMS, MMS, WhatsApp messages. Make and manage calls, look up phone numbers, and send verification codes.

Tools

twilio_send_sms

Input

ParameterTypeRequiredDescription
phoneNumbersstringYesPhone numbers to send the message to in E.164 format (e.g., +15551234567), separated by newlines
messagestringYesNo description
accountSidstringYesNo description
authTokenstringYesNo description
fromNumberstringYesTwilio phone number to send the message from in E.164 format (e.g., +15551234567)

Output

ParameterTypeDescription
successbooleanSMS send success status
messageIdstringUnique Twilio message identifier (SID)
statusstringMessage delivery status from Twilio
fromNumberstringPhone number message was sent from
toNumberstringPhone number message was sent to

twilio_make_call

Input

ParameterTypeRequiredDescription
tostringYesNo description
fromstringYesNo description
urlstringNoNo description
statusCallbackstringNoNo description
timeoutnumberNoNo description
accountSidstringYesNo description
authTokenstringYesNo description

Output

ParameterTypeDescription
successbooleanWhether the call was successfully initiated
callSidstringUnique identifier for the call
statusstringCall status (queued, ringing, in-progress, completed)
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_send_mms

Input

ParameterTypeRequiredDescription
tostringYesNo description
fromstringYesNo description
bodystringNoNo description
mediaUrlstringNoNo description
accountSidstringYesNo description
authTokenstringYesNo description

Output

ParameterTypeDescription
successbooleanMMS send success status
messageIdstringUnique Twilio message identifier (SID)
statusstringMessage delivery status from Twilio
numMedianumberNumber of media files attached

twilio_send_whatsapp

Input

ParameterTypeRequiredDescription
tostringYesNo description
fromstringYesNo description
bodystringNoNo description
mediaUrlstringNoNo description
accountSidstringYesNo description
authTokenstringYesNo description

Output

ParameterTypeDescription
successbooleanWhatsApp message send success status
messageIdstringUnique Twilio message identifier (SID)
statusstringMessage delivery status from Twilio
numMedianumberNumber of media files attached

twilio_lookup

Input

ParameterTypeRequiredDescription
phoneNumberstringYesNo description
countryCodestringNoNo description
typestringNoNo description
accountSidstringYesNo description
authTokenstringYesNo description

Output

ParameterTypeDescription
successbooleanLookup success status
phoneNumberstringPhone number in E.164 format
nationalFormatstringPhone number in national format
countryCodestringISO country code
carrierjsonCarrier information if requested
callerNamejsonCaller name information if requested
validbooleanWhether the phone number is valid
validationErrorsjsonValidation error details
urlstringThe URL of this phone number resource

twilio_send_verify

Input

ParameterTypeRequiredDescription
tostringYesNo description
channelstringNoNo description
serviceSidstringYesNo description
accountSidstringYesNo description
authTokenstringYesNo description

Output

ParameterTypeDescription
successbooleanVerification send success status
sidstringVerification SID
statusstringVerification status (pending, approved, canceled)
tostringRecipient phone number or email
channelstringVerification channel used (sms, call, email)
validbooleanWhether the verification request was valid
sendCodeAttemptsjsonInformation about the code delivery attempts

twilio_check_verify

Input

ParameterTypeRequiredDescription
tostringYesNo description
codestringYesNo description
serviceSidstringYesNo description
accountSidstringYesNo description
authTokenstringYesNo description

Output

ParameterTypeDescription
successbooleanVerification check success status
sidstringVerification SID
statusstringVerification status (pending, approved)
tostringRecipient phone number or email
channelstringChannel used (sms, call, email)
validbooleanWhether the verification code was valid

twilio_get_call

Input

ParameterTypeRequiredDescription
callSidstringYesNo description
accountSidstringYesNo description
authTokenstringYesNo description

Output

ParameterTypeDescription
successbooleanGet call success status
callSidstringUnique identifier for the call
fromstringPhone number the call originated from
tostringPhone number called
statusstringCall status
directionstringCall direction (inbound, outbound-api, etc.)
durationnumberCall duration in seconds
pricestringCost of the call
priceUnitstringCurrency of the price
startTimestringCall start time
endTimestringCall end time
dateCreatedstringWhen the call resource was created
dateUpdatedstringWhen the call resource was last updated
answeredBystringHow the call was answered (human, machine)
forwardedFromstringPhone number the call was forwarded from

twilio_list_calls

Input

ParameterTypeRequiredDescription
fromstringNoNo description
tostringNoNo description
statusstringNoNo description
startTimestringNoNo description
accountSidstringYesNo description
authTokenstringYesNo description

Output

ParameterTypeDescription
successbooleanList calls success status
callsjsonArray of call records
totalnumberTotal number of calls returned
pageSizenumberNumber of calls per page
pagenumberCurrent page number
nextPageUristringURI for the next page of results

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