https://retellai.com/?utm_source=discord&utm_medium=seo logo
answer these questions "1
# ❓・ai-evy-support
h
@AI Evy answer these questions "1. Agent Configuration How do we pass a custom system prompt when creating/updating an agent? What is the exact format for the prompt (plain string vs structured JSON)? Can we dynamically update an agent’s prompt for each customer (per SaaS tenant)? How do we assign a custom name to each agent (like we can on the Retell AI website)? Can we choose ElevenLabs voices directly in the SDK? If yes, how do we specify the voice ID? Can we select the LLM model (e.g., GPT-4o, Claude, etc.)? Is there any support for fallback models (e.g., use GPT-4o, but if unavailable → switch to Claude automatically)? --- 2. Hosting & Server Responsibilities Do agents run fully on Retell’s servers, or do we need to keep a persistent server running for each agent? If agents are Retell-hosted, do we just call APIs to trigger calls and retrieve analytics? Are there any scaling/concurrency limits we should be aware of? --- 3. API Access & Management Can we list and manage all agents programmatically (not just via dashboard)? If we create agents via SDK, will they also appear on the Retell AI website under our account? Can we access live call streams (audio + transcription in real-time), or only after-call analytics? Are there webhooks available for call events (e.g., call started, call ended, appointment booked)? --- 4. Integration & Tool Calling For Cal.com integration, do we pass the API credentials into the SDK, or does the agent call our middleware API first? Is it possible to integrate other tools/CRMs (like Salesforce, HubSpot, FollowUpBoss) in a similar way? --- 5. Billing & Compliance How is billing calculated (per minute, per call, or per number)? Is there a way to track usage per customer (for SaaS tenant-level billing)? For outbound calls, does Retell handle compliance/consent requirements (e.g., call recording laws), or is that our responsibility? "
a
Thanks for tagging me @hasnain0794. I'll look through relevant sources and get back to you shortly.
### Answer ## 1. Agent Configuration **Custom System Prompt**: When creating or updating agents, you need to first create a Response Engine that contains your prompt configuration [(1) ]() [(2) ]() . The agent references this Response Engine through the
response_engine
parameter . **Agent Name**: You can assign a custom name using the
agent_name
parameter [(2) ]() [(1) ]() :
Copy code
javascript
const agentResponse = await client.agent.create({
 response_engine: { llm_id: 'llm_234sdertfsdsfsdf', type: 'retell-llm' },
 voice_id: '11labs-Adrian',
 agent_name: 'Jarvis'
}) ;
[(1) ]() **ElevenLabs Voices**: Yes, you can specify ElevenLabs voices directly using the
voice_id
parameter [(2) ]() [(1) ]() . For example,
"11labs-Adrian"
. You can also set voice models with the
voice_model
parameter, which supports options like
eleven_turbo_v2
,
eleven_flash_v2
,
eleven_turbo_v2_5
,
eleven_flash_v2_5
,
eleven_multilingual_v2
. **Fallback Voices**: Retell supports fallback voices through the
fallback_voice_ids
parameter . When the primary TTS provider experiences outages, the system uses fallback voices from different providers . **Dynamic Updates**: You can update agent configurations using the update agent API [(2) ]() , which allows you to modify settings per customer/tenant. ## 2. Hosting & Server Responsibilities Based on the available sources, agents appear to be managed through Retell's API infrastructure. You interact with agents through API calls for creation [(1) ]() , updates [(2) ]() , listing [(3) ]() , and version management [(4) ]() . ## 3. API Access & Management **Programmatic Management**: Yes, you can list and manage agents programmatically [(3) ]() :
Copy code
javascript
const agentResponses = await client.agent.list() ;
**Agent Versions**: You can retrieve all versions of an agent [(4) ]() :
Copy code
javascript
const agentResponses = await client.agent.getVersions('16b980523634a6dc504898cda492e939') ;
**Webhooks**: Webhook support is available through the
webhook_url
parameter [(2) ]() [(1) ]() . You can set webhooks at the agent level to receive call events . ## 4. Integration & Tool Calling The sources show that agents support webhook integration , but specific details about Cal.com integration or CRM integrations aren't covered in the available documentation. ## 5. Billing & Compliance **Privacy Options**: Retell provides privacy controls through
opt_out_sensitive_data_storage
and
opt_in_signed_url
parameters . The
opt_out_sensitive_data_storage
setting controls whether sensitive data like transcripts, recordings, and phone numbers are stored . For detailed information about billing calculations, usage tracking, and specific compliance requirements, I'd recommend checking the main documentation or contacting support: - Visit [Contact Sales]() - Visit [) Would you like me to provide a general answer based on my knowledge for any of these topics?
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
h
hi
Agent Management When creating an agent via SDK/API, can we pass a custom agent_name (e.g., JohnAgent-User123) and later query/filter agents by that name? Is there an API to list all agents under our Retell account (so we can sync them to each SaaS user)? Can we update agent settings (prompt, voice, webhook URL) via API after creation? Or must we re-create the agent? Is there a way to soft-delete/deactivate agents without losing historical call data? 🔹 Outbound Calls What is the exact API call/SDK method to trigger a single outbound call (agent_id + phone_number)? For batch calls (upload leads), what is the API flow? Do we POST a CSV/file to Retell? Or do we loop through create_call API for each lead? If batch calls are supported directly in the SDK, can we pass per-lead metadata (tags, campaign_id, CRM id)? Can batch calls be throttled (e.g., max 10 concurrent calls per tenant)? Or do we need to implement throttling on our side? Is there a queue status API for batch calls (pending, in-progress, completed)? 🔹 Analytics & Reporting How can we get per-agent analytics programmatically? (e.g., # calls made, # connected, # appointments booked, avg call duration). Is there an API to filter analytics per agent_id and by time window (daily/weekly)? Can we export raw call logs/transcripts via API? If yes, what fields are included (call_id, lead_phone, disposition, duration)? Is there a real-time event (webhook) for “appointment booked” or do we need to parse transcripts for that? Does Retell provide cost per call/minute breakdown in API responses, or do we calculate based on usage minutes? @User