Use Twilio and Google Spreadsheets to build your own applications to do SMS polling, SMS voting, keyword marketing, expense tracking, time tracking, and more.
No programming experience required.
(looking for a tl;dr? See below)
-
Name the spreadsheet "TwilioSheet" (or any name of your choosing)
-
Add "SmsSid", "To", "From", and "Body" to the first line in your new spreadsheet (other parameters are avaiable as well):
-
Click on the "Tools" menu, then click "Create a form":
-
A window will open.
-
Type "Testing" in the box that says "You can include any text or info that will help people fill this out."
-
Click "Save"
-
Click on the URL at the bottom of the window.
-
Another window will open. Copy the URL from the location bar of that window:
-
Paste that URL into the box on the site for TwilioSheet, then click the "Submit" button.
-
You should get a response from the site saying "It worked!"
In another window:
-
Log in to your Twilio account.
-
Go to the "Numbers" section of your Twilio account (or click here)
-
Click on the number you want to set up to send SMS data to your Google Spreadsheet.
-
Copy the URL you were given by the site.
-
Paste the URL you just copied into the "SMS Request URL" box on the Twilio number you are configuring.
-
Click the "Save Changes" button.
-
Send a text message to the number you just set up.
In your Google Spreadsheet:
- Any text message you send to your Twilio number should show up in the Google Spreadsheet you set up after a delay of about 5-10 seconds.
- Start writing formulas to process the incomming text messages.
- Make a Google Form (http://support.google.com/docs/bin/answer.py?hl=en&answer=87809)
- Add items to your form where the "Question Title" is a parameter name for a TwiML SMS Request (http://www.twilio.com/docs/api/twiml/sms/twilio_request) For example: To, From, Body
- Publish your form.
- At the bottom of the "Edit form" window, look for the text "You can view the published form here".
- Copy the value of the "formkey" paramater from the URL in the step above. (For example, the "formkey" is the string of x'es in this URL: https://docs.google.com/a/twilio.com/spreadsheet/viewform?formkey=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
- Run this code somewhere. I run a copy on Heroku, you should be able to host this anywhere you can run Python though.
- Make a URL with the form key in this format: http://[path to your host for this code]/form/[form key you got in step 5]
- Use the URL from the step above as the "SMS Request URL" for one of your Twilio numbers.
Notes:
To deploy to Heroku, you'll need to set up virtualenv, like so:
$ virtualenv venv --distribute
$ source venv/bin/activate
$ pip install -r requirements
** After setting up virtualenv, this is how you deploy to Heroku**
$ heroku create
$ git push heroku master