My favorites | Sign in
Project Logo
                
Code license: MIT License
Labels: twilio, wave, python, appengine
Feeds:
People details
Project owners:
  p...@twilio.com

twiliobot is Robot extension for Google Wave demonstrating how to initiate calls from within a wave to normal cell phones or landlines using the Twilio phone API. The project is still in development and there are still several limitations.

CONCEPTS

This project shows how to integrate the Google Wave API with the Twilio phone API. While this particular project only implements click-to-call inside of Google Wave, one could think of many of interesting ways to integrate Google Wave and Twilio:

LIMITATIONS

twiliobot still has several important limitations.

1) The first limitation is in the process of initiating the call when a number is clicked. At the moment all phone numbers get transformed into URLs that point back to app engine and a web service to start the call. This is problematic for several reasons. The external link back to app engine puts up an annoying page that says you are connecting to an external site and the phone number to call is passed in the URL as a parameter so anyone could manually modify the url initiate calls outside of wave.

2) The second limitation is that the phone number for the first leg of the call (i.e. the phone of person reading the wave) is hardcoded into the bot. That means that if anyone other than the owner of the bot clicks a link the a phone link the call will be misdirected.

3) The third limitation is that phone number detection and outbound calling is currently limited to 10 digit US numbers.

USAGE

If you haven't been dissuaded and still want to try creating your own instance of twiliobot, here are instructions for getting started.

1. sign up for a google app engine account and download and install the

python sdk if you haven't already http://appengine.google.com
2. sign up for twilio account if you haven't already
http://www.twilio.com
3. in the twiliobot code, edit app.yaml to reference your google app engine
application e.g. "application: mybot"
4. edit twiliobot.py and set APP_NAME to the name of your google app engine
application
5. edit index.py and 6. upload your app engine application to app engine
appcfg.py update twiliobot
7. log into google wave and add the twilibot robot to your contacts using
your app engine application name e.g. mybot@appspot.com
8. create a new wave and add the bot e.g. "Twilio" as a participant 9. create a new blip and enter a phone number and hit "Done" 10. if everything worked, the phone number should be transformed into a URL
that can be clicked to initiate a call to your phone and the number written in the wave









Hosted by Google Code