Interfaces and direction
| Connection | Protocol or payload | Responsibility |
|---|---|---|
| Twilio → Render | HTTPS POST, TwiML response | Incoming calls, call control and status callbacks. |
| Twilio → Render → Realtime | WebSocket audio stream | Caller audio frames and interim transcripts. |
| Hetzner → Render | HTTPS long polling and a result POST | A voice or SMS worker claims work and returns its result. |
| Render ↔ Redis | Redis protocol | Jobs, call state and per-user memory. |
| Render → Microsoft Graph | HTTPS REST | Writing logs, archives and reports to OneDrive. |
Who owns the call?
A Docker-hosted Node.js 22 / Express 5 service accepts and verifies Twilio events and decides the next call instruction. A worker receives the current turn and bounded context. Once the result arrives, Render can update the active call through Twilio's REST API.
What survives a restart?
A queue and conversation state stored in Redis persist when the application process changes. An open audio stream is tied to a connection. Queue persistence alone cannot establish that a particular WebSocket or call survived an interruption.
Source material · Technical brochure, 26 Nov, pp. 2–7. Technical specification, 19 Nov, pp. 2–6.
