SlideShare a Scribd company logo
1 of 31
How to Integrate Text
and Phone Messaging
with Your Website
by Cindy Cullen
cindycullen.com
Programming since 1983
Building websites since 1999
Freelance web developer since 2003
Cell phone user since they were too big to carry
Taught Computers to children and adults โ€“ Online,
Homeschool co-ops, Elementary School, Junior High,
High School, College, Seminars
Messages
MyOutdoorCalendar.com
Images courtesy of vectorolie / FreeDigitalPhotos.net
We triedโ€ฆ
โ€œWe need phone calls and text messagesโ€
Email Mobile Apps
Image courtesy of zirconicusso /
FreeDigitalPhotos.net
Short Codes
O Five digit number
O About $1000+/month
O Long application approval process
Shared Short Codes
O Buy Keyword(s) โ€“ about $25/month
O Phone numbers โ€“ about $3/month
O Voice โ€“ about $0.05/minute
O Text - about $0.05/minute
O Bulk Monthly plans usually available
Images courtesy of vectorolie / FreeDigitalPhotos.net
BowlingGreenMassage.com
Mass Text
Database of phone numbers
Opening today at 3pm
Openingtodayat3pm
Web Meets Messaging with
10 digit phone numbers
O Twilio
O Tropo
O Plivo
O Nexmo
How it Works
O Buy Phone Number (or short code)
O Receive messages on my website
O Call or Text that number
O Twilio/Tropo/Plivo/Nexmo sends the message to
my URL
O My website processes the message and
responds (usually with XML)
O Send messages from my website
O My website sends instructions to that number
using a provided library and API
Pricing
O Phone Numbers
O $0.80/month - $3/month (Avg. $1/month)
O Voice
O Inbound $0.0050/min โ€“ $0.03/min (Avg.
$0.01/min)
O Outbound $0.0130/min โ€“ $0.03/min (Avg.
$0.02/min)
O SMS
O Inbound Free โ€“ $0.01/msg (Avg $0.0075/msg)
O Outbound $0.0065/msg - $0.01/msg (Avg.
$0.0075/msg)
My Pick
Twilio
O Average pricing
O Great documentation
O Great tutorials
O Subaccounts
O Analytics
O Developer tools
O Triggers
O Easiest to get up and running for ME
Mass Text
Database of phone numbers
Opening today at 3pm
Openingtodayat3pm
Sent to My Script
require "Services/Twilio.php";
$AccountSid = โ€œBxxxxxxxโ€;
$AuthToken = โ€œ2xxxxxxxx";
$client = new Services_Twilio($AccountSid, $AuthToken);
$twilio_number = โ€œ615-555-0123โ€;
If ($_POST[โ€˜Fromโ€™] == $twilio_number) {
$body =;
$users = get_users('meta_key=phone');
$special_chars = array("-","(",")");
foreach ($users as $user) {
$phone = '+1'.str_replace($special_chars,"",get_user_meta($user->ID, 'phone', true));
$numbers[] = $phone;
}
foreach ($numbers as $number) {
$sms = $client->account->messages->sendMessage($twilio_number, $number,
$_POST[โ€˜Bodyโ€™]);
}
} else {
// Process user message
}
Respond to Text
<?php
header(โ€œcontent-type: text/xmlโ€);
echo โ€œ<?xml version=โ€1.0โ€ encoding=โ€UTF-8โ€
?>nโ€;
?>
<Response>
<Message>Thanks <?php echo $name ?> for
your response.</Message>
</Response>
CloneMeServices.com
Dial 1 for
emergency
Dial 2 to leave a message
Image courtesy of Stuart Miles /FreeDigitalPhotos.net
When the number is calledโ€ฆ
<?php date_default_timezone_set('America/Chicago');
header("content-type: text/xml");
echo "<?xml version="1.0" encoding="UTF-8"?>n";
if (date("H") > '20') : // time later than 9PM? ?>
<Response>
<Gather action="/user-input" numDigits="1">
<Say>Welcome to Clone Me Services.</Say>
<Say>If this is an emergency please press 1</Say>
<Say>Otherwise, please press2</Say>
</Gather>
<Say>Sorry, I didn't get your response.</Say>
<Redirect>/phone</Redirect>
</Response>
<?php else: ?> // time before 9PM, just forward
<Response>
<Dial>+12707916649</Dial>
</Response>
<?php endif; ?>
User presses numberโ€ฆ
<?php // if the caller pressed anything but 1 or 2 send them back
if($_REQUEST['Digits'] != '1' and $_REQUEST['Digits'] != '2') {
header("Location: /phone");
die;
}
// otherwise, if 1 was pressed we Dial CloneMeServices. If 2 we make an audio
recording up to 30 seconds long.
header("content-type: text/xml");
echo "<?xml version="1.0" encoding="UTF-8"?>nโ€; ?>
<Response>
<?php if ($_REQUEST['Digits'] == '1') { ?>
<Dial>+16155551111</Dial>
<Say>The call failed or the remote party hung up. Goodbye.</Say>
<?php } elseif ($_REQUEST['Digits'] == '2') { ?>
<Say>Record your message after the tone.</Say>
<Record maxLength="30" action="/after-recording" />
<?php } ?>
</Response>
After the recordingโ€ฆ
<?php
header("content-type: text/xml");
echo "<?xml version="1.0" encoding="UTF-8"?>n";
?>
<Response>
<Say>Thanks for your message.
Goodbye.</Say>
</Response>
Image courtesy of zirconicusso /
FreeDigitalPhotos.net
Applications
O Appointment Reminders
O Call Queueโ€™s โ€“ matching callers and
agents
O Call Screening โ€“ find a live body to
answer
O Call Metrics
O Click to Call โ€“ button on website (calls to
or from browsers or mobile devices
$0.0025/min)
O Automated Phone System
More Applications
O Conference Calls
O Phone Polls
O Voice Broadcast
O Voicemail
O Voice Transcription
O Audio Recording from your Website
O Browser Phone
O Browser to Browser Calls
And More!
O Group Chat
O Text to Speech
O SMS notifications
O SMS from a call
O MMS (some may support โ€“ only on short
codes with twilio)
Who Will Want This?
O Doctors
O Dentists
O Hair and Nail Salons
O Massage Therapists
O Other Professional Services
O Marketers (careful with bulk messaging!)
O Dry Cleaners
O Restaurants
Who Can Use this?
O Schools
O Clubs and Groups
O Churches
O Political Groups
O Fitness Centers & Sports Clubs
O Anybody!

More Related Content

Similar to How to Integrate Text and Phone Messaging with your Website

SAMEER MALIK RP
SAMEER MALIK RPSAMEER MALIK RP
SAMEER MALIK RP
Sameer Malik RP
ย 
I18n
I18nI18n
I18n
soon
ย 
Modern ICT (Information and Communication technology on secretary.pptx
Modern ICT (Information and Communication technology on secretary.pptxModern ICT (Information and Communication technology on secretary.pptx
Modern ICT (Information and Communication technology on secretary.pptx
MerrcyGenziHimura
ย 

Similar to How to Integrate Text and Phone Messaging with your Website (20)

UCloud Asia Company Presentation - How to prevent Ransomware and Phishing att...
UCloud Asia Company Presentation - How to prevent Ransomware and Phishing att...UCloud Asia Company Presentation - How to prevent Ransomware and Phishing att...
UCloud Asia Company Presentation - How to prevent Ransomware and Phishing att...
ย 
BI temps rรฉel et notifications en situation de mobilitรฉ ร  partir d'objets con...
BI temps rรฉel et notifications en situation de mobilitรฉ ร  partir d'objets con...BI temps rรฉel et notifications en situation de mobilitรฉ ร  partir d'objets con...
BI temps rรฉel et notifications en situation de mobilitรฉ ร  partir d'objets con...
ย 
BI temps rรฉel et notifications en situation de mobilitรฉ ร  partir d'objets con...
BI temps rรฉel et notifications en situation de mobilitรฉ ร  partir d'objets con...BI temps rรฉel et notifications en situation de mobilitรฉ ร  partir d'objets con...
BI temps rรฉel et notifications en situation de mobilitรฉ ร  partir d'objets con...
ย 
Improve Your Salesforce Efficiency: Formulas for the Everyday Admin
Improve Your Salesforce Efficiency: Formulas for the Everyday AdminImprove Your Salesforce Efficiency: Formulas for the Everyday Admin
Improve Your Salesforce Efficiency: Formulas for the Everyday Admin
ย 
Improve Your Salesforce Efficiency: Formulas for the Everyday Admin
Improve Your Salesforce Efficiency: Formulas for the Everyday AdminImprove Your Salesforce Efficiency: Formulas for the Everyday Admin
Improve Your Salesforce Efficiency: Formulas for the Everyday Admin
ย 
PHP & Twilio
PHP & TwilioPHP & Twilio
PHP & Twilio
ย 
Productizing Twilio Applications
Productizing Twilio ApplicationsProductizing Twilio Applications
Productizing Twilio Applications
ย 
Voice Summit 2018 - Millions of Dollars in Helping Customers Through Searchin...
Voice Summit 2018 - Millions of Dollars in Helping Customers Through Searchin...Voice Summit 2018 - Millions of Dollars in Helping Customers Through Searchin...
Voice Summit 2018 - Millions of Dollars in Helping Customers Through Searchin...
ย 
My app is secure... I think
My app is secure... I thinkMy app is secure... I think
My app is secure... I think
ย 
SAMEER MALIK RP
SAMEER MALIK RPSAMEER MALIK RP
SAMEER MALIK RP
ย 
Beyond php it's not (just) about the code
Beyond php   it's not (just) about the codeBeyond php   it's not (just) about the code
Beyond php it's not (just) about the code
ย 
I18n
I18nI18n
I18n
ย 
Modern ICT (Information and Communication technology on secretary.pptx
Modern ICT (Information and Communication technology on secretary.pptxModern ICT (Information and Communication technology on secretary.pptx
Modern ICT (Information and Communication technology on secretary.pptx
ย 
๊ด‘์šด๋Œ€ํ•™๊ต 2014 ๊ณต์ง„ํฅ๊ต์ˆ˜๋‹˜_ํ€ต์ŠคํŒ€_๋ฐฑ๋ณ‘ํ™”_๊น€๊ฒฝ๋ฏผ_์žฅ์šฉ์ค€_์ด์ข…์šฐ
๊ด‘์šด๋Œ€ํ•™๊ต 2014 ๊ณต์ง„ํฅ๊ต์ˆ˜๋‹˜_ํ€ต์ŠคํŒ€_๋ฐฑ๋ณ‘ํ™”_๊น€๊ฒฝ๋ฏผ_์žฅ์šฉ์ค€_์ด์ข…์šฐ๊ด‘์šด๋Œ€ํ•™๊ต 2014 ๊ณต์ง„ํฅ๊ต์ˆ˜๋‹˜_ํ€ต์ŠคํŒ€_๋ฐฑ๋ณ‘ํ™”_๊น€๊ฒฝ๋ฏผ_์žฅ์šฉ์ค€_์ด์ข…์šฐ
๊ด‘์šด๋Œ€ํ•™๊ต 2014 ๊ณต์ง„ํฅ๊ต์ˆ˜๋‹˜_ํ€ต์ŠคํŒ€_๋ฐฑ๋ณ‘ํ™”_๊น€๊ฒฝ๋ฏผ_์žฅ์šฉ์ค€_์ด์ข…์šฐ
ย 
Tech Tips (NLADA Substantive Law Conference 2010)
Tech Tips (NLADA Substantive Law Conference 2010)Tech Tips (NLADA Substantive Law Conference 2010)
Tech Tips (NLADA Substantive Law Conference 2010)
ย 
Twilio Messaging: Overview and New Feature Deep Dive
Twilio Messaging: Overview and New Feature Deep DiveTwilio Messaging: Overview and New Feature Deep Dive
Twilio Messaging: Overview and New Feature Deep Dive
ย 
Salesforce Admin Hack Series: Case Object
Salesforce Admin Hack Series: Case ObjectSalesforce Admin Hack Series: Case Object
Salesforce Admin Hack Series: Case Object
ย 
YGLF 2015 - Boom Performance | Eran Zinman (daPulse)
YGLF 2015 -  Boom Performance | Eran Zinman (daPulse)YGLF 2015 -  Boom Performance | Eran Zinman (daPulse)
YGLF 2015 - Boom Performance | Eran Zinman (daPulse)
ย 
BOOM Performance
BOOM PerformanceBOOM Performance
BOOM Performance
ย 
Word press security 101
Word press security 101  Word press security 101
Word press security 101
ย 

More from Cindy Cullen (6)

Taking Code on the Road CoderCruise
Taking Code on the Road CoderCruiseTaking Code on the Road CoderCruise
Taking Code on the Road CoderCruise
ย 
Taking code on the road for WordCamp Asheville
Taking code on the road for WordCamp AshevilleTaking code on the road for WordCamp Asheville
Taking code on the road for WordCamp Asheville
ย 
Taking code on the road
Taking code on the roadTaking code on the road
Taking code on the road
ย 
Freelancing: How to Get Started... or Not.
Freelancing: How to Get Started... or Not.Freelancing: How to Get Started... or Not.
Freelancing: How to Get Started... or Not.
ย 
WordPress developer 101
WordPress developer 101WordPress developer 101
WordPress developer 101
ย 
The Care and Feeding of Your WordPress Website - Hosting, Updates, Backups, S...
The Care and Feeding of Your WordPress Website - Hosting, Updates, Backups, S...The Care and Feeding of Your WordPress Website - Hosting, Updates, Backups, S...
The Care and Feeding of Your WordPress Website - Hosting, Updates, Backups, S...
ย 

Recently uploaded

Sarola * Female Escorts Service in Pune | 8005736733 Independent Escorts & Da...
Sarola * Female Escorts Service in Pune | 8005736733 Independent Escorts & Da...Sarola * Female Escorts Service in Pune | 8005736733 Independent Escorts & Da...
Sarola * Female Escorts Service in Pune | 8005736733 Independent Escorts & Da...
SUHANI PANDEY
ย 
VIP Call Girls Himatnagar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Himatnagar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Himatnagar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Himatnagar 7001035870 Whatsapp Number, 24/07 Booking
dharasingh5698
ย 
โ‚น5.5k {Cash Payment}New Friends Colony Call Girls In [Delhi NIHARIKA] ๐Ÿ”|97111...
โ‚น5.5k {Cash Payment}New Friends Colony Call Girls In [Delhi NIHARIKA] ๐Ÿ”|97111...โ‚น5.5k {Cash Payment}New Friends Colony Call Girls In [Delhi NIHARIKA] ๐Ÿ”|97111...
โ‚น5.5k {Cash Payment}New Friends Colony Call Girls In [Delhi NIHARIKA] ๐Ÿ”|97111...
Diya Sharma
ย 
VIP Model Call Girls Hadapsar ( Pune ) Call ON 9905417584 Starting High Prof...
VIP Model Call Girls Hadapsar ( Pune ) Call ON 9905417584 Starting  High Prof...VIP Model Call Girls Hadapsar ( Pune ) Call ON 9905417584 Starting  High Prof...
VIP Model Call Girls Hadapsar ( Pune ) Call ON 9905417584 Starting High Prof...
singhpriety023
ย 
Ganeshkhind ! Call Girls Pune - 450+ Call Girl Cash Payment 8005736733 Neha T...
Ganeshkhind ! Call Girls Pune - 450+ Call Girl Cash Payment 8005736733 Neha T...Ganeshkhind ! Call Girls Pune - 450+ Call Girl Cash Payment 8005736733 Neha T...
Ganeshkhind ! Call Girls Pune - 450+ Call Girl Cash Payment 8005736733 Neha T...
SUHANI PANDEY
ย 
VVIP Pune Call Girls Mohammadwadi WhatSapp Number 8005736733 With Elite Staff...
VVIP Pune Call Girls Mohammadwadi WhatSapp Number 8005736733 With Elite Staff...VVIP Pune Call Girls Mohammadwadi WhatSapp Number 8005736733 With Elite Staff...
VVIP Pune Call Girls Mohammadwadi WhatSapp Number 8005736733 With Elite Staff...
SUHANI PANDEY
ย 
Wagholi & High Class Call Girls Pune Neha 8005736733 | 100% Gennuine High Cla...
Wagholi & High Class Call Girls Pune Neha 8005736733 | 100% Gennuine High Cla...Wagholi & High Class Call Girls Pune Neha 8005736733 | 100% Gennuine High Cla...
Wagholi & High Class Call Girls Pune Neha 8005736733 | 100% Gennuine High Cla...
SUHANI PANDEY
ย 
valsad Escorts Service โ˜Ž๏ธ 6378878445 ( Sakshi Sinha ) High Profile Call Girls...
valsad Escorts Service โ˜Ž๏ธ 6378878445 ( Sakshi Sinha ) High Profile Call Girls...valsad Escorts Service โ˜Ž๏ธ 6378878445 ( Sakshi Sinha ) High Profile Call Girls...
valsad Escorts Service โ˜Ž๏ธ 6378878445 ( Sakshi Sinha ) High Profile Call Girls...
Call Girls In Delhi Whatsup 9873940964 Enjoy Unlimited Pleasure
ย 
Yerawada ] Independent Escorts in Pune - Book 8005736733 Call Girls Available...
Yerawada ] Independent Escorts in Pune - Book 8005736733 Call Girls Available...Yerawada ] Independent Escorts in Pune - Book 8005736733 Call Girls Available...
Yerawada ] Independent Escorts in Pune - Book 8005736733 Call Girls Available...
SUHANI PANDEY
ย 
VIP Model Call Girls NIBM ( Pune ) Call ON 8005736733 Starting From 5K to 25K...
VIP Model Call Girls NIBM ( Pune ) Call ON 8005736733 Starting From 5K to 25K...VIP Model Call Girls NIBM ( Pune ) Call ON 8005736733 Starting From 5K to 25K...
VIP Model Call Girls NIBM ( Pune ) Call ON 8005736733 Starting From 5K to 25K...
SUHANI PANDEY
ย 

Recently uploaded (20)

Moving Beyond Twitter/X and Facebook - Social Media for local news providers
Moving Beyond Twitter/X and Facebook - Social Media for local news providersMoving Beyond Twitter/X and Facebook - Social Media for local news providers
Moving Beyond Twitter/X and Facebook - Social Media for local news providers
ย 
Trump Diapers Over Dems t shirts Sweatshirt
Trump Diapers Over Dems t shirts SweatshirtTrump Diapers Over Dems t shirts Sweatshirt
Trump Diapers Over Dems t shirts Sweatshirt
ย 
Real Men Wear Diapers T Shirts sweatshirt
Real Men Wear Diapers T Shirts sweatshirtReal Men Wear Diapers T Shirts sweatshirt
Real Men Wear Diapers T Shirts sweatshirt
ย 
Sarola * Female Escorts Service in Pune | 8005736733 Independent Escorts & Da...
Sarola * Female Escorts Service in Pune | 8005736733 Independent Escorts & Da...Sarola * Female Escorts Service in Pune | 8005736733 Independent Escorts & Da...
Sarola * Female Escorts Service in Pune | 8005736733 Independent Escorts & Da...
ย 
Call Now โ˜Ž 8264348440 !! Call Girls in Sarai Rohilla Escort Service Delhi N.C.R.
Call Now โ˜Ž 8264348440 !! Call Girls in Sarai Rohilla Escort Service Delhi N.C.R.Call Now โ˜Ž 8264348440 !! Call Girls in Sarai Rohilla Escort Service Delhi N.C.R.
Call Now โ˜Ž 8264348440 !! Call Girls in Sarai Rohilla Escort Service Delhi N.C.R.
ย 
VIP Call Girls Himatnagar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Himatnagar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Himatnagar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Himatnagar 7001035870 Whatsapp Number, 24/07 Booking
ย 
โ‚น5.5k {Cash Payment}New Friends Colony Call Girls In [Delhi NIHARIKA] ๐Ÿ”|97111...
โ‚น5.5k {Cash Payment}New Friends Colony Call Girls In [Delhi NIHARIKA] ๐Ÿ”|97111...โ‚น5.5k {Cash Payment}New Friends Colony Call Girls In [Delhi NIHARIKA] ๐Ÿ”|97111...
โ‚น5.5k {Cash Payment}New Friends Colony Call Girls In [Delhi NIHARIKA] ๐Ÿ”|97111...
ย 
Pune Airport ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready...
Pune Airport ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready...Pune Airport ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready...
Pune Airport ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready...
ย 
VIP Model Call Girls Hadapsar ( Pune ) Call ON 9905417584 Starting High Prof...
VIP Model Call Girls Hadapsar ( Pune ) Call ON 9905417584 Starting  High Prof...VIP Model Call Girls Hadapsar ( Pune ) Call ON 9905417584 Starting  High Prof...
VIP Model Call Girls Hadapsar ( Pune ) Call ON 9905417584 Starting High Prof...
ย 
Enjoy NightโšกCall Girls Samalka Delhi >เผ’8448380779 Escort Service
Enjoy NightโšกCall Girls Samalka Delhi >เผ’8448380779 Escort ServiceEnjoy NightโšกCall Girls Samalka Delhi >เผ’8448380779 Escort Service
Enjoy NightโšกCall Girls Samalka Delhi >เผ’8448380779 Escort Service
ย 
Ganeshkhind ! Call Girls Pune - 450+ Call Girl Cash Payment 8005736733 Neha T...
Ganeshkhind ! Call Girls Pune - 450+ Call Girl Cash Payment 8005736733 Neha T...Ganeshkhind ! Call Girls Pune - 450+ Call Girl Cash Payment 8005736733 Neha T...
Ganeshkhind ! Call Girls Pune - 450+ Call Girl Cash Payment 8005736733 Neha T...
ย 
WhatsApp ๐Ÿ“ž 8448380779 โœ…Call Girls In Mamura Sector 66 ( Noida)
WhatsApp ๐Ÿ“ž 8448380779 โœ…Call Girls In Mamura Sector 66 ( Noida)WhatsApp ๐Ÿ“ž 8448380779 โœ…Call Girls In Mamura Sector 66 ( Noida)
WhatsApp ๐Ÿ“ž 8448380779 โœ…Call Girls In Mamura Sector 66 ( Noida)
ย 
VVIP Pune Call Girls Mohammadwadi WhatSapp Number 8005736733 With Elite Staff...
VVIP Pune Call Girls Mohammadwadi WhatSapp Number 8005736733 With Elite Staff...VVIP Pune Call Girls Mohammadwadi WhatSapp Number 8005736733 With Elite Staff...
VVIP Pune Call Girls Mohammadwadi WhatSapp Number 8005736733 With Elite Staff...
ย 
Wagholi & High Class Call Girls Pune Neha 8005736733 | 100% Gennuine High Cla...
Wagholi & High Class Call Girls Pune Neha 8005736733 | 100% Gennuine High Cla...Wagholi & High Class Call Girls Pune Neha 8005736733 | 100% Gennuine High Cla...
Wagholi & High Class Call Girls Pune Neha 8005736733 | 100% Gennuine High Cla...
ย 
valsad Escorts Service โ˜Ž๏ธ 6378878445 ( Sakshi Sinha ) High Profile Call Girls...
valsad Escorts Service โ˜Ž๏ธ 6378878445 ( Sakshi Sinha ) High Profile Call Girls...valsad Escorts Service โ˜Ž๏ธ 6378878445 ( Sakshi Sinha ) High Profile Call Girls...
valsad Escorts Service โ˜Ž๏ธ 6378878445 ( Sakshi Sinha ) High Profile Call Girls...
ย 
Yerawada ] Independent Escorts in Pune - Book 8005736733 Call Girls Available...
Yerawada ] Independent Escorts in Pune - Book 8005736733 Call Girls Available...Yerawada ] Independent Escorts in Pune - Book 8005736733 Call Girls Available...
Yerawada ] Independent Escorts in Pune - Book 8005736733 Call Girls Available...
ย 
Call Girls Sangvi Call Me 7737669865 Budget Friendly No Advance BookingCall G...
Call Girls Sangvi Call Me 7737669865 Budget Friendly No Advance BookingCall G...Call Girls Sangvi Call Me 7737669865 Budget Friendly No Advance BookingCall G...
Call Girls Sangvi Call Me 7737669865 Budget Friendly No Advance BookingCall G...
ย 
Call Now โ˜Ž 8264348440 !! Call Girls in Green Park Escort Service Delhi N.C.R.
Call Now โ˜Ž 8264348440 !! Call Girls in Green Park Escort Service Delhi N.C.R.Call Now โ˜Ž 8264348440 !! Call Girls in Green Park Escort Service Delhi N.C.R.
Call Now โ˜Ž 8264348440 !! Call Girls in Green Park Escort Service Delhi N.C.R.
ย 
Nanded City ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready ...
Nanded City ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready ...Nanded City ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready ...
Nanded City ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready ...
ย 
VIP Model Call Girls NIBM ( Pune ) Call ON 8005736733 Starting From 5K to 25K...
VIP Model Call Girls NIBM ( Pune ) Call ON 8005736733 Starting From 5K to 25K...VIP Model Call Girls NIBM ( Pune ) Call ON 8005736733 Starting From 5K to 25K...
VIP Model Call Girls NIBM ( Pune ) Call ON 8005736733 Starting From 5K to 25K...
ย 

How to Integrate Text and Phone Messaging with your Website

  • 1. How to Integrate Text and Phone Messaging with Your Website
  • 2. by Cindy Cullen cindycullen.com Programming since 1983 Building websites since 1999 Freelance web developer since 2003 Cell phone user since they were too big to carry Taught Computers to children and adults โ€“ Online, Homeschool co-ops, Elementary School, Junior High, High School, College, Seminars
  • 5. Images courtesy of vectorolie / FreeDigitalPhotos.net
  • 6. We triedโ€ฆ โ€œWe need phone calls and text messagesโ€ Email Mobile Apps
  • 7. Image courtesy of zirconicusso / FreeDigitalPhotos.net
  • 8. Short Codes O Five digit number O About $1000+/month O Long application approval process
  • 9. Shared Short Codes O Buy Keyword(s) โ€“ about $25/month O Phone numbers โ€“ about $3/month O Voice โ€“ about $0.05/minute O Text - about $0.05/minute O Bulk Monthly plans usually available
  • 10. Images courtesy of vectorolie / FreeDigitalPhotos.net
  • 12. Mass Text Database of phone numbers Opening today at 3pm Openingtodayat3pm
  • 13. Web Meets Messaging with 10 digit phone numbers O Twilio O Tropo O Plivo O Nexmo
  • 14. How it Works O Buy Phone Number (or short code) O Receive messages on my website O Call or Text that number O Twilio/Tropo/Plivo/Nexmo sends the message to my URL O My website processes the message and responds (usually with XML) O Send messages from my website O My website sends instructions to that number using a provided library and API
  • 15. Pricing O Phone Numbers O $0.80/month - $3/month (Avg. $1/month) O Voice O Inbound $0.0050/min โ€“ $0.03/min (Avg. $0.01/min) O Outbound $0.0130/min โ€“ $0.03/min (Avg. $0.02/min) O SMS O Inbound Free โ€“ $0.01/msg (Avg $0.0075/msg) O Outbound $0.0065/msg - $0.01/msg (Avg. $0.0075/msg)
  • 17. Twilio O Average pricing O Great documentation O Great tutorials O Subaccounts O Analytics O Developer tools O Triggers O Easiest to get up and running for ME
  • 18. Mass Text Database of phone numbers Opening today at 3pm Openingtodayat3pm
  • 19. Sent to My Script
  • 20. require "Services/Twilio.php"; $AccountSid = โ€œBxxxxxxxโ€; $AuthToken = โ€œ2xxxxxxxx"; $client = new Services_Twilio($AccountSid, $AuthToken); $twilio_number = โ€œ615-555-0123โ€; If ($_POST[โ€˜Fromโ€™] == $twilio_number) { $body =; $users = get_users('meta_key=phone'); $special_chars = array("-","(",")"); foreach ($users as $user) { $phone = '+1'.str_replace($special_chars,"",get_user_meta($user->ID, 'phone', true)); $numbers[] = $phone; } foreach ($numbers as $number) { $sms = $client->account->messages->sendMessage($twilio_number, $number, $_POST[โ€˜Bodyโ€™]); } } else { // Process user message }
  • 21. Respond to Text <?php header(โ€œcontent-type: text/xmlโ€); echo โ€œ<?xml version=โ€1.0โ€ encoding=โ€UTF-8โ€ ?>nโ€; ?> <Response> <Message>Thanks <?php echo $name ?> for your response.</Message> </Response>
  • 22. CloneMeServices.com Dial 1 for emergency Dial 2 to leave a message Image courtesy of Stuart Miles /FreeDigitalPhotos.net
  • 23. When the number is calledโ€ฆ <?php date_default_timezone_set('America/Chicago'); header("content-type: text/xml"); echo "<?xml version="1.0" encoding="UTF-8"?>n"; if (date("H") > '20') : // time later than 9PM? ?> <Response> <Gather action="/user-input" numDigits="1"> <Say>Welcome to Clone Me Services.</Say> <Say>If this is an emergency please press 1</Say> <Say>Otherwise, please press2</Say> </Gather> <Say>Sorry, I didn't get your response.</Say> <Redirect>/phone</Redirect> </Response> <?php else: ?> // time before 9PM, just forward <Response> <Dial>+12707916649</Dial> </Response> <?php endif; ?>
  • 24. User presses numberโ€ฆ <?php // if the caller pressed anything but 1 or 2 send them back if($_REQUEST['Digits'] != '1' and $_REQUEST['Digits'] != '2') { header("Location: /phone"); die; } // otherwise, if 1 was pressed we Dial CloneMeServices. If 2 we make an audio recording up to 30 seconds long. header("content-type: text/xml"); echo "<?xml version="1.0" encoding="UTF-8"?>nโ€; ?> <Response> <?php if ($_REQUEST['Digits'] == '1') { ?> <Dial>+16155551111</Dial> <Say>The call failed or the remote party hung up. Goodbye.</Say> <?php } elseif ($_REQUEST['Digits'] == '2') { ?> <Say>Record your message after the tone.</Say> <Record maxLength="30" action="/after-recording" /> <?php } ?> </Response>
  • 25. After the recordingโ€ฆ <?php header("content-type: text/xml"); echo "<?xml version="1.0" encoding="UTF-8"?>n"; ?> <Response> <Say>Thanks for your message. Goodbye.</Say> </Response>
  • 26. Image courtesy of zirconicusso / FreeDigitalPhotos.net
  • 27. Applications O Appointment Reminders O Call Queueโ€™s โ€“ matching callers and agents O Call Screening โ€“ find a live body to answer O Call Metrics O Click to Call โ€“ button on website (calls to or from browsers or mobile devices $0.0025/min) O Automated Phone System
  • 28. More Applications O Conference Calls O Phone Polls O Voice Broadcast O Voicemail O Voice Transcription O Audio Recording from your Website O Browser Phone O Browser to Browser Calls
  • 29. And More! O Group Chat O Text to Speech O SMS notifications O SMS from a call O MMS (some may support โ€“ only on short codes with twilio)
  • 30. Who Will Want This? O Doctors O Dentists O Hair and Nail Salons O Massage Therapists O Other Professional Services O Marketers (careful with bulk messaging!) O Dry Cleaners O Restaurants
  • 31. Who Can Use this? O Schools O Clubs and Groups O Churches O Political Groups O Fitness Centers & Sports Clubs O Anybody!

Editor's Notes

  1. Web developer, cell phone user, teacher.
  2. We have email, phone, text messages, phone apps. Itโ€™s time that we integrate all of them and make them work for us.
  3. My story โ€“ started MOC: Booking tool for Hunting and Fishing guides. Guides needed to confirm or deny trips from the field. They needed a way to send and receive text messages to and from the website.
  4. The standard ways to communicate werenโ€™t going to work for hunting and fishing guides very well.
  5. Learning how to make MOC work gave me lots of other ideas about hooking phones and text messaging
  6. Wanted to send text messages to clients when she had cancellations or openings for the day. Also to send out specials.
  7. Learning how to make MOC work gave me lots of other ideas about hooking phones and text messaging