https://retellai.com/?utm_source=discord&utm_medium=seo logo
, how can i send post call analysis data in email
# ❓・ai-evy-support
i
@AI Evy , how can i send post call analysis data in email?
a
Thanks for tagging me @incredible_swan_16923. I'll look through relevant sources and get back to you shortly.
### Answer To send post-call analysis data via email, you'll need to: 1. Retrieve the post-call analysis data using the Get Call API endpoint [(1) ]() . The call response includes a
call_analysis
object with: - `call_summary`: Summary of the conversation - `user_sentiment`: Customer sentiment analysis - `call_successful`: Whether the call was successful - `custom_analysis_data`: Any custom analysis fields you configured 2. Access the data programmatically using the JavaScript SDK:
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) ;
3. Set up webhooks to automatically receive the data when analysis completes. The post-call analysis becomes available after the call ends and you can subscribe to the
call_analyzed
webhook event . 4. Configure custom analysis fields in your agent settings. You can define specific data points to extract, such as customer information, which will appear in the
custom_analysis_data
object , [(2) ]() . The sources don't provide specific email integration steps, but you would typically use the webhook endpoint or API polling to get the analysis data, then integrate with your preferred email service to send the formatted results.
​ To learn more, see the sources I considered: [[1] Get Call](https://docs.retellai.com/api-references/get-call) [[2] Get Agent Versions](https://docs.retellai.com/api-references/get-agent-versions) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.