This example was built to demo on stage at HackUPC 19. The purpose is to make someone fill a typeform leaving their phone number and call them right away playing a song. It relies on Typeform webhook and Twilio API.
A Twilio account, create one here
A Typeform account, create one here
A typeform you want to use to test with a phone number field
- Remix this project, here
- In
.env
place your Twilio Credentials and the secret you want up to sign Typeform webhook request - Deploy your function
- Go to your Typeform Admin Dashboard and select your lead generation form
- Under
Connect
menu selectWebhook
- Paste following URL
YOUR FUNCION URL/hook
, turn the toggle on. - Click test, it should show a green check if everything is OK.
Typeform sends a webhook notification when a new response is submitted.
POST
request sent to/hook
- Extract the answers from payload
- Extract the phone number and place a call using Twilio
Made by Typeform
\ ゜o゜)ノ