https://retellai.com/?utm_source=discord&utm_medium=seo logo
Hey, i want to record the voice mail message while...
# ❓・ai-evy-support
a
@AI Evy Hey, i want to record the voice mail message while executing transfer live help in conversation flow agent and send to my inbox which is connected with the agent level webhook. How to do that
a
Thanks for tagging me @afrah_85175. I'll look through relevant sources and get back to you shortly.
### Answer Based on the available sources, I can provide information about webhook configuration and voicemail handling, but I don't have specific documentation about recording voicemail messages during transfer operations in Conversation Flow agents. For webhook configuration, you can set up an agent-level webhook URL that will receive call events [(1) ]() . The webhook URL can be configured using the
webhook_url
parameter when creating or updating an agent [(1) ]() [(2) ]() :
Copy code
javascript
const agentResponse = await client.agent.create({
  response_engine: { llm_id: 'llm_234sdertfsdsfsdf', type: 'retell-llm' },
  voice_id: '11labs-Adrian',
  webhook_url: "<https://webhook-url-here%22,>
  webhook_timeout_ms: 10000
}) ;
[(1) ]() Retell AI sends three main webhook events:
call_started
,
call_ended
, and
call_analyzed
[(3) ]() . These webhooks automatically push information when events occur, allowing you to instantly update systems or trigger automated workflows [(4) ]() . However, there are some known compatibility issues between phone number level webhooks and agent level webhooks in Conversation Flow agents [(5) ]() . One user reported that if you add a webhook URL to the phone number, it may be lost when you save the conversation agent . For voicemail handling, the sources show there's a
voicemail_option
configuration available [(1) ]() [(2) ]() , but the specific implementation details for recording and sending voicemail messages during transfer operations aren't detailed in the available documentation. I don't have complete information about the specific workflow you're trying to implement for recording voicemail messages during transfer operations. Would you like me to provide a general answer based on my knowledge instead, or would you prefer to check these potentially useful sources: - [Create Agent]() - [Update Agent]() - [Retell AI Webhooks | AI Voice Agents With Live Data | Retell AI]()
​ To learn more, see the sources I considered: [[1] Create Agent](https://docs.retellai.com/api-references/create-agent) [[2] Update Agent](https://docs.retellai.com/api-references/update-agent) [[3] How to send webhook events when a user doesn't pick up the phone or hangs up mid conversation?](https://discord.com/channels/1186424376300679209/1358279830906343554) [[4] Retell AI Webhooks | AI Voice Agents With Live Data | Retell AI](https://www.retellai.com/blog/retell-ai-webhooks-feature) [[5] inbound webhook URL failing to save (or stay saved) and wont work together with conversation agaent](https://discord.com/channels/1186424376300679209/1398428473781125314) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
a
@AI Evy In retell when the user didnt pick up the call, the voicemail message should be recorded and sent to the inbox. How should i do that ?
a
Thanks for the follow-up, @afrah_85175. I'll get back to you soon.
[(3) ]() [(4) ]() To receive notifications when voicemail is detected, you can configure a webhook URL at the agent level [(1) ]() [(2) ]() [(3) ]() [(4) ]() [(5) ]() . The webhook will receive call events and can be set up using the
webhook_url
parameter :
Copy code
javascript
"webhook_url": "<https://webhook-url-here%22>
The webhook timeout can be configured with
webhook_timeout_ms
, which defaults to 10000 milliseconds if not set . However, the sources don't provide specific details about automatically recording and sending voicemail messages to an inbox when a user doesn't pick up the call. The voicemail detection feature appears to focus on detecting when voicemail is reached and then executing predefined actions like leaving a static message or hanging up. I don't have complete information about the specific workflow for recording and automatically sending voicemail messages to an inbox. Would you like me to provide a general answer based on my knowledge instead? Check out these potentially useful sources: [Get Agent]() , [Create Agent]() , [Update Agent]()
### Answer [(1) ]() [(2) ]() [(3) ]() [(4) ]()
Copy code
javascript
import Retell from 'retell-sdk';
const client = new Retell({
 apiKey: 'YOUR_RETELL_API_KEY',
}) ;
const agentResponse = await client.agent.update('16b980523634a6dc504898cda492e939', { agent_name: 'Jarvis' }) ;
console.log(agentResponse.agent_id) ;
[(2) ]() Based on the available sources, you can configure voicemail detection and handling in Retell AI using the
voicemail_option
parameter when creating or updating an agent [(1) ]() [(2) ]() [(3) ]() [(4) ]() . The voicemail detection will try to detect voicemail in the first 3 minutes of the call [(1) ]() [(3) ]() [(4) ]() . Here's how you can set up voicemail handling :
Copy code
json
{  
 "action": {  
 "type": "static_text",  
 "text": "Please give us a callback tomorrow at 10am."  
 }  
}
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.