Skip to content

A Facebook Messenger Bot powered by Node.js that dynamically interacts with users to offer movie recommendations.

Notifications You must be signed in to change notification settings

rjbautis/Movie-Recommendation-Bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Messenger Movie Recommendation Bot

A Facebook Messenger Bot built with Node.js and the Google Cloud Dialogflow API. Based on natural conversational experiences with users seeking movie recommendations, the bot passes conversation entities to The Movie Database API and retreives movies for users.

How it Works

A webhook service is designed to handle all received user messages, via Express routes, from the Facebook Messenger and Dialogflow APIs. The webhook passes off the Messenger request to the Dialogflow API, which interprets the conversation intents & entities. Finally, the resulting entities are queried using The Movie Database API and returned to the webhook, which sends generated responses back to Messenger.

Prerequisites

  • Facebook Developer Account & FB Page for Bot
  • Google Cloud Account & Application Credentials
  • The Movie Database API Key

Usage

Install all local dependencies from package.json by executing the following:

npm install

To spin up the webhook server, navigate to the directory where webhook.js exists and excute the following:

node webhook.js 

Note: The server listens on any specified port, or PORT 3000 by default.

APIs Used

  • Facebook Messenger V2.6
  • Google Cloud Dialogflow V2
  • The Movie Database V3

Node Modules Required

  • Body-Parser: For parsing incoming request bodies
  • Config: For configuring Node.js application
  • Dialogflow: For creating natural conversational experiences with users
  • Express: For designing the webhook
  • Request-Promise: For simplistic HTTP requests with Promise support

About

A Facebook Messenger Bot powered by Node.js that dynamically interacts with users to offer movie recommendations.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published