https://retellai.com/?utm_source=discord&utm_medium=seo logo
If I want to have the call details sent as a messa...
# ❓・ai-evy-support
f
@AI Evy If I want to have the call details sent as a message in a Slack channel after the call ends, how could I do that?
a
Thanks for tagging me @FZ. I'll look through relevant sources and get back to you shortly.
### Answer To send call details to a Slack channel after a call ends, you can set up a webhook endpoint that receives Retell AI call events and forwards the data to Slack [(1) ]() [(2) ]() . Here's the approach: 1. Set up a webhook endpoint that receives POST requests from Retell AI [(2) ]() . Your endpoint should listen for the
call_ended
or
call_analyzed
event types [(1) ]() . 2. Register your webhook URL either at the account level (in the dashboard's webhooks tab) or at the agent level (when creating/updating an agent) [(1) ]() [(2) ]() . 3. In your webhook handler, extract the call details from the payload and send them to Slack using Slack's Incoming Webhooks or Web API [(1) ]() . The webhook payload will contain an
event
field and a
call
object with all call details . For example:
Copy code
json
{
 "event": "call_ended",
 "call": {
 "call_id": "Jabr9TXYYJHfvl6Syypi88rdAHYHmcq6",
 "agent_id": "oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD",
 "start_timestamp": 1714608475945,
 "end_timestamp": 1714608491736,
 "disconnection_reason": "user_hangup",
 "transcript": "..."
 }
}
​ To learn more, see the sources I considered: [[1] Webhook Overview](https://docs.retellai.com/features/webhook-overview) [[2] Setup guide](https://docs.retellai.com/features/register-webhook) [[3] Consume the analysis data](https://docs.retellai.com/features/post-call-analysis-consumption) ​
Key considerations: - Wait for the
call_analyzed
event if you need post-call analysis data, as it contains the complete
call_analysis
object [(1) ]() [(3) ]() . - The webhook has a 10-second timeout and will retry up to 3 times if no success status (2xx) is received [(1) ]() . - Return a 2xx status code from your endpoint to acknowledge receipt [(1) ]() [(2) ]() . You can filter which events are delivered per agent using the
webhook_events
field when creating or updating an agent [(1) ]() .
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.