Twilio + Google App Engine

Audrey_santa_cruz_croppedPrice It by Phone by Audrey Roy

Price It by Phone makes it easy to check for the lowest
prices on books while you're out shopping at the store.  Call 877-265-8137 and enter the 10 digit ISBN code to find the new and used prices are on Amazon.  Then visit the Price It by Phone website and enter your phone number for a full list of books you've searched.

Introducing Price It By Phone

Price It By Phone lets you comparison-shop for books with your touch-tone phone.

up book prices by calling (877) 265-8137. Enter the book's
10-digit ISBN number after the prompt.  The voice will tell you's lowest new and used prices for the book.

Then, to
see the list of books that you've already price-checked, with links to
their Amazon detail pages, enter your phone number at

hacked this together from scratch this weekend.  It's fully functional
as of now, but I still hope to make some bugfixes and maybe add some
important features before the deadline (e.g. proving that you own the
phone number after you enter it in the web form).  Please let me know
if you run into any problems!"

Audrey Speaks on Developing with App Engine and Twilio

We had a chance to interview Audrey about her experience building Price It, and here's what she had to say:

How did you hear about Twilio?

I first heard about Twilio at SF Startup Weekend (April 09).  I saw the MonkeyCalling phone survey hack and couldn't believe it was made in a weekend. 

How did you come up with the idea for Price It by Phone?

I was at an art museum in Washington, DC on Saturday afternoon,
looking at books in the bookstore.  There was a thick art book (check
out Audrey's art) that I
really wanted to buy, but I didn't want to carry around such a heavy
book while traveling, and I had already gone beyond my shopping
budget.  I looked up on my phone to see if it was
available.  It was there, and for $37 instead of $60.

google-app-engineHow did you build your app? What technologies, APIs, etc. did you use?

based my app on Twilio's Weather By Phone App Engine sample.  Price-It
sends a REST request to the Amazon Product Advertising API, passing it
the entered ISBN number.  Amazon sends back the book data as XML. 
Price-It extracts the book title and lowest new/used prices and outputs
a simplified XML response to the caller, using the Say verb so that the
result gets spoken.  At this time, the ISBN also gets saved to the
datastore under the caller's phone number.

As for displaying the lookup history on the web:  the HTML form
passes the phone number to Price-It via a get request, receiving a
JSON-formatted list of ISBNs in return.  Then, the JavaScript side of
Price-It sends XMLHttpRequests to Amazon, one for each ISBN.  The XML
response data gets parsed and formatted in JavaScript with the help of
jQuery.  A side note: the background and header artwork is also drawn
with JavaScript, on an HTML5 canvas using Processing.js.

How long did it take to build Price It by Phone?

began this on Saturday mid-afternoon and finished on Sunday night.  I
stayed up really late on Saturday night to get the bulk of the work
done.  All the code was written from scratch, although being familiar
with App Engine and jQuery helped a lot.  I didn't expect to finish in
time – I was surprised that it all came together.

What do you think of the development experience with Twilio on App Engine?

Twilio+App Engine part of this was easy.  The nice thing about the
Twilio API is that there are so few pieces that it's hard to go wrong. 
The Twilio side was about 25% of the work.  Dealing with Amazon, XML,
polishing it all was the other 75%.

Perhaps having another sample showing a web form where you enter
your phone number, wait for the app to call you with a verification
code, and then enter that code on the web would have been helpful (or
having some kind of phone verification checking built into the Twilio
API).  The Twilio forums were quite helpful.

Anything else you want to share?

Thanks to everyone at Twilio!  I'll be working on v2 of Price-It – hopefully I'll have an update on this soon.

  • Andy Vaughn

    I just think this is awesome. I posted about it on Twitter as a great example of the type of work that can get done in a “startup weekend” style format. Thanks for the project development insights, as well.

  • Danielle @ Twilio

    Thanks Andy!

  • aion kinah

    Count me among those who will be launching my business this year. And the CFC should be a fantastic platform to make sure I am ready. I have contemplated this move for a long time and it seems that now all the pieces are falling into place. Looking forward to seeing you all there.

  • coach bags outlet

    Love, love them. .*

  • jordans 3

    I wish to live without hate, whim, jealousy, envy, fear.

  • nike air max

    Um…like the style of your writing.

  • Juicy Couture Handbags

    when the sky is open , i usually read the book on the top , it feeling is good.

  • coach bags

    The goal is to get citizens designing and discussing facilities. The project does not address system design, but you could use the same model.
    If citizens addressed system design in this project it would probably be useful for discussion purposes only, though, as professionals have more tools and knowledge to create good designs. By crowdsourcing bus stop designs, they are gathering ideas that otherwise might not surface.

  • Taobao agent

    Ooh baby, I love that Palenque comp. Great picks Jason!

  • Air Jordan 13


  • Buy from taobao

    I can accept failure, but I can’t accept give up.

  • Notebook

    Very intersting reading, really refelected opionion on ceratin intricacies of stitchin – merci