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 of the Twilio Community Hackathon.
You are encouraged to comment in this thread for asynchronous assistance. We've also set up a dedicated DEV Connect group channel for more synchronous help. To join the Connect group, just leave a comment in this thread asking to be added.
Twilio will be hosting office hours in Connect during the following times:
- Mondays: 3-6pm EDT
- Tuesdays: 3-6pm UTC
- Wednesdays: 3-6pm AEDT
- Thursdays: 3-6pm PDT
- Fridays: 3-6pm EDT
Additionally, Twilio will be hosting a weekly office hours session on https://twitch.tv/twilio, starting on April 2 at 4-6pm PDT.
If you'd like to share more general progress that you're making on your project, you can do so in the community update thread!
Top comments (136)
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.
Some comments may only be visible to logged-in visitors. Sign in to view all comments.