https://retellai.com/?utm_source=discord&utm_medium=seo logo
getting error message Cannot update published agen...
# 🎖・ask-retell-partners
t
@AI Evy getting error message Cannot update published agent Please create a new draft to update the agent when iam trying to update webhook url
a
Thanks for tagging me @trxgames. I'll look through relevant sources and get back to you shortly.
### Answer --- The error occurs because you're trying to update a published agent directly. Published agents are locked to ensure stability. Based on a Discord discussion, here's how to work around this: [(1) ]() 1. Use the draft version — Set your agent to use the draft version from the dashboard at the phone numbers tab 2. Once set to draft, any changes you make through the API or dashboard will take effect without needing to publish Alternatively, when making API calls, you can specify the version parameter in your update request. The Update Voice Agent endpoint accepts a
version
query parameter: [(2) ]()
Copy code
version
integer
Optional version of the API to use for this request. Default to latest version.
You can also retrieve all versions of your agent using the Get Agent Versions endpoint to identify which version to target. [(3) ]()
​ To learn more, see the sources I considered: [[1] Discord message from @omar.13. on 2025-08-13](https://discord.com/channels/1186424376300679209/1294891368505937952/1405226164376571948) [[2] Update Voice Agent](https://docs.retellai.com/api-references/update-agent) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
t
@AI Evy how to ensure In Retell Agent Settings → Webhook URL, paste: https://xxxx-xxxx.ngrok-free.app/webhook Then ensure the agent is subscribed to call_analyzed (that’s the event that contains transcript after analysis). Retell AI +1
a
Thanks for the follow-up, @trxgames. I'll get back to you soon.
### Answer --- To set up your webhook URL and receive the
call_analyzed
event: Step 1: Set the Webhook URL You have two options for registering your webhook: [(1) ]() - Account level webhook — Set up through the system settings' webhooks tab for events related to any agent under your account - Agent level webhook — Set up through the dashboard's agent detail page (note: if set, account level webhooks will not be triggered for that agent) You can also set the webhook URL via API using the
webhook_url
parameter when creating or updating an agent: [(2) ]() , [(3) ]()
Copy code
javascript
webhook_url: "<https://xxxx-xxxx.ngrok-free.app/webhook%22>
[(2) ]() Step 2: Receiving the
call_analyzed
Event
Once your webhook is registered, Retell automatically sends events including
call_analyzed
to your endpoint. Your server should handle it like this: [(1) ]()
Copy code
javascript
app.post("/webhook", (req: Request, res: Response) => {
  const {event, call} = req.body;
  switch (event) {
    case "call_started":
      console.log("Call started event received", call.call_id) ;
      break;
    case "call_ended":
      console.log("Call ended event received", call.call_id) ;
      break;
    case "call_analyzed":
      console.log("Call analyzed event received", call.call_id) ;
      break;
    default:
      console.log("Received an unknown event:", event) ;
  }
  // Acknowledge the receipt of the event
  res.status(204) .send() ;
}) ;
​ To learn more, see the sources I considered: [[1] Setup guide](https://docs.retellai.com/features/register-webhook) [[2] Update Voice Agent](https://docs.retellai.com/api-references/update-agent) [[3] Create Voice Agent](https://docs.retellai.com/api-references/create-agent) [[4] Consume the analysis data](https://docs.retellai.com/features/post-call-analysis-consumption) ​
Step 3: Verify Your Setup Start a web call in the dashboard to verify the webhook is triggered correctly. The
call_analyzed
event payload includes the call object with the
call_analysis
field populated, which contains the transcript and analysis results. [(4) ]() ---
t
a
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
t
@AI Evy how can i get full transcript it has 300 charch restriction: TRANSCRIPT (first 300 chars) ----- Agent: Thank you for calling Patrick Sullivan Law Firm LLC. My name is Jessica. Are you calling about a new legal matter, or an existing case with our office? User: The new legal matter. Agent: Thank you. May I have your full name, please? User: Tasi Mohan Motapati. Agent: Thank you, Tasi Mohan Mo
a
Thanks for the follow-up, @trxgames. I'll get back to you soon.
​ To learn more, see the sources I considered: [[1] Get Call](https://docs.retellai.com/api-references/get-call) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
### Answer --- The 300-character limit you're seeing is likely from your own logging or display code, not a Retell AI restriction. To get the full transcript, use the [Get Call]() API endpoint after the call ends. [(1) ]() The response includes: -
transcript
— Full transcription of the call as a string -
transcript_object
— Transcript as a list of utterances with timestamps and word-level details Example response fields:
Copy code
json
"transcript": "Agent: hi how are you doing?\nUser: Doing pretty well. How are you?\nAgent: That's great to hear!...",
"transcript_object": [
  {
    "role": "agent",
    "content": "hi how are you doing?",
    "words": [
      {
        "word": "hi",
        "start": 0.7,
        "end": 1.3
      }
    ]
  }
]
To retrieve the full transcript:
Copy code
javascript
import Retell from 'retell-sdk';
const client = new Retell({
  apiKey: 'YOUR_RETELL_API_KEY',
}) ;

const callResponse = await client.call.retrieve('YOUR_CALL_ID') ;
console.log(callResponse.transcript) ;
console.log(callResponse.transcript_object) ;
You can also access the
recording_url
field to download the full call recording.
t
@AI Evy i want to capture inbound calls into airtable crm for capturing the lead details how can i do that in make
a
Thanks for the follow-up, @trxgames. I'll get back to you soon.
Step 3: Use
call_analyzed
for Full Data
For lead capture, use the
call_analyzed
event—it includes the
call_analysis
object with call summary, sentiment, and any custom analysis data you've configured. Step 4: In Make 1. Create a Webhook trigger module to receive the Retell payload 2. Filter for
call_analyzed
events (or
call_ended
if you don't need analysis) 3. Map the fields (
from_number
,
transcript
,
call_analysis
, etc.) to your Airtable columns 4. Use an Airtable - Create Record module to insert the lead Key fields for lead capture:
from_number
(caller's phone) ,
transcript
,
call_analysis.call_summary
, and any
custom_analysis_data
you've defined. , [(2) ]() --- I don't have specific Make.com step-by-step instructions in the sources. For Make-specific configuration, refer to Make's documentation on webhook triggers and Airtable modules.
​ To learn more, see the sources I considered: [[1] Webhook Overview](https://docs.retellai.com/features/webhook-overview) [[2] Update Call](https://docs.retellai.com/api-references/update-call) ​
### Answer --- ### Answer To capture inbound call data into Airtable using Make, you'll use Retell's webhook events to push call data to Make, which then sends it to Airtable. Step 1: Set Up Your Webhook Configure your webhook URL in Retell (either at account or agent level) to point to a Make webhook trigger. [(1) ]() Retell supports these webhook events: | Event Type | Description | |------------|-------------| |
call_started
| Triggered when a new call begins | |
call_ended
| Triggered when a call completes, transfers, or encounters an error | |
call_analyzed
| Triggered when call analysis is complete (includes full transcript and analysis) | Step 2: Webhook Payload The webhook will
POST
a payload to your Make endpoint containing the event type and call object:
Copy code
json
{
  "event": "call_ended",
  "call": {
    "call_type": "phone_call",
    "from_number": "+12137771234",
    "to_number": "+12137771235",
    "direction": "inbound",
    "call_id": "Jabr9TXYYJHfvl6Syypi88rdAHYHmcq6",
    "agent_id": "oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD",
    "call_status": "registered",
    "metadata": {},
    "retell_llm_dynamic_variables": {
      "customer_name": "John Doe"
    },
    "start_timestamp": 1714608475945,
    "end_timestamp": 1714608491736,
    "disconnection_reason": "user_hangup",
    "transcript": "..."
  }
}
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
t
@AI Evy how to forward calls from current number to retell phone number
a
Thanks for the follow-up, @trxgames. I'll get back to you soon.
### Answer To forward calls from your current business number to a Retell AI phone number, you'll configure call forwarding through your existing telecom provider. [(1) ]() How to Set Up Call Forwarding: 1. Create your AI Voice Agent in Retell AI and configure it according to your business requirements 2. Purchase or assign a Retell phone number that will be linked to your AI agent 3. Configure call forwarding through your telecom provider's portal or by dialing specific codes to enable forwarding to your Retell AI number 4. Test the configuration by conducting test calls to ensure calls are correctly forwarded and handled by the AI agent Common Forwarding Configurations: - Ring duration forwarding — Set a specific number of rings before forwarding to the AI agent (e.g., if a human doesn't answer within five rings, the call forwards to Retell) - After-hours forwarding — Route calls directly to human agents during business hours, then automatically forward to the AI agent after operating hours end The specific steps to enable forwarding depend on your current phone provider (e.g., Twilio, traditional carrier) . Check your provider's documentation for the exact codes or portal settings to forward calls to your Retell phone number.
​ To learn more, see the sources I considered: [[1] Call Forwarding for AI Voice Agents | Retell AI](https://www.retellai.com/blog/best-practices-for-setting-up-ai-voice-agents-with-call-forwarding) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.