India is a country of vast diversities. And the number of languages we speak in this country stands testimony to that fact. In a way, Exotel is in the business of connecting people. We speak to prospective customers everyday from all corners of the country. While we default to English in a professional setup, we realised our conversations ended up being much better when we were able to speak to the customer in a language of his/her choice. And when we thought about how to make this happen for all our prospective customers, we figured we have folks in Exotel who speak Kannada, Tamil, Telugu, Malayalam, Hindi, Marathi and Gujarati. And had most of the zones covered 🙂
Due to the awesomeness that is our App Builder (#humblebrag), the necessary technology to implement this was already available with us and someone just needed to take the time out to sit and work on creating this wonderful solution.To implement this, I used some existing code which gives metadata about a number . I created a webpage which returned a unique string based on the telecom circle the customer was calling from and hosted this page on the server. Using this link, I configured a custom flow with the passthru applet on our App Builder. Based on the passthru response, using the switch case applet, I directed the flow to specific language ‘groups’ that I created in our Exotel dashboard beforehand with appropriate agents. And voila! Just like that, call routing to specific agents based on the circle from which a prospective customer was calling was up and running. This was one of the simplest yet most powerful codes I had written yet.