https://retellai.com/?utm_source=discord&utm_medium=seo logo
como puedo sacar un reporte de las llamadas donde ...
# ❓・ai-evy-support
o
@AI Evy como puedo sacar un reporte de las llamadas donde aparezca el resumen o summary que se puede ver cuando uno ingresa a ver el detalle de la llamada
a
Thanks for tagging me @ozkartoro. I'll look through relevant sources and get back to you shortly.
### Answer Para obtener el resumen (summary) de las llamadas, puedes usar la API de Retell AI para recuperar la información de las llamadas [(1) ]() . El resumen se encuentra en el objeto
call_analysis
que incluye el
call_summary
[(2) ]() [(3) ]() [(4) ]() [(1) ]() . Puedes usar el endpoint GET para obtener los detalles de una llamada específica [(1) ]() :
Copy code
javascript
import Retell from 'retell-sdk';
const client = new Retell({
 apiKey: 'YOUR_RETELL_API_KEY',
}) ;
const callResponse = await client.call.retrieve('119c3f8e47135a29e65947eeb34cf12d') ;
console.log(callResponse) ;
La respuesta incluirá el objeto
call_analysis
con el
call_summary
[(2) ]() [(3) ]() [(4) ]() [(1) ]() :
Copy code
json
"call_analysis": {
 "call_summary": "The agent called the user to ask question about his purchase inquiry. The agent asked several questions regarding his preference and asked if user would like to book an appointment. The user happily agreed and scheduled an appointment next Monday 10am.",
 "in_voicemail": false,
 "user_sentiment": "Positive",
 "call_successful": true,
 "custom_analysis_data": {}
}
El análisis post-llamada está disponible después de que la llamada termine . Puedes suscribirte al evento webhook
call_analyzed
para recibir esta información una vez que esté lista . Para configurar análisis personalizados adicionales, puedes definir qué información extraer usando diferentes tipos de análisis como Boolean, Text, Number, o Selector Analysis [(5) ]() .
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
​ To learn more, see the sources I considered: [[1] Get Call](https://docs.retellai.com/api-references/get-call) [[2] Create Phone Call](https://docs.retellai.com/api-references/create-phone-call) [[3] Update Call](https://docs.retellai.com/api-references/update-call) [[4] Register Phone Call](https://docs.retellai.com/api-references/register-phone-call) [[5] Define the information you want to extract](https://docs.retellai.com/features/post-call-analysis-create) ​
Thanks for the follow-up, @ozkartoro. I'll get back to you soon.
o
@AI Evy como puedo sacar un reporte con fecha usando eso
a
### Answer Para generar un reporte con fechas usando la API de Retell AI, puedes usar el endpoint List Calls que te permite filtrar las llamadas por fecha [(1) ]() . Puedes usar el SDK de JavaScript para obtener múltiples llamadas con filtros de fecha :
Copy code
javascript
import Retell from 'retell-sdk';
const client = new Retell({
 apiKey: 'YOUR_RETELL_API_KEY',
}) ;
const phoneCallResponse = await client.call.registerPhoneCall({
 agent_id: 'oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD',
}) ;
console.log(phoneCallResponse.agent_id) ;
[(2) ]() Cada llamada incluye timestamps importantes para tu reporte [(3) ]() : - `start_timestamp`: marca de tiempo de inicio (en milisegundos desde epoch) - `end_timestamp`: marca de tiempo de fin (en milisegundos desde epoch) - `duration_ms`: duración de la llamada en milisegundos El objeto de respuesta también incluye el
call_analysis
con el
call_summary
que necesitas para tu reporte :
Copy code
json
"call_analysis": {
 "call_summary": "The agent called the user to ask question about his purchase inquiry. The agent asked several questions regarding his preference and asked if user would like to book an appointment. The user happily agreed and scheduled an appointment next Monday 10am.",
 "in_voicemail": false,
 "user_sentiment": "Positive",
 "call_successful": true,
 "custom_analysis_data": {}
}
Para automatizar la recolección de datos, puedes configurar webhooks que se activen automáticamente cuando las llamadas terminen y el análisis esté listo [(4) ]() . El evento
call_analyzed
te enviará toda la información incluyendo el
call_analysis
completo .
​ To learn more, see the sources I considered: [[1] List Calls](https://docs.retellai.com/api-references/list-calls) [[2] Register Phone Call](https://docs.retellai.com/api-references/register-phone-call) [[3] Get Call](https://docs.retellai.com/api-references/get-call) [[4] Webhook Overview](https://docs.retellai.com/features/webhook-overview) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.