I want to know that either twilio support two way SMS service i.e it is bidirectional or not. If yes, please let me know how can I implement it for two way sms service.
In case if it not supported let me know about some other SMS gateway that support this functionality.
Thanks.
Twilio employee here.
Short answer is: yes.
The longer answer: Outbound (From Twilio to a phone number) can be done with the Twilio REST API and we can send SMS to over 200 countries worldwide.
Inbound (From a cell phone to your web application via Twilio) can be done by purchasing a Twilio phone number and setting up the Request URL to make an HTTP POST request to your webserver like so:
This will have information about the inbound SMS message, which you can then reply to with some TwiML or manipulate the information in your code.
Related
When we send sms from twilio then we want to set reply to phone number.
So if they reply to the outbound message then incoming message will be received by agent not the twilio number form which we are sending sms.
Thanks,
Rajendra
Twilio developer evangelist here.
I'm afraid there is no concept of a "reply-to" phone number in SMS messages. The recipient of a message can reply to the number that sent the message to them.
If you are looking to try to connect users directly through a Twilio number, I recommend you check out the Twilio Masked Number tutorial (that links to the PHP version, but there are other language versions of the tutorial). It will show you how to use a pool of numbers so that you can maintain a relationship between an agent and a user.
Let me know if that helps at all.
I want to use Twilio to create an SMS relaying service where the Twilio number is the only number that is exposed, much like web proxy servers that allow you to access the Internet anonymously. I've used the example php code that twilio provides, saved it to a php file and hosted it on a public web server, then updated the messages URL on the Twilio site accordingly. Any message sent to the Twilio number the is forwarded to my mobile. Everything works fine, except for the fact that when I reply to the forwarded message from my phone, the reply includes a header that says "Sent from your Twilio trial account - + mymobilenumber" I understand that the header is inserted because I have a trial account, however I don't want the mymobilenumber field to be exposed. Is it possible to hide this?
I should mention I'm not really a programmer but I'm learning with Twilio.
I followed the example given here:
https://www.twilio.com/help/faq/sms/how-do-i-forward-my-sms-messages-to-another-phone-number
Thx
Antonio
A short code is a 5 or 6-digit number that can send and receive messages with mobile phones. These high-throughput numbers are perfect for apps that need to send messages to lots of users or need to send time sensitive messages. You can buy shortcodes from Twilio or port existing short codes to our platform.
I have set up forwarding for voice successfully using the twimlet in the Twilio request URL...
http://twimlets.com/forward?PhoneNumber=000-000-0000
I would like to do the same for SMS messages but get errors if i place this timlet into the SMS request URL
Thank you
Twilio evangelist here.
The forward Twimlet is currently designed to work with voice phone calls only. If you want to forward text messages this is something that you would have to create yourself.
Check out this FAQ article for an example that shows how to forward SMS messages:
https://www.twilio.com/help/faq/sms/how-do-i-forward-my-sms-messages-to-another-phone-number
Hope that helps.
I would like to send a text message survey (eg. "How happy were you with X service? Reply 1 for satisified, Reply 2 for not satisfied") to multiple recipients. From the responses, I would like to create a report on the recipients that responded 1 vs the ones that responded 2. What is the best way to do this with the Twilio API? Does my app need to store the results from my incoming SMS message or does Twilio store these so I can query the results? If the former is the case and TwiML is involved, how do I parse the response and store the result? Thanks!
** Disclaimer: Twilio evangelist here **
Chirag:
So it sounds like you have two requirements here:
Use Twilio to send outbound text messages to different recipients
Capture a users reply to that message
For the first requirement, you can start by going to Twilio.com and signing up for a new account. Its free to start and we give you a Twilio phone number you can use to start to build your app. Once you have the Twilio phone number, you can use the REST API to start sending outbound text messages from that Twilio phone number. We have a quickstart that shows you how to do this:
http://www.twilio.com/docs/quickstart/php/sms/sending-via-rest
Note that this link goes to the PHP sample, but you can use the drop down at the top of the page to pick from other stacks like .NET, Java, Python or Ruby.
Once you've sent an outbound message you need to capture the replies to that message (your second requirement). Twilio uses something called a webhook to notify you about incoming SMS messages.
A webhook is basically a URL exposed by your application and associated with your Twilio phone number. You can configure the URL associated with your phone number in the Twilio dashboard.
Each time we receive an incoming SMS message on your Twilio phone number, we will make an HTTP request to that URL. As part of that HTTP request we send along metadata about the inbound message like the phone number that the message was sent from and the Body of the message. The full list of parameters we send is here:
http://www.twilio.com/docs/api/twiml/sms/twilio_request
Now your app can pull those parameters out of the request and do whatever it wants with them. Since we already are sending the body of the message as we receive it, Tims suggestion of tracking the responses based on the From parameter and storing the message body in your own database is a good suggestion.
This quickstart shows receving an incoming text message, grabbing the From parameter and then responding by sending back from TwiML:
http://www.twilio.com/docs/quickstart/php/sms/replying-to-sms-messages
In your case, if you don't want to reply to the incoming message, just omit the TwiML response.
Hope the helps. Lets me know if you need more info.
Devin
Track the responses using the From parameter (and using Body to identify the selection). Yes, Twilio stores those messages, and you could query the API - but it's likely better to just store it in your own database.
I want to know is there any technology which allows you to set up an sms gateway, via which users can send emails?
Take a look at Twilio or Tropo - these provide SMS gateways which allow you to respond to incoming SMS in whatever way you like.