1. Pre-call webhook
If an agent has thepre_call_webhook_url configured and pre_call_webhook_enabled set to true, a POST request is sent to that URL before the call is created. The payload includes information about the call and the agent:
pre_call_webhook_auth_token is present, it is sent in the Authorization header as a bearer token. The request times out after pre_call_webhook_timeout seconds (default is 5). If the webhook returns a JSON body containing a parameters object, those parameters are merged into the call parameters before creation. Errors or timeouts are ignored and the call proceeds normally.
2. Call created
After the optional pre-call webhook, Simple AI creates the call record and connects the caller to the agent. At this point your application receives thecall.started webhook (see Webhooks).
3. Call in progress
During the conversation you may receivecall.transcript_update webhooks with incremental transcript data. These allow your application to react in real time.
4. Call completed
When the call ends, Simple AI sends a finalcall.completed webhook. You can then perform any post-call processing such as updating your records or downloading the call audio.
Understanding this flow helps you integrate pre-call logic and handle real-time events from Simple AI.