hermosodocs

attach_voice_agent_number

Put an agent on a phone number

Area: AI VOICE AGENTS · Publishing & scheduling. Generated from the running MCP server, like the rest of the tool reference.

Description

Have a voice agent answer (and place) the calls of a number. number is one of the brand's Twilio or Telnyx numbers (from list_phone_numbers) or a number already on the platform. mode import: the platform takes the number itself (Vapi and ElevenLabs import a Twilio number with the Twilio connection's credentials; a Telnyx number needs credentialId on Vapi; Retell imports over a SIP trunk given terminationUri, sipUsername, sipPassword). mode forward: the number stays on Hermoso's call handling and each call is handed to the agent's SIP address (incoming calls only). Telnyx AI Assistants answer a Telnyx number on the same account. The default is the one the platform supports for that number. If the number's calls go elsewhere, the answer names it and replaceExisting:true takes them over. Free. Needs Vapi, Retell AI or ElevenLabs connected (Connectors, or connect_connector with the API key), or Telnyx for its AI Assistants.

Parameters

ParameterTypeDescription
agentIdrequiredstring
numberrequiredstring
mode"import" | "forward"
direction"inbound" | "outbound" | "both"
namestring
credentialIdstringVapi: a Telnyx credential made in the Vapi dashboard
terminationUristringSIP trunk termination URI (Retell import; ElevenLabs Telnyx outbound)
sipUsernamestring
sipPasswordstring
replaceExistingboolean
provider"vapi" | "retell" | "elevenlabs" | "telnyx"only when more than one voice platform is connected

Example call

Every required parameter is shown, filled from the schema where it gives a value and otherwise with a placeholder naming the type. Replace the placeholders with real values. The same call works on the MCP server, the CLI and POST https://app.hermoso.ai/v1/tools/attach_voice_agent_number.

MCP (tools/call)

{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"attach_voice_agent_number","arguments":{"agentId":"<string>","number":"<string>"}}}

CLI

hermoso call attach_voice_agent_number --json '{"agentId":"<string>","number":"<string>"}'

Credits

Credits are spent only on two things: running an AI model (image, video, voice, text, planning, post-production) and Ad Spy research. See Credits & costs.

All 728 Publishing & scheduling tools · tools.json