/plushcap/analysis/twilio/build-multilingual-ivr-twilio-php

Build a Multilingual IVR With Twilio and PHP

What's this blog post about?

In this article, the author builds a multilingual IVR using Twilio Programmable Voice and PHP. The IVR allows customers to choose their preferred language for support by pressing 1 for English or 2 for Arabic. After selecting their language choice, they are presented with two options: press 1 to continue in their chosen language, or press 2 to hear the next set of options in a different language. Once the user selects an option, the IVR sends a POST request to a PHP endpoint that determines which response to play back to the caller based on their selection and the lang query parameter. The author provides a step-by-step guide on how to build the multilingual IVR, including creating TwiML files for each language, setting up ngrok for local development, and updating the PHP endpoint to handle the request. With these changes in place, the multilingual IVR is ready to use and can be further customized as needed.

Company
Twilio

Date published
June 15, 2021

Author(s)
Mohamed Aladdin

Word count
2214

Language
English

Hacker News points
None found.


By Matt Makai. 2021-2024.