Create AI Agent
Create a reusable AI conversation agent (SMS or Voice)
POST
Create a reusable AI agent with custom conversation prompts. Supports both SMS and Voice agents.
SMS agents have no additional charges beyond standard SMS costs. Voice agents use Teli Voice platform with per-second billing.
Authorizations
Authentication header containing your API key.
Body
Agent type:
sms or voiceExample: "voice"Display name for the agent.Example:
"Sales Follow-up Agent" or "Sophie Agent"First message/greeting sent to contacts. Supports variables:
{{first_name}}, {{last_name}}Example: "Hi {{first_name}}, interested in our services?"AI behavior instructions. Tells the agent how to respond.Example:
"You are working for Pranta Nir Software Solutions. You are supposed to ask users if they want any consulting or software development support. If yes, ask them their budget for the software."Organization unique_id.Example:
"1763070568417x631086913669115287"User unique_id (agent creator).Example:
"1763072368418x263803518630956376"SMS agents only. Automated follow-up messages.Each item:
{ "day": number, "message": string }Example:Voice agents only. Voice ID for text-to-speech (e.g., “11labs-Adrian”, “11labs-Josh”)Default:
"11labs-Adrian"Voice agents only. Enable voicemail detection.Default:
falseVoice agents only. Message to leave if voicemail is detected.
Voice agents only. Language code (e.g., “en-US”, “es-ES”, “fr-FR”)Default:
"en-US"Voice agents only. Tools for function calling (end call, transfer, custom API, etc.)See Update Agent Tools for details.
Voice agents only. Array of knowledge base IDs to link to this agent.Example:
["knowledge_base_7a0682ce5fc02413"]Agent will automatically retrieve relevant information from these KBs during calls.Voice agents only. Knowledge base retrieval configuration.Properties:
top_k(number): Chunks to retrieve (1-10, default: 3)filter_score(number): Similarity threshold (0-1, default: 0.6)
Response
Agent identifier. Use this when creating campaigns.
Agent unique identifier (alternative ID)
Confirms the agent type:
sms or voiceAgent display name
Whether automated follow-ups are configured (SMS agents only)
Voice agent ID (voice agents only)
Voice LLM ID (voice agents only)
Voice ID for TTS (voice agents only)
Always returns “Teli”
Agent Types
SMS Agents
- Used for text-based conversations
- Support drip schedules for automated follow-ups
- No additional charges beyond SMS costs
- Can be configured with SMS-to-voice transfer
Voice Agents
- Used for phone call conversations
- Powered by Teli Voice platform
- Support voicemail detection and custom voicemails
- Billed per second of call time
- Can be used standalone or with SMS-to-voice transfer
Notes
- Agent IDs are unique across your organization
- Prompts support variable substitution:
{{first_name}},{{last_name}} - Voice agents are created on Teli Voice platform and automatically configured
- SMS agents can trigger voice agents when SMS-to-voice is enabled in campaigns
- Both agent types support organization-wide or user-specific visibility

