I am new to Twilio and am not a programmer so sorry if this is a dumb question. I created a form in a Google sheet and copied to my Twilio account. I can send a text message to the number and it adds a new timestamp line to the Google sheet but there is no other information like From or Body. I used the tutorial instructions to create it. How do I get the body of the text message to show up on the Google Sheet?
Twilio evangelist here.
One of the other evangelists on our team wrote some step-by-step- instructions that show you how to receive SMS messages into a Google Spreadsheet:
https://github.com/jpf/TwilioSheet#receive-twilio-sms-messages-in-a-google-spreadsheet
Hope that helps.
Devin
Related
Cant find the way how to send quick replies or suggested actions in facebook workplace.
I was sending them using the channel data property back when i was using azure bot.
To integrate a bot with facebook workplace i have to use a custom adapter, according to
this documentation.
And here are some samples to send buttons or images, but nothing about quick replies or suggested actions. Samples
I was able to send buttons as attachments but get an error when sending the Quick Reply because the Quick Reply doesnt has and attachment property in the body. Quick Reply Fb Docs
Please ask me if you need more info.
Thank you in advance.
How do we receive text messages in a .net API?
Ex. Someone send a text message to my number, I need to the text message in my asp.net web API.
How can we implement this?
Twilio evangelist here.
This blog post has the code you need and a link to a video that show you how to receive a text message via Twilio.
https://www.twilio.com/blog/2016/09/an-easy-way-to-receive-an-sms-message-with-c-and-twilio.html
Hope that helps.
Have the bot working just fine via SMS. Now looking for the best way to retrieve the User's phone number being used in the SMS conversation.
Seems like it should be pretty straight forward (easy to do in a native Twilio app), but just not finding the example code or way to get at it from within the Bot Framework using the C# libraries.
I played a bit with the ChannelData off of Activity, but it's not there or I'm not using it correctly.
Any pointers to relevant documentation or sample code would be tremendously helpful!
Your bot's Post handler receives a list of Microsoft.Bot.Connector.Activity when end users message the bot. Each Activity has a "From" Channel Account that contains an "Id" and "Name". You can find the Twilio phone number there.
I am trying to create a simple bot that sends images and hyperlinks by SMS using Twilio (trial account).
I do get the reply from the bot , but none of the markdown is working, even simple markdown elements like text or bing
Sample code I am using to send the message through Twilio SMS channel:
public async Task<Message> Post([FromBody]Message message)
{
if(message.Text == "Hello")
{
string messageText = "![Sample Image](http://aka.ms/Fo983c)";
return message.CreateReplyMessage(messageText);
}
Am I missing something? The emulator displays the image and other markdown properly, but when I test using my android phone and text the Twilio number to connect to the bot, it delivers raw HTML and not the rich content.
Twilio developer evangelist here. As pointed our earlier SMS is text only, so markdown or any other formatting will not work.
I just tried sending a message from a bot, and while I get the image correctly on the emulator or webchat, on SMS I only get the URL of the image (i.e. http://aka.ms/Fo983c).
According to the documentation, this is the expected behavior as it states:
Not all channels can represent all markdown fields. As appropriate
channels will fallback to a reasonable approximation, for example,
bold will be represented in text messaging as bold
So I guess for images, it will always fallback to the URL of the image.
As for sending MMS, it appears right now the botframework doesn't support it. To be clear, Twilio itself does support MMS for US and Canada, but it seems Microsoft's implementation didn't take advantage of that right now.
Hope this helps you.
I did this when I was first trying out the framework. Sorry but I don't have that code anymore however I don't recall having to do anything special. I simply sent a picture from my phone to my twilio number and then in the message properties for the message received by the bot there was an attachment field with a URL pointing to the image sent from my phone. Then I used a regular web request to pull down the image.
The details for the attachment objects and content url fields are outlined here.
Because there's no way to emulate the SMS channel you'll have to publish the code live to be able to test it out.
Have fun!
When I send a test sms from https://www.twilio.com/user/account/developer-tools/api-explorer/message-create with a predefined friendly name, it doesnt apear on my phone. I only see the number.
-if this isnt possible, do you know other providers with this function that work?
[UPDATE]: Twilio now supports this feature.
You can now send messages from an alphanumeric sender ID using Twilio. I wrote up a blog post on how you can achieve this in Ruby and you can check out this article on how to get started with an alphanumeric sender ID on Twilio for more of an overview. Then check out the documentation on how to send an SMS message from an alphanumeric ID.
[UPDATE] Previous answer is below.
Twilio developer evangelist here.
You're absolutely right, the friendly name defined in your account is actually for your uses only and is not intended to appear in place of the number when sending an SMS. We have a few reasons for this, which might be interesting to you depending on your use case.
I don't have a particular company that I can recommend that does allow you to do this. A Google search might help though.