Voice agentsAgents
Agents
Create and manage the AI agents that answer your calls and WhatsApp messages.
An agent is one AI persona: its identity, the LLM, speech-to-text and text-to-speech it uses, and the numbers it answers. The same agent can handle voice calls and WhatsApp chats.
Creating an agent through the API behaves exactly like creating one in the dashboard -- your plan's agent limit applies and the system prompt is generated from the fields you send.
Endpoints
The agent object
idstring (uuid)Unique identifier of the agent.
tenant_idstring (uuid)The workspace that owns the agent.
agent_namestringName the agent introduces itself with.
descriptionstringShort goal of the agent, used to compose the system prompt.
system_promptstringnullableThe full prompt sent to the LLM. Generated on create; afterwards stored exactly as you send it.
industrystringIndustry context, e.g.
Banking.designationstringRole the agent plays, e.g.
Loan advisor.company_namestringCompany the agent speaks on behalf of.
llm_providerstringLLM provider for voice calls.
Allowed:openaianthropicgooglegrokopenrouterazurellm_modelstringLLM model id, e.g.
gpt-4o-mini.llm_temperaturenumberSampling temperature.
Default:0.7llm_max_tokenintegerMax tokens per LLM reply.
Default:350whatsapp_llm_providerstringnullableLLM provider for the WhatsApp text agent.
whatsapp_llm_modelstringnullableLLM model for the WhatsApp text agent.
whatsapp_llm_temperaturenumberTemperature for the WhatsApp text agent.
Default:0.7whatsapp_llm_max_tokenintegerMax tokens per WhatsApp reply.
Default:350stt_providerstringSpeech-to-text provider.
Allowed:deepgramopenaistt_modelstringSpeech-to-text model, e.g.
nova-3.tts_providerstringText-to-speech provider.
Allowed:sarvamelevenlabssmallestcartesiarimeinworldazurettstts_voicestringVoice id from the TTS provider.
tts_modelstringnullableTTS model, when the provider has several.
tts_languagestringTTS language code.
Default:enlanguagestringnullableConversation language, e.g.
english,hindi,hinglish,tamil. Must be supported by the STT provider.stt_lang_codestringnullableRead-only. Language code derived from
languageand the STT provider.llm_credential_idstring (uuid)nullableRead-only. Your own LLM key (from Providers) used for this agent, if connected.
stt_credential_idstring (uuid)nullableRead-only. Your own STT key used for this agent, if connected.
tts_credential_idstring (uuid)nullableRead-only. Your own TTS key used for this agent, if connected.
tonestringSpeaking tone.
Default:Warm & professionalgreeting_messagestringFirst line spoken on inbound calls.
outbound_greeting_messagestringFirst line spoken on outbound calls.
guardrailsstringRules the agent must follow.
conversation_flowstring[]Ordered steps of the conversation.
closing_messagestringLine used to close the call.
hangup_promptstringnullableWhen the agent should end the call.
background_soundstringAmbience mixed under the voice.
Allowed:noneoffice_ambienceDefault:nonenumber_idstring (uuid)nullableRead-only. Phone number linked for inbound calls.
set_inbound_numberstringnullablePhone number (E.164) that routes inbound calls to this agent.
whatsapp_account_idstring (uuid)nullableRead-only. WhatsApp account linked to this agent.
set_inbound_whatsapp_numberstringnullableWhatsApp
phone_number_idwhose messages this agent answers.post_call_whatsapp_template_namestringnullableRead-only. WhatsApp template sent after a call.
post_call_whatsapp_template_languagestringnullableRead-only. Language of the post-call template.
post_call_whatsapp_template_paramsstring[]Read-only. Variables filled into the post-call template.
is_activebooleanWhether the agent answers calls and messages.
Default:truecreated_atstring (date-time)When the agent was created.
updated_atstring (date-time)When the agent was last changed.