Make A Raspberry Pi Powered Facebook Chatbot - Part 1: Server Setup

submitted by hackerhouse on 03/18/17 1

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: 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! EDIT: @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 USEFUL LINKS: See my code on Github: github.com/HackerHouseYT/Facebook-Newsbot Facebook chatbot platform: developers.facebook.com/blog/post/2016/04/12/bots-for-messenger/ Node.js: nodejs.org/en/ ngrok: ngrok.com/ Node.js on a Raspberry Pi: learn.adafruit.com/node-embedded-development/installing-node-dot-js Subscribe to Hacker House: www.youtube.com/channel/UCEcNXmr7DYq1XxpWHSxaN0w?sub_confirmation=1 Follow Hacker House on Instagram: www.instagram.com/hacker_house_/?hl=en Music: Don't_Stop by Mr. Logistix (buukwerm) is licensed under a Creative Commons Attribution license (creativecommons.org/licenses/by-sa/3.0/) Artist: soundcloud.com/buuk_werm/tracks

Leave a comment

Be the first to comment

Collections with this video
Email
Message
×
Embed video on a website or blog
Width
px
Height
px
×
Join Huzzaz
Start collecting all your favorite videos
×
Log in
Join Huzzaz

facebook login
×
Retrieve username and password
Name
Enter your email address to retrieve your username and password
(Check your spam folder if you don't find it in your inbox)

×