New Tropo Scripting API Tutorial – The Chance Facilitator
Since random number generation is a common “first app” for people learning a new language, we decided to add a new tutorial showing an application that utilizes the math functions of each of the five supported languages (JavaScript, Ruby, PHP, Python & Groovy) to create the Chance Facilitator in Tropo.
It allows you to roll a six sided die, twenty sided die, flip a coin or throw rocks, paper, scissors. It works over voice and SMS, asks a question, allows for multiple bad choices, utilizes grammars and call properties – all around a solid example to get you started on several of the primary capabilities of Tropo. Each of the following code samples can be dropped into a Scripting hosted file and work without any modification – check out the tutorial or grab the code from any the following links:
Just for the record, all five of the samples were created by someone with well under a year coding experience using nothing but the Tropo docs and Google. Tropo really is that easy :)
Questions, comments? Drop us a line via support@tropo.com or open a thread in our public forums.
Originally from Voxeo Blogs


Leave a Reply