SlideShare a Scribd company logo
Twilio
Infrastructure APIs for building voice and
text messaging apps




                                        Michael Peacock
                Twilio Lightning Talk
Collection of “Infrastructure APIs” supporting:

•   Make and receive phone calls
•   Send and receive text messages
•   Buy phone numbers
•   Record caller messages
•   Conference calls
•   IVR: Interactive Voice Response
•   DTMF: Gathering number presses
•   Text to speech

Via the web

                    Twilio Lightning Talk
How does it work?
•   Create an account
•   Buy a phone number ($1/month)
•   Write the code, hosted on your server
•   Link the application to the phone number

• When someone calls the number, twilio
  hooks into your application which tells it
  what to do


                  Twilio Lightning Talk
Writing an application
Its all XML

<?xml version="1.0" encoding="UTF-8"?>
<Response>
  <Gather numDigits="4" action=“verify.php">
     <Say>
      This is the ACME telephone verification service. To verify
      your telephone number, please enter the four digit code
      shown on your screen now.

     </Say>
  </Gather>
</Response>
                        Twilio Lightning Talk
Writing an application
• <Say> something
• <Play> a file
• <Gather> digits the caller presses
• <Dial> a number to transfer/conference
  the caller
• Send an <Sms>
• <Record> what the caller is saying



                Twilio Lightning Talk
Writing an application
Many of the libraries support generating
“TwiML” programatically. E.g.




                 Twilio Lightning Talk
Application flow
At each stage during the call, you define a
URL for twilio to redirect to.

This allows you to verify details, or act upon
a specific request.




                 Twilio Lightning Talk
Make a call
You don’t have to wait for someone to
phone you. There is a REST API which
allows you to:
  – Initiate a call from your application

  – Send an SMS

  – Buy a phone number




                    Twilio Lightning Talk
Use cases
• Verify a customers phone number
  – https://github.com/mkpeacock/Phone-Number-
    Verification
• Telephone access to your application
  – Let customers check the status of their orders
• Lead generation
  – Use a number per lead source and track your marketing
    efforts

  – A / B testing on your website (auto-provision a number)
• Request a call back form

                      Twilio Lightning Talk
Costs     (its really cheap!)


• Phone numbers: $1/month
  – Inbound calls: 1c/minute

  – Outbound calls: 2c/minute (landlines)

  – Outbound calls: 14c/minute (mobiles)

• Freephone numbers: $2/month
  – Inbound calls: 6c/minute



                   Twilio Lightning Talk
Don’t want to host the code?
For pre-defined basic applications
(twimlets) which don’t require continuous
back and forth between the user and the
server, Twilio can host your code.




                Twilio Lightning Talk
Twimlets
• Call forwarding
• Ring upto 5 numbers until one of them
  answers
• Voicemail
• Simple menu
• Simple message: plays predefined text
  and audio
• Conference calls


                Twilio Lightning Talk
Connect
Twilio connect lets you build and sell twilio
powered applications which then connect to
another users twilio account.

This lets you sell the application, but lets the
buyer pay for their own usage directly.




                  Twilio Lightning Talk
Please turn on your phone
Want to see a live demo?

Call 0191 580 1814 and rate this evenings
talks.




                Twilio Lightning Talk
Any questions?
www.michaelpeacock.co.uk

www.twitter.com/michaelpeacock




               Twilio Lightning Talk

More Related Content

PPTX
PHP & Twilio
PDF
Building A Great API - Evan Cooke, Cloudstock, December 2010
PPTX
Idempotent REST APIs
ODP
Otra forma de hacer aplicaciones de telefonía
PDF
7 Principles of API Design - Waza
KEY
Tropo: Telephony in the Cloud
PPT
Plivo ClueCon 2011
PHP & Twilio
Building A Great API - Evan Cooke, Cloudstock, December 2010
Idempotent REST APIs
Otra forma de hacer aplicaciones de telefonía
7 Principles of API Design - Waza
Tropo: Telephony in the Cloud
Plivo ClueCon 2011

What's hot (20)

PDF
Building a Great Web API - Evan Cooke - QCON 2011
PDF
Tropo Presentation for TADHack
PDF
Twilio Signal 2016 Serverless Contact Center
PDF
Twiliobot at Google Wave Meetup 2009-09-14
PDF
Tc 2008 11 19
PDF
Open Source Software Business Model
PPT
Skype Day In Taiwan(Tommy)
ODP
TWILIO SMS Introduction
PDF
Twilio Messaging: Overview and New Feature Deep Dive
PDF
Building Blocks for Next Generation Contact Centers
PDF
Final Twilio Under the Radar 2009 Cloud
PPTX
Twilio using Groovy Grails
PDF
Twilio Signal 2016 Using Add-ons
PDF
Twilio Signal 2016 Keynote
PDF
Twilio Contact Center Overview
PDF
Twilio MMS Deep Dive
PDF
Twilio Signal 2016 Real-time Communications Overview
PDF
Smarter SIP Trunks: 6 Ways You Can Save Time and Get More Features
PPT
Twilio API: Build SMS Text Message Into Web Apps
KEY
Building Tropo Apps with Grails
Building a Great Web API - Evan Cooke - QCON 2011
Tropo Presentation for TADHack
Twilio Signal 2016 Serverless Contact Center
Twiliobot at Google Wave Meetup 2009-09-14
Tc 2008 11 19
Open Source Software Business Model
Skype Day In Taiwan(Tommy)
TWILIO SMS Introduction
Twilio Messaging: Overview and New Feature Deep Dive
Building Blocks for Next Generation Contact Centers
Final Twilio Under the Radar 2009 Cloud
Twilio using Groovy Grails
Twilio Signal 2016 Using Add-ons
Twilio Signal 2016 Keynote
Twilio Contact Center Overview
Twilio MMS Deep Dive
Twilio Signal 2016 Real-time Communications Overview
Smarter SIP Trunks: 6 Ways You Can Save Time and Get More Features
Twilio API: Build SMS Text Message Into Web Apps
Building Tropo Apps with Grails
Ad

Similar to Supermondays twilio (20)

PDF
Mobicents Summit 2012 - Jonas Borjesson - Introduction to Twilio
PDF
Twilio Product Overview
PDF
Twilio - The Cloud Communications Platform
PDF
Twilio SMS - API for Sending & Receiving SMS Messages
PPTX
Real time voice call integration - Confoo 2012
PDF
Twilio - Social App Workshop - 2010-07-24
PPT
Drupal With SMS And Telephony For Fun And Profit
PDF
Look Who's Talking
PDF
What Can You Do With Twilio
KEY
Build travel apps the easy way
PDF
Ruby on the Phone
PPTX
Tech campmemphis slides_post_session
PDF
Programmable communications with twilio
PDF
Etxt app framework
PDF
AWS Lambda Hands-on: How to Create Phone Call Notifications in a Serverless W...
PDF
AWS Lambda Hands-on: How to Create Phone Call Notifications in a Serverless Way
PPTX
Accelerating your application development with IBM BlueMix (Your dream devel...
PDF
Greach 2011 - Building Telephony Apps with Groovy and Grails
PDF
Twilio at the Google App Engine Meetup 2009-10
PDF
James Parton, Twilio 'Communicating across the Cloud'
Mobicents Summit 2012 - Jonas Borjesson - Introduction to Twilio
Twilio Product Overview
Twilio - The Cloud Communications Platform
Twilio SMS - API for Sending & Receiving SMS Messages
Real time voice call integration - Confoo 2012
Twilio - Social App Workshop - 2010-07-24
Drupal With SMS And Telephony For Fun And Profit
Look Who's Talking
What Can You Do With Twilio
Build travel apps the easy way
Ruby on the Phone
Tech campmemphis slides_post_session
Programmable communications with twilio
Etxt app framework
AWS Lambda Hands-on: How to Create Phone Call Notifications in a Serverless W...
AWS Lambda Hands-on: How to Create Phone Call Notifications in a Serverless Way
Accelerating your application development with IBM BlueMix (Your dream devel...
Greach 2011 - Building Telephony Apps with Groovy and Grails
Twilio at the Google App Engine Meetup 2009-10
James Parton, Twilio 'Communicating across the Cloud'
Ad

More from Michael Peacock (20)

PPTX
Immutable Infrastructure with Packer Ansible and Terraform
PPTX
Test driven APIs with Laravel
PPTX
Symfony Workflow Component - Introductory Lightning Talk
PPTX
Alexa, lets make a skill
PPTX
API Development with Laravel
PPTX
An introduction to Laravel Passport
PDF
Phinx talk
PDF
Refactoring to symfony components
PPT
Dance for the puppet master: G6 Tech Talk
PPT
Powerful and flexible templates with Twig
PPT
Introduction to OOP with PHP
KEY
KEY
Phpne august-2012-symfony-components-friends
KEY
Evolution of a big data project
PPTX
Dealing with Continuous Data Processing, ConFoo 2012
PPTX
Data at Scale - Michael Peacock, Cloud Connect 2012
PPTX
PHP Continuous Data Processing
PPTX
PHP North East Registry Pattern
PPTX
PHP North East - Registry Design Pattern
PPTX
Supermondays: Jenkins CI lightning talk
Immutable Infrastructure with Packer Ansible and Terraform
Test driven APIs with Laravel
Symfony Workflow Component - Introductory Lightning Talk
Alexa, lets make a skill
API Development with Laravel
An introduction to Laravel Passport
Phinx talk
Refactoring to symfony components
Dance for the puppet master: G6 Tech Talk
Powerful and flexible templates with Twig
Introduction to OOP with PHP
Phpne august-2012-symfony-components-friends
Evolution of a big data project
Dealing with Continuous Data Processing, ConFoo 2012
Data at Scale - Michael Peacock, Cloud Connect 2012
PHP Continuous Data Processing
PHP North East Registry Pattern
PHP North East - Registry Design Pattern
Supermondays: Jenkins CI lightning talk

Recently uploaded (20)

PDF
KodekX | Application Modernization Development
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
Encapsulation_ Review paper, used for researhc scholars
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PPTX
A Presentation on Artificial Intelligence
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PPT
Teaching material agriculture food technology
PDF
Spectral efficient network and resource selection model in 5G networks
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
Encapsulation theory and applications.pdf
PDF
Approach and Philosophy of On baking technology
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
KodekX | Application Modernization Development
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Diabetes mellitus diagnosis method based random forest with bat algorithm
Encapsulation_ Review paper, used for researhc scholars
The AUB Centre for AI in Media Proposal.docx
NewMind AI Weekly Chronicles - August'25 Week I
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
Per capita expenditure prediction using model stacking based on satellite ima...
Understanding_Digital_Forensics_Presentation.pptx
Advanced methodologies resolving dimensionality complications for autism neur...
A Presentation on Artificial Intelligence
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Teaching material agriculture food technology
Spectral efficient network and resource selection model in 5G networks
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
Encapsulation theory and applications.pdf
Approach and Philosophy of On baking technology
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
The Rise and Fall of 3GPP – Time for a Sabbatical?
Dropbox Q2 2025 Financial Results & Investor Presentation

Supermondays twilio

  • 1. Twilio Infrastructure APIs for building voice and text messaging apps Michael Peacock Twilio Lightning Talk
  • 2. Collection of “Infrastructure APIs” supporting: • Make and receive phone calls • Send and receive text messages • Buy phone numbers • Record caller messages • Conference calls • IVR: Interactive Voice Response • DTMF: Gathering number presses • Text to speech Via the web Twilio Lightning Talk
  • 3. How does it work? • Create an account • Buy a phone number ($1/month) • Write the code, hosted on your server • Link the application to the phone number • When someone calls the number, twilio hooks into your application which tells it what to do Twilio Lightning Talk
  • 4. Writing an application Its all XML <?xml version="1.0" encoding="UTF-8"?> <Response> <Gather numDigits="4" action=“verify.php"> <Say> This is the ACME telephone verification service. To verify your telephone number, please enter the four digit code shown on your screen now. </Say> </Gather> </Response> Twilio Lightning Talk
  • 5. Writing an application • <Say> something • <Play> a file • <Gather> digits the caller presses • <Dial> a number to transfer/conference the caller • Send an <Sms> • <Record> what the caller is saying Twilio Lightning Talk
  • 6. Writing an application Many of the libraries support generating “TwiML” programatically. E.g. Twilio Lightning Talk
  • 7. Application flow At each stage during the call, you define a URL for twilio to redirect to. This allows you to verify details, or act upon a specific request. Twilio Lightning Talk
  • 8. Make a call You don’t have to wait for someone to phone you. There is a REST API which allows you to: – Initiate a call from your application – Send an SMS – Buy a phone number Twilio Lightning Talk
  • 9. Use cases • Verify a customers phone number – https://github.com/mkpeacock/Phone-Number- Verification • Telephone access to your application – Let customers check the status of their orders • Lead generation – Use a number per lead source and track your marketing efforts – A / B testing on your website (auto-provision a number) • Request a call back form Twilio Lightning Talk
  • 10. Costs (its really cheap!) • Phone numbers: $1/month – Inbound calls: 1c/minute – Outbound calls: 2c/minute (landlines) – Outbound calls: 14c/minute (mobiles) • Freephone numbers: $2/month – Inbound calls: 6c/minute Twilio Lightning Talk
  • 11. Don’t want to host the code? For pre-defined basic applications (twimlets) which don’t require continuous back and forth between the user and the server, Twilio can host your code. Twilio Lightning Talk
  • 12. Twimlets • Call forwarding • Ring upto 5 numbers until one of them answers • Voicemail • Simple menu • Simple message: plays predefined text and audio • Conference calls Twilio Lightning Talk
  • 13. Connect Twilio connect lets you build and sell twilio powered applications which then connect to another users twilio account. This lets you sell the application, but lets the buyer pay for their own usage directly. Twilio Lightning Talk
  • 14. Please turn on your phone Want to see a live demo? Call 0191 580 1814 and rate this evenings talks. Twilio Lightning Talk