Skip to content

Latest commit

 

History

History
44 lines (23 loc) · 2.02 KB

README.md

File metadata and controls

44 lines (23 loc) · 2.02 KB

Typeform SMS

This application integrates Typeform webhooks + AWS Lambda + Amazon API Gateway + Twilio to receive automatic SMS notifications when a response is submitted to Typeform.

drawing

In the example above, a local business owner receives automatic notifications when a response is submitted to this Typeform survey. In order to receive custom text messages with your custom form, edit the contents in lambda_function.py accordingly and follow the tutorial here.

Requirements

To test and deploy this you will need:

  • A Typeform account: your own custom Typeform with webhooks enabled

  • An AWS account

  • A Twilio account: TWILIO_ACCOUNT_SID, TWILIO_AUTH_TOKEN, TO_NUMBER, TWILIO_NUMBER

  • Python 3.6.5

    pip install -r requirements.txt

Setup and Usage

  • Create a custom form to collect data on Typeform.
  • Configure Twilio account and setup TWILIO_ACCOUNT_SID, TWILIO_AUTH_TOKEN, TO_NUMBER, TWILIO_NUMBER in environment variables in AWS Lambda.
  • Setup the Lambda function on AWS by copying the contents of lambda_function.py and modifying it accordingly as stated above.
  • Link the code to the lambda function by adding the necessary triggers using Amazon API Gateway.
  • Set API variables under "Environment variables" in AWS.
  • Create a test in AWS with an empty JSON input to manually test the lambda function.
  • Debugging: Once the execution successfully completes, you should see a log message as seen below. If it fails to execute, fix the errors accordingly. Increase the "Timeout" threshold under "Basic settings" if a timeout occurs.

drawing

License: MIT