If you haven’t heard already, Facebook recently announced their new Messenger based chatbot store at the F8 Facebook Developer conference in San Fransisco. Along with that, they also announced a platform called Wit.ai aimed at making it easy to give your bot natural language understanding.

In this video series, I’m going to be making a Raspberry Pi powered Facebook Chatbot with the *new* Raspbery Pi 3. The chatbot will be coded to send me news articles on demand. In this video, I setup a node.js server on my mac and load it on my Raspberry Pi. EDIT: This project now has a Hackaday.io link: https://hackaday.io/project/12261-raspberry-pi-facebook-chatbot

If you have any suggestion for how to improve the chatbot, or how to improve these videos, please let me know it a comment below!

@iamaquantumcomputer on reddit pointed out some potential pitfalls.

– Some ISPs block inbound ports. Time Warner does this on my home connection, as well as the internet on my college campus. If you’re ISP does this, and you’re unable to find an internet connection for your pi that doesn’t block incoming ports, you’re out of luck. You’ll have to use an external server to host your code
– The bot will only be accessible by you. It won’t be publicly accessible unless it’s approved by facebook. And facebook is very choosy with who they approve for access to the api. I know many people who have spent time programming fb chatbots, only to have facebook deny them access to the api. I actually don’t know anybody who had one approved
– If you’re a beginner, I’d recommend python flask over node.js. It’s python based and has a smaller learning curve


See my code on Github: https://github.com/HackerHouseYT/Facebook-Newsbot

Facebook chatbot platform: https://developers.facebook.com/blog/post/2016/04/12/bots-for-messenger/

Node.js: https://nodejs.org/en/

ngrok: https://ngrok.com/

Node.js on a Raspberry Pi: https://learn.adafruit.com/node-embedded-development/installing-node-dot-js

Subscribe to Hacker House: https://www.youtube.com/channel/UCEcNXmr7DYq1XxpWHSxaN0w?sub_confirmation=1

Follow Hacker House on Instagram:

Don’t_Stop by Mr. Logistix (buukwerm) is licensed under a Creative Commons Attribution license (http://creativecommons.org/licenses/by-sa/3.0/)
Artist: https://soundcloud.com/buuk_werm/tracks


Facebook’s Caffe2 AI tools go to iPhone, Android, plus Raspberry Pi

Your phone may soon have the possibility to understand items in images devoid of getting access to the cloud

New intelligence can be included in smartphones similar to the apple iphone, Android OS products, and low-power computer systems such as Raspberry Pi with Facebook’s new open-source Caffe2 deep-learning framework.

Caffe2 allows you to program artificial intelligence features into smartphones and tablets, enabling them to understand photographs, video, textual content, and speech and be more situationally aware.

You ought to realize that Caffe2 isn’t an AI program, but a tool allowing for AI to be programmed into mobile phones. It requires just a few lines of code to write learning models, which can then be bundled into mobile apps.

The introduction of Caffe2 is crucial. It signifies users will be able to get image identification, natural language processing, and computer vision right on their mobile. That job is commonly offloaded to remote servers in the cloud, with mobile phones then connecting to it.

Mobile products are having more artificial intelligence abilities. More cellphones are being bundled up with Amazon’s Alexa and Google Assistant, while Apple’s Siri has been a staple in the iPhone for many years. Samsung’s Galaxy S8 mobile phones are set to get the Bixby voice assistant, which ought to make operating the devices significantly easier.

Caffe2 can function within the power constraints of mobile products. It works with mobile hardware to accelerate AI apps and create neural networks.

Caffe2 takes advantage of the computing power of latest mobile hardware to hasten deep-learning tasks. As an illustration, in mobile phones, Caffe2 will utilize the computing power of Adreno GPUs and Hexagon DSPs on Qualcomm’s Snapdragon cell chips.

Get more information at http://pcworld.com/article/3190759/artificial-intelligence/facebooks-caffe2-ai-tools-come-to-iphone-android-and-raspberry-pi.html

Leave a Reply

Your email address will not be published. Required fields are marked *