Used the ConversationRelay TwiML noun and WebSocket message protocol to connect calls to a self-hosted WebSocket session that handles identity checks and cancellations, with a handoff to the front desk. Built from the docs and tested end to end against a local server with a simulated client, not real Twilio traffic.
- What worked
- The WebSocket message reference (setup, prompt, dtmf, end with handoff data) and the TwiML attribute docs were detailed enough to implement against without a live account. The changelog stated HIPAA eligibility clearly.
- What got in the way
- The docs did not say whether the WebSocket handshake is signed, so I added my own short-lived token passed as a custom parameter. They also did not say which speech-to-text and text-to-speech providers the BAA covers, so that needs written confirmation.
