How twiliodeved/essentials-messaging-voice-course works
Phonemo is the completed Twilio course project: it lets people register for talks by text, joins callers to a live talk, and lets an organizer start calls to speakers and registrants. After a participant leaves, it sends a feedback prompt and handles the reply. The sampled handlers show these flows using a shared data asset and Twilio’s runtime client/TwiML. The data asset implementation and function routing are not shown, so their internals and deployment wiring are omitted.
Main entry points: data.private.js Talk and registration data · incoming-message.js Join by text · incoming-call.js Join talk · start-talk.protected.js Start talk
Components 9
Messaging
- Join by text
code/phonemo/functions/incoming-message.js - Survey reply
code/phonemo/functions/survey-handler.protected.js
Voice
- Join talk
code/phonemo/functions/incoming-call.js - Start talk
code/phonemo/functions/start-talk.protected.js - Leave callback
code/phonemo/functions/status-handler.protected.js
Talk data
- Talk and registration data
code/phonemo/assets/data.private.js
Other components
- Attendee
- Organizer
- Twilio
Connections 15
- Attendee → Twilio: texts or calls
README.md - Twilio → Join by text: routes message
- Join by text → Talk and registration data: parses and registers
code/phonemo/functions/incoming-message.js - Join by text → Twilio: returns reply
code/phonemo/functions/incoming-message.js - Twilio → Join talk: routes call
- Join talk → Talk and registration data: reads current talk
code/phonemo/functions/incoming-call.js - Join talk → Twilio: returns voice response
code/phonemo/functions/incoming-call.js - Organizer → Start talk: starts talk
- Start talk → Talk and registration data: reads talk and registrants
code/phonemo/functions/start-talk.protected.js - Start talk → Twilio: creates participants
code/phonemo/functions/start-talk.protected.js - Twilio → Leave callback: sends leave callback
- Leave callback → Talk and registration data: looks up talk
code/phonemo/functions/status-handler.protected.js - Leave callback → Twilio: fetches call and sends prompt
code/phonemo/functions/status-handler.protected.js - Twilio → Survey reply: routes reply
- Survey reply → Twilio: returns acknowledgement
code/phonemo/functions/survey-handler.protected.js