attach_voice_agent_number
Put an agent on a phone number
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
| Parameter | Type | Description |
|---|---|---|
agentIdrequired | string | |
numberrequired | string | |
mode | "import" | "forward" | |
direction | "inbound" | "outbound" | "both" | |
name | string | |
credentialId | string | Vapi: a Telnyx credential made in the Vapi dashboard |
terminationUri | string | SIP trunk termination URI (Retell import; ElevenLabs Telnyx outbound) |
sipUsername | string | |
sipPassword | string | |
replaceExisting | boolean | |
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.
Related tools
list_phone_numbersList phone numbersconnect_connectorConnect a paste-a-key accountlist_voice_agent_numbersList voice-agent numbersdetach_voice_agent_numberTake an agent off a numberlist_voice_agent_voicesList voice-agent voicesplace_voice_agent_callPlace an AI voice calldelete_voice_agentDelete a voice agentbatch_voice_agent_callsBatch AI voice callsupdate_voice_agentUpdate a voice agentlist_voice_agent_batchesList voice-agent batches