> This page is for Platform.

> Fetch clean Markdown by appending `.md` to any page URL under https://signalwire.com/docs or requesting it with the HTTP header `Accept: text/markdown`. The root index at https://signalwire.com/docs/llms.txt lists the available documentation indexes.

## AI Sidecar added to SWML

Attach an AI observer to a live call with the
[`ai_sidecar`](/docs/swml/reference/calling/ai-sidecar) SWML method. The sidecar listens to
both sides, evaluates the conversation after each customer turn, and sends agent-facing output
to your application as webhook callbacks. It never speaks on the call.

* Define what to watch for with `prompt`, and set which leg is the customer with `customer_role`.
* Output arrives as [webhook events](/docs/apis/rest/webhooks/ai-sidecar-callback), including `insight`, `turn`, `tool_call`, and `final`.
* Tool calling through SWAIG functions and MCP servers lets the sidecar act on your systems mid-call.

Use it for live agent coaching, compliance flags, supervisor alerts, or CRM triggers.
`ai_sidecar` and `live_transcribe` can't run on the same call.