Twilio Just Got Easier

Today I played around with ChatGPT to see what it could do to develop a call recording routine for Twilio. In less than thirty seconds I had a call recording routine, that included transcription and forwarding of the transcript by email, for any Twilio enhanced number. I found this very interesting, more as a starting point for developers, but also as a way for non–devs like me to learn how to get more out of Twilio.

To create a Twilio twimlet that will record a call, you can use the following URL

http://twimlets.com/record?Record=record-from answer&Transcription=true&TranscriptionEmail=you@example.com

This twimlet will start recording the call as soon as it is answered, and will transcribe the call using Twilio’s transcription service. The transcription will be emailed to the address specified in the TranscriptionEmail parameter.

To use this twimlet, you would need to set it as the URL for the VoiceUrl or VoiceFallbackUrl parameter in your Twilio phone number’s configuration.

Here’s a breakdown of the parameters used in this twimlet:

  • Record: Specifies that the call should be recorded. The value record-from-answer indicates that the recording should start as soon as the call is answered.
  • Transcription: Enables transcription of the recorded call. The value true indicates that transcription should be enabled.
  • TranscriptionEmail: The email address to which the transcription should be sent.

You can find more information about the record twimlet and other available twimlets in the Twilio documentation: https://www.twilio.com/docs/voice/twiml/twimlets#reco