Live data from Hacker News

Build a WhatsApp Chatbot with Python, Flask and Twilio

twilio.com

51–60 of 66 posts

Re: Build a WhatsApp Chatbot with Python, Flask and Twilio

#51

Earlier quoted context omitted.

They don't necessarily need to put ads in the app. They can simply transfer that personal information to their larger people profiles making their existing ad networks more valuable. It could additionally be simply a play to keep someone _else_ from getting said data. (I think your argument still makes sense, just another angle on that part).

The privacy law implications (GDPR, the new California law, etc.) would probably crush Facebook as a company if they started doing that. They already paid over 100 million for just making false promises when they bought WhatsApp, now that the EU has sharpened their blades to take on big data farms like Google and Facebook, doing something like that would be suicide for FB. Any additional data farming would probably a…

I'm mostly speculating but, they wouldn't be selling the data, they would be selling access to their ad network that has models built off that data used to match ads to people. If they have a high(er) conversion rate, they can charge quite the premium for this information. Similarly, if they could merely keep people in their platform (WhatsApp), nobody else has that information -- same effect.

(Also speculating) if that's more or less how it works, and an ads conglomerate like Google or Facebook is worth hundreds of billions, then even a fine of a billion dollars wouldn't be enough to deter them from this activity.

None of this is meant to stir up controversy or be negative or anything, I just think its an interesting mental exercise to consider this scenario and these motivations.

Re: Build a WhatsApp Chatbot with Python, Flask and Twilio

#52
post #36

I'm about to release a bot for Whatsapp for NanaGram ( https://nanagram.co ). Amped! The user experience of SMS-first products is novel and fun. There's something magical about snapping a photo and just texting it to a unique NanaGram number powered by Twilio. It takes just a couple seconds. I'm excited to deliver the same experience through Whatsapp to customers around the globe and people on wifi. Building NanaGram…

Did Twilio or AT&T ever provide any response on the blocking numbers issue?

Re: Build a WhatsApp Chatbot with Python, Flask and Twilio

#53
post #36

I'm about to release a bot for Whatsapp for NanaGram ( https://nanagram.co ). Amped! The user experience of SMS-first products is novel and fun. There's something magical about snapping a photo and just texting it to a unique NanaGram number powered by Twilio. It takes just a couple seconds. I'm excited to deliver the same experience through Whatsapp to customers around the globe and people on wifi. Building NanaGram…

> 1) AT&T started blocking any number permanently across its network last January if it contains a hyperlink or email address, even if the customer interacts with the number. I had to create separate messages just for the 12.5% AT&T users. I don't follow - they blocked any number which replied with a hyperlink or email? Can users of AT&T not send them to each other?

I bet that AT&T can detect "non-real-user" phone numbers, so their hyperlink filter only acts on those numbers.

I have been using Google Voice as my secondary phone number for the past 5 years, and some services manage to detect that it isn't a real phone number and refuse to work with it. More specifically, it usually happens when I try to use 2FA over SMS (note: i know that 2FA over SMS is not considered secure, but some of the services I use only offer this as their 2FA, and it is better than me not using 2FA at all). It doesn't just fail to deliver the message, the service straight up tells me to enter a "real" phone number.

Re: Build a WhatsApp Chatbot with Python, Flask and Twilio

#54
post #36

I'm about to release a bot for Whatsapp for NanaGram ( https://nanagram.co ). Amped! The user experience of SMS-first products is novel and fun. There's something magical about snapping a photo and just texting it to a unique NanaGram number powered by Twilio. It takes just a couple seconds. I'm excited to deliver the same experience through Whatsapp to customers around the globe and people on wifi. Building NanaGram…

Did Twilio or AT&T ever provide any response on the blocking numbers issue?

No, they don't. I haven't tested this in a while though.

Edit: Oh, I think you may mean a support response. Twilio helped me dig into the issue to great lengths. Ultimately, it was out of their hands. I think it's a lazy decision on AT&T's choice. Seems like a very rudimentary spam filter. You'd think they'd at least whitelist numbers customers are actively texting, especially if they don't contain keywords like "stop" or "spam."

Re: Build a WhatsApp Chatbot with Python, Flask and Twilio

#55
post #53

Earlier quoted context omitted.

> 1) AT&T started blocking any number permanently across its network last January if it contains a hyperlink or email address, even if the customer interacts with the number. I had to create separate messages just for the 12.5% AT&T users. I don't follow - they blocked any number which replied with a hyperlink or email? Can users of AT&T not send them to each other?

I bet that AT&T can detect "non-real-user" phone numbers, so their hyperlink filter only acts on those numbers. I have been using Google Voice as my secondary phone number for the past 5 years, and some services manage to detect that it isn't a real phone number and refuse to work with it. More specifically, it usually happens when I try to use 2FA over SMS (note: i know that 2FA over SMS is not considered secure, bu…

I've noticed this as well. Services like Twilio provide an endpoint to check the carrier. For my Google Voice number, they return "Google (Grand Central) BWI - Bandwidth.com - SVR."

Re: Build a WhatsApp Chatbot with Python, Flask and Twilio

#56
post #44

Earlier quoted context omitted.

> Something like 4bn was paid in cash I assume you don't mean this literally? 1bn in $100 notes weighs over 1 ton.

"Cash" seems to have been misused as its own opposite so often as to have become an entirely useless word now, much like "literally". I assume they just meant "money"?

Well probably just a liquid source of funds transferred directly to an account vs. some other financial instrument. No one is going to do a deal like that in physical cash.

Re: Build a WhatsApp Chatbot with Python, Flask and Twilio

#57
post #49

Hey all, I'm the engineering manager for teams at Twilio responsible for WhatsApp integration, among other channels. We're more than happy to answer any technical or general questions -- fire away with replies. Will keep an eye on it today.

It seems there is no support for letting a user share their location over WhatsApp through the API at this moment - I was wondering why that is and if you're expecting that that will change soon? For the rest I've experimented with the system and it's been working quite well, thanks for the work!

Glad to hear it! Location support actually launched just last week! Check out https://www.twilio.com/blog/new-rich-features-support-deeper... and https://www.twilio.com/docs/sms/whatsapp/api#send-a-location... for details

Re: Build a WhatsApp Chatbot with Python, Flask and Twilio

#58
post #10

Earlier quoted context omitted.

Paying isn't necessarily the issue. WhatsApp needs to make money, and this is a fairly clear way. The issue is the 3rd party. I don't understand why it needs to go through another service.

Twilio's bread and butter is telephony developer relations. Why would WhatsApp get into this market when they can outsource it for free to Twilio who has the product and documentation nailed. The support however is a different story. Once the demand is high enough, WhatsApp are free to revisit. It also keeps WhatsApp low (relatively speaking) cost to run.

The type of messages that can be sent over WhatsApp via Twilio are so restricted and expensive that it was not worth integrating when we looked at this at my work.

Even with Verizon's proposed A2P charge per SMS, it is half the cost to use SMS for conversing with customers compared to WhatsApp. Said surcharge has been postponed repeatedly, meaning SMS is an order of magnitude cheaper to use than WhatsApp

Re: Build a WhatsApp Chatbot with Python, Flask and Twilio

#59
post #16

Earlier quoted context omitted.

Miguel Grinberg was recently hired by Twilio

Yes, this is true. I will be involved with the Twilio blog as part of my duties, by writing original articles and also by working with other contributors to get their posts published.

oh nice! Long time fan of your work and I people get us confused sometimes because PacktPub chose the title 'Flask by Example' for a book I wrote with them which is too similar to your blog posts.

I nearly wrote an article for Twilio but didn't complete the process. But have written similar posts e.g. [0] and work with other writers who also do this form of instructional technical writing. Would love to chat sometime if you have time - contact info in my profile

[0] https://www.codementor.io/garethdwyer/building-a-telegram-bo...

Re: Build a WhatsApp Chatbot with Python, Flask and Twilio

#60
post #31
post #5

Earlier quoted context omitted.

Telegram bot writing is silly easy. If you use the python module you can basically just write the whole thing as a set of functions in a file (with decorators that watch telegram for triggers) and one function that automatically polls and does all the responding at the end. I managed to bang out a few when I had a day off a few months back. Very satisfying.

Writing a Telegram bot is easy yes but writing a good one isn't. There are some very tricky things involved which you basically can not know and wont find in the Documentation. It forces you to run into problems first and then look for solutions. Especially if your bot gets decent amount of traffic something in the range of 1msg/s and above. The people at https://t.me/BotDevelopment (unofficial) are your best chance…

What are those tricky things?
Post reply on HN