AACFlow

AgentPhone

Provision numbers, send SMS and iMessage, and place voice calls with AgentPhone

Usage Instructions

Give your workflow a phone. Provision SMS- and voice-enabled numbers, send messages and tapback reactions, place outbound voice calls, manage conversations and contacts, and track usage — all through a single AgentPhone API key.

Tools

agentphone_create_call

Input

ParameterTypeRequiredDescription
apiKeystringYesNo description
agentIdstringYesNo description
toNumberstringYesNo description
fromNumberIdstringNoPhone number ID to use as caller ID. Must belong to the agent. If omitted, the agent's first assigned number is used.
initialGreetingstringNoNo description
voicestringNoVoice ID override for this call (defaults to the agent's configured voice)
systemPromptstringNoNo description

Output

ParameterTypeDescription
idstringid output from the tool
agentIdstringagentId output from the tool
statusstringstatus output from the tool
toNumberstringtoNumber output from the tool
fromNumberstringfromNumber output from the tool
phoneNumberIdstringphoneNumberId output from the tool
directionstringdirection output from the tool
startedAtstringstartedAt output from the tool

agentphone_create_contact

Input

ParameterTypeRequiredDescription
apiKeystringYesNo description
phoneNumberstringYesNo description
namestringYesContact's full name
emailstringNoContact's email address
notesstringNoNo description

Output

ParameterTypeDescription
idstringid output from the tool
phoneNumberstringphoneNumber output from the tool
namestringname output from the tool
emailstringemail output from the tool
notesstringnotes output from the tool
createdAtstringcreatedAt output from the tool
updatedAtstringupdatedAt output from the tool

agentphone_create_number

Input

ParameterTypeRequiredDescription
apiKeystringYesNo description
countrystringNoNo description
areaCodestringNoNo description
agentIdstringNoNo description

Output

ParameterTypeDescription
idstringid output from the tool
phoneNumberstringphoneNumber output from the tool
countrystringcountry output from the tool
statusstringstatus output from the tool
typestringtype output from the tool
agentIdstringagentId output from the tool
createdAtstringcreatedAt output from the tool

agentphone_delete_contact

Input

ParameterTypeRequiredDescription
apiKeystringYesNo description
contactIdstringYesNo description

Output

ParameterTypeDescription
idstringid output from the tool
deletedbooleandeleted output from the tool

agentphone_get_call

Input

ParameterTypeRequiredDescription
apiKeystringYesNo description
callIdstringYesNo description

Output

ParameterTypeDescription
idstringid output from the tool
agentIdstringagentId output from the tool
phoneNumberIdstringphoneNumberId output from the tool
phoneNumberstringphoneNumber output from the tool
fromNumberstringfromNumber output from the tool
toNumberstringtoNumber output from the tool
directionstringdirection output from the tool
statusstringstatus output from the tool
startedAtstringstartedAt output from the tool
endedAtstringendedAt output from the tool
durationSecondsnumberdurationSeconds output from the tool
lastTranscriptSnippetstringlastTranscriptSnippet output from the tool
recordingUrlstringrecordingUrl output from the tool
recordingAvailablebooleanrecordingAvailable output from the tool
transcriptsarraytranscripts output from the tool
idstringid output from the tool
transcriptstringtranscript output from the tool
confidencenumberconfidence output from the tool
responsestringresponse output from the tool
createdAtstringcreatedAt output from the tool

agentphone_get_call_transcript

Input

ParameterTypeRequiredDescription
apiKeystringYesNo description
callIdstringYesNo description

Output

ParameterTypeDescription
callIdstringcallId output from the tool
transcriptarraytranscript output from the tool
rolestringrole output from the tool
contentstringcontent output from the tool
createdAtstringcreatedAt output from the tool

agentphone_get_contact

Input

ParameterTypeRequiredDescription
apiKeystringYesNo description
contactIdstringYesNo description

Output

ParameterTypeDescription
idstringid output from the tool
phoneNumberstringphoneNumber output from the tool
namestringname output from the tool
emailstringemail output from the tool
notesstringnotes output from the tool
createdAtstringcreatedAt output from the tool
updatedAtstringupdatedAt output from the tool

agentphone_get_conversation

Input

ParameterTypeRequiredDescription
apiKeystringYesNo description
conversationIdstringYesNo description
messageLimitnumberNoNo description

Output

ParameterTypeDescription
idstringid output from the tool
agentIdstringagentId output from the tool
phoneNumberIdstringphoneNumberId output from the tool
phoneNumberstringphoneNumber output from the tool
participantstringparticipant output from the tool
lastMessageAtstringlastMessageAt output from the tool
messageCountnumbermessageCount output from the tool
metadatajsonmetadata output from the tool
createdAtstringcreatedAt output from the tool
messagesarraymessages output from the tool
idstringid output from the tool
bodystringbody output from the tool
fromNumberstringfromNumber output from the tool
toNumberstringtoNumber output from the tool
directionstringdirection output from the tool
channelstringchannel output from the tool
mediaUrlstringmediaUrl output from the tool
receivedAtstringreceivedAt output from the tool

agentphone_get_conversation_messages

Input

ParameterTypeRequiredDescription
apiKeystringYesNo description
conversationIdstringYesNo description
limitnumberNoNo description
beforestringNoNo description
afterstringNoNo description

Output

ParameterTypeDescription
dataarraydata output from the tool
idstringid output from the tool
bodystringbody output from the tool
fromNumberstringfromNumber output from the tool
toNumberstringtoNumber output from the tool
directionstringdirection output from the tool
channelstringchannel output from the tool
mediaUrlstringmediaUrl output from the tool
receivedAtstringreceivedAt output from the tool
hasMorebooleanhasMore output from the tool

agentphone_get_number_messages

Input

ParameterTypeRequiredDescription
apiKeystringYesNo description
numberIdstringYesNo description
limitnumberNoNo description
beforestringNoNo description
afterstringNoNo description

Output

ParameterTypeDescription
dataarraydata output from the tool
idstringid output from the tool
from_stringfrom_ output from the tool
tostringto output from the tool
bodystringbody output from the tool
directionstringdirection output from the tool
channelstringchannel output from the tool
receivedAtstringreceivedAt output from the tool
hasMorebooleanhasMore output from the tool

agentphone_get_usage

Input

ParameterTypeRequiredDescription
apiKeystringYesNo description

Output

ParameterTypeDescription
planjsonplan output from the tool
numbersjsonnumbers output from the tool
statsjsonstats output from the tool
periodStartstringperiodStart output from the tool
periodEndstringperiodEnd output from the tool

agentphone_get_usage_daily

Input

ParameterTypeRequiredDescription
apiKeystringYesNo description
daysnumberNoNo description

Output

ParameterTypeDescription
dataarraydata output from the tool
datestringdate output from the tool
messagesnumbermessages output from the tool
callsnumbercalls output from the tool
webhooksnumberwebhooks output from the tool
daysnumberdays output from the tool

agentphone_get_usage_monthly

Input

ParameterTypeRequiredDescription
apiKeystringYesNo description
monthsnumberNoNo description

Output

ParameterTypeDescription
dataarraydata output from the tool
monthstringmonth output from the tool
messagesnumbermessages output from the tool
callsnumbercalls output from the tool
webhooksnumberwebhooks output from the tool
monthsnumbermonths output from the tool

agentphone_list_calls

Input

ParameterTypeRequiredDescription
apiKeystringYesNo description
limitnumberNoNo description
offsetnumberNoNo description
statusstringNoNo description
directionstringNoNo description
typestringNoNo description
searchstringNoNo description

Output

ParameterTypeDescription
dataarraydata output from the tool
idstringid output from the tool
agentIdstringagentId output from the tool
phoneNumberIdstringphoneNumberId output from the tool
phoneNumberstringphoneNumber output from the tool
fromNumberstringfromNumber output from the tool
toNumberstringtoNumber output from the tool
directionstringdirection output from the tool
statusstringstatus output from the tool
startedAtstringstartedAt output from the tool
endedAtstringendedAt output from the tool
durationSecondsnumberdurationSeconds output from the tool
lastTranscriptSnippetstringlastTranscriptSnippet output from the tool
recordingUrlstringrecordingUrl output from the tool
recordingAvailablebooleanrecordingAvailable output from the tool
hasMorebooleanhasMore output from the tool
totalnumbertotal output from the tool

agentphone_list_contacts

Input

ParameterTypeRequiredDescription
apiKeystringYesNo description
searchstringNoNo description
limitnumberNoNo description
offsetnumberNoNo description

Output

ParameterTypeDescription
dataarraydata output from the tool
idstringid output from the tool
phoneNumberstringphoneNumber output from the tool
namestringname output from the tool
emailstringemail output from the tool
notesstringnotes output from the tool
createdAtstringcreatedAt output from the tool
updatedAtstringupdatedAt output from the tool
hasMorebooleanhasMore output from the tool
totalnumbertotal output from the tool

agentphone_list_conversations

Input

ParameterTypeRequiredDescription
apiKeystringYesNo description
limitnumberNoNo description
offsetnumberNoNo description

Output

ParameterTypeDescription
dataarraydata output from the tool
idstringid output from the tool
agentIdstringagentId output from the tool
phoneNumberIdstringphoneNumberId output from the tool
phoneNumberstringphoneNumber output from the tool
participantstringparticipant output from the tool
lastMessageAtstringlastMessageAt output from the tool
lastMessagePreviewstringlastMessagePreview output from the tool
messageCountnumbermessageCount output from the tool
metadatajsonmetadata output from the tool
createdAtstringcreatedAt output from the tool
hasMorebooleanhasMore output from the tool
totalnumbertotal output from the tool

agentphone_list_numbers

Input

ParameterTypeRequiredDescription
apiKeystringYesNo description
limitnumberNoNo description
offsetnumberNoNo description

Output

ParameterTypeDescription
dataarraydata output from the tool
idstringid output from the tool
phoneNumberstringphoneNumber output from the tool
countrystringcountry output from the tool
statusstringstatus output from the tool
typestringtype output from the tool
agentIdstringagentId output from the tool
createdAtstringcreatedAt output from the tool
hasMorebooleanhasMore output from the tool
totalnumbertotal output from the tool

agentphone_react_to_message

Input

ParameterTypeRequiredDescription
apiKeystringYesNo description
messageIdstringYesNo description
reactionstringYesNo description

Output

ParameterTypeDescription
idstringid output from the tool
reactionTypestringreactionType output from the tool
messageIdstringmessageId output from the tool
channelstringchannel output from the tool

agentphone_release_number

Input

ParameterTypeRequiredDescription
apiKeystringYesNo description
numberIdstringYesNo description

Output

ParameterTypeDescription
idstringid output from the tool
releasedbooleanreleased output from the tool

agentphone_send_message

Input

ParameterTypeRequiredDescription
apiKeystringYesNo description
agentIdstringYesNo description
toNumberstringYesNo description
bodystringYesNo description
mediaUrlstringNoNo description
numberIdstringNoPhone number ID to send from. If omitted, the agent's first assigned number is used.

Output

ParameterTypeDescription
idstringid output from the tool
statusstringstatus output from the tool
channelstringchannel output from the tool
fromNumberstringfromNumber output from the tool
toNumberstringtoNumber output from the tool

agentphone_update_contact

Update a contact

Input

ParameterTypeRequiredDescription
apiKeystringYesNo description
contactIdstringYesNo description
phoneNumberstringNoNo description
namestringNoNo description
emailstringNoNo description
notesstringNoNo description

Output

ParameterTypeDescription
idstringid output from the tool
phoneNumberstringphoneNumber output from the tool
namestringname output from the tool
emailstringemail output from the tool
notesstringnotes output from the tool
createdAtstringcreatedAt output from the tool
updatedAtstringupdatedAt output from the tool

agentphone_update_conversation

Input

ParameterTypeRequiredDescription
apiKeystringYesNo description
conversationIdstringYesNo description
metadatajsonNoNo description

Output

ParameterTypeDescription
idstringid output from the tool
agentIdstringagentId output from the tool
phoneNumberIdstringphoneNumberId output from the tool
phoneNumberstringphoneNumber output from the tool
participantstringparticipant output from the tool
lastMessageAtstringlastMessageAt output from the tool
messageCountnumbermessageCount output from the tool
metadatajsonmetadata output from the tool
createdAtstringcreatedAt output from the tool
messagesarraymessages output from the tool
idstringid output from the tool
bodystringbody output from the tool
fromNumberstringfromNumber output from the tool
toNumberstringtoNumber output from the tool
directionstringdirection output from the tool
channelstringchannel output from the tool
mediaUrlstringmediaUrl output from the tool
receivedAtstringreceivedAt output from the tool

本页内容

今天就开始构建
超过 100,000 名开发者信赖我们。
用于构建 AI 智能体并运行智能体工作团队的 SaaS 平台。
开始使用