Get SMS responses into a SharePoint list - sharepoint

I have been been able to use Twilio and SharePoint to send SMS messages. We would like to go to the next stage and create a question/response system and receive those SMS messages from our customers and add them to a SharePoint list, therefore kicking off workflows based on the customer's SMS response.
Any ideas ?

Inbound SMS are sent to your Twilio number which you can then define a webhook for. The webhook (the URL Twilio will sent an HTTP Request to when a message is received) will contain the Body of the SMS message.
TwiML™ for Programmable SMS
What is a Webhook

Related

How to receive a SMS on phone with a ticket number through Dialogflow?

I have created an agent on Dialogflow like a help desk, While making a service request the user enters his phone number.At the end of the conversation the bot says "you'll receive your ticket number via SMS on your entered mobile number".
How do I make it so that I received a text on my mobile number through Twilio with a random ticket number ?
Twilio developer evangelist here.
I believe that in Dialogflow if you want to run some code in response to an intent then you need to setup fulfillment using a webhook. That way you can build a webhook that uses the Twilio API to send the SMS and then responds with the message "you'll receive your ticket number via SMS...".
The Dialogflow docs on fulfillment via webhook has a tutorial on how to build this out. I would recommend reading through that and implementing your own fulfillment webhook.

is it possible to send broadcast messages using Twilio whatsapp API

I am trying to integrate Twilio WhatsApp API with my application, is it possible to send broadcast messages using Twilio.
Twilio developer evangelist here.
You can send outbound messages over WhatsApp using Twilio. There are some constraints though.
You need to get your users to explicitly opt in to receive WhatsApp messages
When you send a notification to a user, if it is more than 24 hours since the user sent you a message you can only send approved template messages.
Twilio Notify does not support WhatsApp, so to broadcast messages to a group of users you will need to make one API request per message using the regular Twilio messaging API.
Let me know if that helps at all.

Not Receiving SMS in Twilio

I need to fetch SMS Response sent from Twilio using web hook using Twilio trial account credentials. In that, generated number is from US. And sms is sending from India number. And when message is sent back to Twilio that is not shows in incoming messages and not call the webhook url also.
I created app in twiml. And set webhook url in that also. But doesn't work.
For web hook I am using ngrok so in my local server so I can get data.
Any one have idea what is wrong I am doing.
EDITED
I have created testing twilio account. Generated number and the generated number is from US. I have set up webhook url in manage numbers.
URL is generated from ngrok so It can be used outside my network.
I have setup Twiml App also. And webhook url is also set there.
I am sending one programmable message from my node api. And that was working fine. User is getting programmable message but when user reply to that message it should call my webhook url. But it not calling my webhook url and also it not showing in my incoming message.
Thanks for any help.
For those who are struggling with this,
As of now Twilio not supports 2-way messaging in India.
Please refer this for more details.
Twilio Guidelines for India

Twilio API for WhatsApp

I'm testing the Twilio API for WhatsApp, responding to incoming messages with TwiML.
In the request I can retrieve the sender's phone number, but is it also possible to retrieve the sender Whatsapp nick name?
It is also possible activate the typing indicators?
Twilio developer evangelist here.
The inbound Twilio webhook for WhatsApp does not support the sender nickname and you can't set or receive typing indicators at the moment.

Twilio Number SMS forward to Node

I have a trial Twilio Acct and I have registered my number. I am able to send an SMS to myself using Node/Twilio API (Thanks!). I also have a listener in node for the return incoming webhook 'incomingSMSMessage':
app.on('incomingSMSMessage', function(sms) {
//_________________________Stuff here
});
So, from my Twilio Registered Number in my Trail Acct how do I get the SMS (actual message) sent from Twilio Number to my Node server? I realize I can use TwiML XML to respond w a hardcoded message, but I would like the actual SMS sent from my Twilio Registered Phone. If I must use the TwiML XML how do I populate dynamically with the SMS sent? I do not care about the message sent to the Twilio Phone- just the reply from the Twilio Phone SMS.
Twilio evangelist here.
You need to configure the Messaging Request URL of your Twilio number with a URL that points to your node server. To do this log into your Twilio dashboard, click the Numbers menu option, then click the number you want to configure. On the number configuration page, drop in a public URL in the Messaging Request URL field and save:
When Twilio receives an SMS message we will make an HTTP request to that URL, passing a bunch of parameters that you can use in your app.
Hope that helps.

Resources