PixelDrift42
08/28/2025, 10:37 PMAI Evy
08/28/2025, 10:37 PMAI Evy
08/28/2025, 10:37 PMcall_ended event is triggered when a call completes, transfers, or encounters an error, and includes all fields from the call object except call_analysis . The call_analyzed event is triggered when call analysis is complete and includes the full call data including the call_analysis object .
## Call Status and Metrics
For monitoring call completion, you can check the disconnection_reason field rather than relying solely on call_successful [(2) ]() . According to community guidance, you should treat user_hangup, agent_hangup, or call_transfer as answered calls to avoid unnecessary follow-ups .
## Batch Call Monitoring
If you're using batch calls, you can monitor their progress through the Batch Call tab, which shows metrics including [(3) ]() :
- **Sent**: Total calls sent from the batch
- **Picked Up**: Number of calls answered by recipients
- **Successful**: Calls successfully completed based on predefined criteria
## Performance Metrics
For comprehensive call tracking, you can monitor several key metrics [(4) ]() :
- **Call Pick Up Rate**: Percentage of calls successfully answered by the AI agent
- **Call Successful**: Number of calls successfully handled by the AI agent
- **Call Transfer Rate**: Frequency of calls transferred to human agents
The webhook approach provides real-time notifications, while the dashboard monitoring gives you batch-level insights into call completion sAI Evy
08/28/2025, 10:38 PMAI Evy
08/28/2025, 10:38 PMAI Evy
08/28/2025, 10:38 PMPixelDrift42
08/28/2025, 11:56 PMPixelDrift42
08/28/2025, 11:56 PMPixelDrift42
08/28/2025, 11:56 PMPixelDrift42
08/28/2025, 11:56 PMAI Evy
08/28/2025, 11:56 PMAI Evy
08/28/2025, 11:57 PMjavascript
import { RetellWebClient } from "retell-client-js-sdk";
const retellWebClient = new RetellWebClient() ;
To monitor when a call ends, you can listen to the call_ended event :
javascript
retellWebClient.on("call_ended", () => {
console.log("call ended") ;
setIsCallActive(false) ;
}) ;
You can also listen for error events to detect call failures :
javascript
retellWebClient.on("error", (error) => {
console.error("An error occurred:", error) ;
// Stop the call
retellWebClient.stopCall() ;
}) ;
## Additional Event Monitoring
The Web SDK also provides other useful events for monitoring call status :
javascript
retellWebClient.on("call_started", () => {
console.log("call started") ;
}) ;
retellWebClient.on("update", (update) => {
// console.log(update) ;
}) ;
retellWebClient.on("metadata", (metadata) => {
// console.log(metadata) ;
}) ;
However, I don't have specific information in the available sources about using the Node.js or Python SDKs to monitor call completion status through webhooks or API polling. For comprehensive call monitoring across all call types (not just web calls) , you would likely need to implement webhook endpoints or use API calls to check call status, but those specific SDK examples aren't available in the current sources.AI Evy
08/28/2025, 11:57 PMAI Evy
08/28/2025, 11:57 PMPixelDrift42
08/28/2025, 11:57 PMAI Evy
08/28/2025, 11:57 PMAI Evy
08/28/2025, 11:58 PMretrieve method to get call status information [(1) ]() :
python
client.call.retrieve(call_id) -> CallResponse
This method returns a CallResponse object that contains the call details and status .
### Listing Calls
You can also list calls with filtering parameters :
python
client.call.list(**params) -> CallListResponse
### Available Call Types
The Python SDK supports different call response types :
python
from retell.types import CallResponse, PhoneCallResponse, WebCallResponse, CallListResponseAI Evy
08/28/2025, 11:58 PMverify attribute may not be available in the AsyncRetell client .
While the sources show the basic SDK methods for retrieving call information, I don't have specific code examples in the available sources showing how to implement real-time call status monitoring or webhook handling with the Python SDK. You would need to combine the call.retrieve() method with your own polling logic or implement webhook endpoints to receive call completion notifications.AI Evy
08/28/2025, 11:58 PMAI Evy
08/28/2025, 11:58 PM