The awesome Twilio team will be making themselves available to help people who runs into issues or have questions related to their products as part...
For further actions, you may consider blocking this person and/or reporting abuse
Request for async assistance:
Can someone help me out here?
I'm using this library to download a video: github.com/fent/node-ytdl-core
I need to save the video to a file in order to make some modifications. I'm having trouble saving the response of the call to download a video without using the piping operator.
I think the read call is returning a byte array, but can't tell from the method signature. Could someone point me in the right direction here?
Alternately, if there is a way to get information about the progress of the write when using the pipe operator, that would be great too. Thanks!
To get info about the progress it looks like you can listen to the progress event on the readable. Something like:
I haven't used this library though, so I might be wrong. Hope it helps!
Hey Phil thanks a lot for the reply. That definitely works if I wasn't using the pipe operator, but without doing so, I don't know how to create the file from the array of bytes.
At any rate, I actually switched to Python and it's made my life a little easier.
Ah! Because it's a readable stream it will emit the data event with chunks of the data which you can write into your writable stream. Something like this should work:
But, if you've switched to Python and you're happy with that, then that's cool too!
If only the Twilio dev evang team could answer all of my Javascript queries 🤣
So just for my learning opportunity here - when you call
file.write(chunk)
, it's appending those bytes to the file, and callingfile.end()
will close that file write stream and result in the video file automagically?Side note about python: It's been awesome to stand up my hack. The last step of adding a message queue (which I thought would be the hardest) has been the easiest. Gotta love learning!
Yes, that is the gist of it! Using the
data
andend
events of the readable and callingwrite
andend
of the writeable is actually the equivalent of usingreadable.pipe(writeable)
. But, the documentation suggests you don't want to mixpipe
and event based operations and using theprogress
event would mess that up.I'm happy to answer JS questions if I can! I just happened to work with other readables/writeables a couple of weeks ago, so it was sort of fresh.
It's good to hear that the Python version has come on nicely for you. I love hackathons for the learning potential!
Brilliant! Well I followed you so be expecting some in the future.
Python for whatever reason (or perhaps the competitive nature of the Hackathon) has me more excited about developing than I’ve been in a while, so thanks for that!
And thanks again for your assistance.
Hello. I'm in need of asynchronous assistance. I just created a Twilio trial account for the hackathon but was greeted with this message when redirected to my dashboard:
"Your account has been suspended due to suspicious activity. Please check your email or submit a ticket with your name, use case, and link to your business and we will review your account."
I am not sure what I did wrong and I need some direction before taking any course of action. Can anyone help? Thanks in advance.
Oh no! Sorry about that. Our fraud detection does hit the occasional false positive.
If your account has been suspended you will have received an email from our fraud team with more information and a number of questions. The best course of action is to reply to that email and answer the questions. That will give the fraud team more detail and allow them to unlock your account.
I have submitted a ticket and sent you an email containing my Account SID. Thanks so much for help
I think you're back up and running now. Good luck building your hack!
Yes I am Phil! Thanks for your help. I appreciate it.
Hi, Nice to meet you.
I got the same issue.
Please check my image, let me know your answer
Hey, I’m not sure what image you mean here.
If your account has been suspended you will have received an email from the Twilio fraud team with some questions. You should respond to that email and answer the questions, that will help the team unlock your account.
hi Phil! I replied to the email with the answers to all the questions but it's been a few days that my account is still unblocked
hello Phil, I too have been suspended from twillio with the same message of suspicious activity. I have already submitted a ticket to support. I will send you my account SID via email if thats ok?
Hi :)
A somewhat urgent request:
I bought a phone number from the Netherlands (country where I am) and I can send SMS for Netherlands numbers and Belgian numbers (I have a belgian number).
However, my parents (who are in Portugal) tried to use it with a portuguese number (+351 prefix) and it throws an error telling me the number doesnt have permissions?
TwilioRestException: HTTP 400 error: Unable to create record: Permission to send an SMS has not been enabled for the region indicated by the 'To' number: +351.
Any help will be very appreciated!!
Hey Bruno,
What you need to do is go to your Twilio console, to the Geographic permissions for SMS section and ensure you have the permission checked for sending to all the countries you want to.
Hey Phil!
I'd like to let you know that my parents successfully managed to use my web app from Portugal, and got their restaurant info via SMS, flawlessly :D As per your suggestion, just edited the geographic permissions!
Feels great to build my first deployed, location-based web app, all enabled thanks to your API, so, props :D
That's awesome! I love that feeling of a job well done. Don't forget, the API was there, but you had to put everything together. Good luck in the competition!
Thanks Phil! I'll try to fix it! By any chance did you read my post about my app and is it a valid submission?
It looks like a valid submission to me! As long as it's open source and you followed the other parts of the submission process then you're looking good.
Awesome! Thanks
Hi. I'm trying to use the whatsapp api but when I send a (one-way) message, it gives me the following error:
"The 'From' number +1669******* is not a valid phone number, shortcode, or alphanumeric sender ID."
But my number is a valid 10-digit verified number that's working fine for the sms api. Can someone help me out here?
If you are using the WhatsApp API then you need to send the message from a WhatsApp number. WhatsApp numbers are prefixed with
whatsapp:
too.Check out the WhatsApp sandbox in the Twilio console and try again with the WhatsApp sandbox number.
Let me know how you get on.
Thank you so much for your reply. I already tried that in my terminal but then I get the error:
I am also providing the authorization token and accountSid.
Have you been through the full WhatsApp sandbox setup?
yes.
Can you share the code you're using? My DEV connect chat is open if you want to share that privately or in more real time.
Hi there Twilio team!
The app that I'm building uses Autopilot along with the Whataspp API channel, so I have a couple of questions:
1) Can I have two fields in a
collect
action question? I.e, the very first question my bot asks is for the user's first name, it goes "Can I have your name" with a yes/no question if the user says yes then it redirects to the actual action which saves the name. But I think this isn't too organic, I would like to narrow those two questions down into one, so the bot asks "Can I have your name?" and then the user could reply "no" or something like "yes I'm name here"; I've seen some examples about custom fields but either they are too old or they do it via the console instead of with thejson
schema, which is why I want.2) The API I'm building for the app relies heavily on the
UserIdentifier
being present (since it's the primary key I'm using to store the users) so, is there I way I can set theUserIdentifier
in the Autopilot simulator? Currently, I'm testing with my phone via Whatsapp, but it would be much better to do it in the simulator with the debug view and all the details.Thanks!
Hey Dominik, I have another question for you 😅
Can the routes taken by the bot to trigger tasks be constrained?
For example, say I have a
menu
task; which lists all of the bot's functionalities. I want all of those tasks to only be triggered from thatmenu
action, kinda like a finite state machine; where states can only be triggered by another given state. Currently I'm using thelisten
action with thetasks
sub-property; but still, there are actions that trigger when they're not suppose to.Hi Alessandro! I reached out to our Autopilot team to get you an answer to those questions. I'll try to get back to you as soon as possible.
Cool Dominik, thanks!
Alright I got some answers for you :)
For your first question, you cannot collect multiple types at the same time but there is a workaround using "prefill"s. You can check them out here: twilio.com/docs/autopilot/actions/.... You could take that to extract the initial values for multiple fields and then it only collects the missing ones.
As for the useridentifier there's unfortunately no way to change it :(
Cool, thanks I'll check it out the link. About the
UserIdentifier
, don't worry I think I can implement some sort of middleware to add that data to the incoming request when debugging.Hi I'm having an issue when I try to apply the hackathon promocode on my twillio trial account. I'm getting the following error "Error Promo code is not available for your account." I've followed the steps shown here: twilio.com/blog/apply-promo-code
Please help!! :)
Also can I get added to the DEV connect channel
Thanks!
Some questions: 😄
What if two people accidentally does the same project who willl win ?
Is demo link mandatory ? Because I need to find a free hosting provider to host .NET app. Other option is that I can run the project locally and record the demo as video and post in YouTube, so twilio team can watch the demo ?
Your project should not have security vulnerabilities or violate security best practices (i.e. hard coded credentials, plain text passwords)
According to The above statement. it means even we cannot store twilio or other API key in our app ?
I need to convert 300 words to speech. i.e I would send that 300 words to twilio voice api and it should return the speech output in a url so I can play it in a browser. if this is possible, Kindly send me documentation demo for .NET.
Hi @shaijut
If it is the same idea but different implementations we'll still judge them as normal. If it seems like it is 100% identical we'll have to see if we can determine who built the original one
Demo link is not mandatory as long as the README has clear instructions on how to run the project locally.
You should store your credentials as environment variables for example or whatever is the right solution in your respective programming language. Here's an example how to use secrets in .NET twilio.com/blog/2018/05/user-secre...
The voice API is largely designed for phone calls and not directly for speech to text. We do have speech to text built-in though. There are some examples here: twilio.com/speech-recognition
Not a judge but I'd imagine they're examining all relevant criteria. You need to make sure to follow all of the instructions and do your best. If one application is the same as another, but the latter has better documentation, architecture, tests, etc, I would image it would win.
Check out Ngrok
I'm interpreting that the same as you are.
I think the spirit of the hackathon is to go out and try and find things yourself, post what you've found and tried, and then if you can't find anything, ask for help. Have you looked anywhere at the Twilio docs?
Hi 😄, I have used Ngrok before good idea. Thanks.
🙌 All of us at evervault are more than happy to help out with any questions you might have or help you might need to get up and running with evervault auth. Just drop us a line 😎
If you're curious to hear more about how we think privacy should be solved then we'd love if you took a look at our Pragmatic Privacy Manifesto, which you can read on our blog (uncaged.blog/manifesto/)
Hello 👋🏼😊
Can be added to the help channel onDEV Connect?
Hello guys, after I updated my
sms-url
fromtwilio-cli
I got an error.Details here
I´m stuck because I didn´t have luck searching on Google. Please can someone help me?
Are you able to download, install and run ngrok outside of the Twilio CLI? It looks like that is what is causing trouble here.
Hey @phil I noticed during the weekend that my laptop that use in my job has blocked something that don't let me install or use ngrok. I tested my code in another computer and it's working.
Thanks for your help.
That's good news! Glad you found out what happened and could test elsewhere.
👋 Can I be added to the help channel on DEV Connect?
👋 Can I be added to the help channel onDEV Connect?
Hi. I use Autopilot. Inside, I have a task with action "redirect", which redirects to my express server. I know I could use Twilio functions, but I also need to access DB. I would like to process the request sent from Twilio in express. But I am unable to extract the data from request. Both req.params and req.query are empty.
EDIT: I changed method on both sides to GET and now it works.
EDIT2: The problem has emerged again. I need to use POST method to be able to access Memory. But params, query and body are all empty.
EDIT3: The solution was to use
I'm glad you were able to unblock yourself. Yes you have to use the
app.use(bodyParser.urlencoded({ extended: false}))
option because Twilio performs HTTP POST requests with the data type ofapplication/x-www-form-urlencoded
and Express has removed automatic body parsing from their implementation some time ago.Hey! I had SO much fun working on this, I was just wondering if I followed the correct format to submit my project (post at dev.to/shreyravi/covid-19-sms-upda...) for this type of hackathon. Thanks so much again, this was an AMAZING learning experience!
Did you ever get a reply on this?
nope, but i assume everything went well :)
👋 Can I be added to the help channel onDEV Connect?
(just leaving this comment as an example)
If it's taking a bit for us to add you, please feel free to @mention me and I'll help as quickly as I can!
Asking for some async help:
I've been following the tutorial for the WhatsApp API and got my sandbox connected to a phone number and be able to send messages and all that. But it is still unclear to me how I get a dedicated number. Could someone explain it to me or point to the documentation that explains it?
Also, I imagine there is a way to change what a user has to send to join the sandbox and the response message that Twilio sends confirming it?
Hey hey, good to see a familiar face in this thread! So, it's definitely not a requirement, but just give me a shout if you want to be added to the Twilio Hackathon Connect channel. 😀
Hey @savagepixie , glad to hear the WhatsApp Sandbox is working for you. That's definitely the best place to be for developing an application.
To get a real number on WhatsApp you need to be approved by the WhatsApp team. You can apply through Twilio and the team here will help with that. The best documentation to read on it is here: twilio.com/docs/whatsapp/api#using....
Let me know if that helps or if you have further questions.
Hello,
Is there a way to check if our submission is correct? For example, I did not receive a confirmation email when I joined CodeExchange. Also, should we mark our submission DEV posts as submissions somehow so they get noticed en between the other update posts?
Thank you
Hi. I need some assistance. I am trying to buy a number on Twilio that I can use from Ghana unfortunately SMS is not supported for Ghanaian numbers. I was thinking I could instead use any other number that supports SMS but I see that all of them can send and receive to domestic numbers only. Is there any workaround in this situation? Thanks in advance
Hey @gyocran , it's definitely not the case that numbers only support domestic SMS. I would recommend you get a US number, they can send all over the world. Do make sure that you have geographic permissions enabled to send SMS to Ghana though.
Further to that, I just checked on our guidelines for sending SMS messages to Ghana. They suggest that:
So you probably want to try sending SMS messages from an alphanumeric ID instead of a number, or you can use a messaging service with a number and an alphanumeric ID to cover both cases.
Note: when sending messages with an alphanumeric ID users cannot respond as there is no phone number to respond to. If you want to build a two way messaging application you might look into trying the Twilio API for WhatsApp instead.
Let me know how you get on.
Thanks for clarifying my issue with buying a number. Also, thanks for the additional information. I will have to reconsider some aspects of the project after this. I will keep you posted on how things are going. Thanks again.
Question about the submission guidelines.
From the hackathon announcement, it seems that we need to post an issue in Twilio's code exchange and an article in DEV in order to submit our project.
But looking through other people's issues in the code exchange, Twilio's reply seems to be that they are not a valid submission for the hackathon and that, to submit their project, they need to post an article here. The way they say it, it seems to be that the article in DEV is the only part of the submission process.
So this is my question: Do I need to do both open an issue in the code exchange and publish an article in DEV or do I only need to publish an article on DEV?
(Note: I don't mind opening an issue in the code exchange. In fact, I've already got it written. But I don't want to clutter the repo's issues if that's not part of the submission process)
I would recommend that you have a go with the API and see how far you get. Try going through this tutorial on sending SMS messages with Twilio in C# and see what you think after that? I'll be happy to answer any questions you have.
Just to make sure I don't start coding for nothing. We don't need to use the libraries provided by Twillio as long as we use their services, right?
So, can we use languages that don't have a library and connect to the API via http requests? In my case I'd like to use Elixir to code my project.
You don't need to use our libraries, no, just the API. I'd love to see a submission in Elixir!
Awesome, thanks!
Hi, please add me to the group on DEV Connect, thanks.
👋 Can I be added to the help channel onDEV Connect?
hello, can I be added to the Dev Connect group channel @michaeltharrington
Sure thing!
Hi, can I be added to DEV Connect group channel?
Thank's
Sorry for the delay, just added you! 🙂
Can I be added to the help channel on DEV connect?
Sorry for the delay, just added you! 🙂
Helo! Can I be added to the help channel onDEV Connect?
Sorry for the delay, just added you! 🙂
Hey everyone! Sorry for the slow reply. You do not need to raise an issue on the CodeExchange GitHub repo, you need to sign the agreement and post here on DEV with the #twiliohackathon hashtag.
Good luck with the submissions!
Can I be added to the help channel on DEV Connect?
Can I be added to the help channel onDEV Connect?
👋 Can I be added to the help channel on DEV Connect?
Hi there! Could I be added to the connect group please :)
Hello! Can I be added to the help channel on DEV Connect?
👋 Can I be added to the help channel onDEV Connect? Also, it's my first time on Dev, so could I get a pointer on how to access the office hours?
A bit late to the hackathon, just finished school 😊
The DEV team can add you to the connect channel. You can ask for help through that channel and there will be Twilio members (like me!) available during the office hours times. We are also having live office hours on Twitch in which you can come and chat to us live. Keep an eye out for announcements about them too.
And don't worry about being late, I reckon you've got plenty of time to get started. I look forward to see what you're going to build!
Hi!, 👋 Can I be added to the help channel onDEV Connect?
👋 Can I be added to the help chat channel on DEV Connect?
May I be added to the DEV Connect help channel?
Can I be added to the help channel onDEV Connect?
In the rules it says:
So if your project doesn't have all the features that you wanted it to, but it can still do some things, then you only have to describe the bits that it does. And then it is a valid submission and you would eligible for the participant badge. 🙂
Hi, please add me to the Twillio DEV connect group.
Hi! Can I be added to the help channel onDEV Connect?
👋 Can I be added to the help channel on DEV Connect?
Hi, I'd like to know if the submission needs to be an application, like a web app, mobile or desktop app. Could the project be more focused on building a library or HTTP API, and then an example application using that lib? Or a project focused on providing a service for other applications? Thanks!
Hi David! Sorry for the late reply. Yes building a library or HTTP API is totally valid if you add an example application to it. Just make sure you point out in the submission post what you build and how it works :)
Hey! Can I be added to the help channel on DEV Connect? Much appreciated! 😄
Hi to everyone (: 👋 Can I be added to the help channel on DEV Connect?
Please add me to the help channel on DEV Connect, thanks!
Can I be added to the help channel on DEV Connect?
Can I be added to the help channel on DEV Connect?
👋 Can I be added to the help channel onDEV Connect?
Could you please add me to the Connect group?
👋 Can I be added to the help channel onDEV Connect?
👋 Can I be added to the help channel onDEV Connect?
👋 Can I be added to the help channel onDEV Connect?
Hi Team, 😄 Can I be added to the help channel onDEV Connect?
👋 Can I be added to the help channel onDEV Connect?
👋 Can I be added to the help channel onDEV Connect?
Thank you! 🙌
👋 Hey, Dev staff!
Can I be added to the help channel onDEV Connect too?
Hi! Can I be added to the help channel onDEV Connect?
Hello can I be added to the help channel please.
Hey Guys, can someone help me with this:
We have a whatsapp chat bot, and we want to randomly get images and send it to the user, but once I send the first image from the bot, Twilio will cache that Image and then send it over and over again not even calling the API route for that.
How can stop we Twilio from caching the image?
Thanks in advance for the help
There's a couple of things you can do here. You can set the
Cache-Control
header tono-cache
on the URL you are returning for the image. Or you can always return different URLs for the images.There are more details in this article on how to change the cache behaviour for media message files.
I am currently using the Twilio programmable video REST API with python.
I have been able to create a room, but do not know how to connect to the room and start the video session. The example I saw was in JavaScript. Any example in python?
Thanks
I see you've messaged me in Connect, I'll help you out there 🙂
hello, can I be added to the help channel on Dev connect
Hello everyone. I am participating in Twilio Hackathon. I have made an interesting app that needs to self-hosted on your server. Now how do I provide a demo link for it as mentioned in the submission template?
Hi. Can I please be added to the help channel onDEV connect?
I'd like to be in the help channel on devconnect!
Hi Twilio team,
How do we actually "submit" the project? Is it just via a post, or do we actually need to submit via CodeExchange? I'm almost there...just looking to do the final step.
I want to use Twilio to send and receive SMSs - is the only way I can do this by buying a phone number? Just wanted to double check before I start spending my credit on it.
Yep, you will need a number to send and receive messages.
Sweet, thanks!
Hi,
Please someone add me to the connect group.
Sorry for the delay, just added you! 🙂
👋 Can I be added to the help channel on DEV Connect?
Does the Twilio Autopilot support something similar to Dialogflow´s Slot Filling(required parameters) feature?
Check out the collect action, it allows for you to set up a bunch of answers you want to collect from a user, allows validation and will keep asking until the minimum required answers are supplied.
Hi, did you ever find out?
Happy to be here to help out with Office Hours today. There have been so many great submissions already. Certainly don't hesitate to drop your questions here.
Can I use a paid Google API along with Twilio's offerings in my project for Twilio hackathon? I need to use Maps, Geolocation and Geocode APIs.
Is this question so dumb or are there no DEVs 😅
Sorry! You caught us napping over the long Easter weekend. The rules state:
But as long as the paid for APIs that you are using have a free tier with which they can be tested (which I believe Google ones do) then you are totally fine to use them.
Hi. Can I please be added to the help channel on DEV connect?