Giter Site home page Giter Site logo

amara-fb-bot's Introduction

Amara - FB Messenger Bot

Facebook Messenger Bot

Amara is a Facebook Messenger bot. He can answer questions about 5 teams of the french football league (Paris, Lille, Monaco, Marseille, Lyon). The user intent is detected by DialogFlow, a Natural Language Processing plateform. Most of the answer are coming from a node.js application that provide information fetched from an API.

Features

Amara can answer the following topics:

  • Teams covered by Amara
  • General information about a team
  • Stadium of the team
  • Next game information
  • Previous match information
  • Team's ranking in Ligue 1
  • Roster and players

Demo

Demo.Bot.Amara.mp4

If you want to test the bot, feel free to contact me at [email protected] so I can add you Facebook Developer profil to the app testers.

Tech Stack

Server: Node, Express

Natural Language Processing: Google DialogFlow

Chat App: Facebook Messenger

API: api-football.com

Hosting: Vercel

Get started

Prerequisites

Before you begin, ensure you have the following prerequisites installed on your computer:

  • Node.js - JavaScript runtime.
  • Nodemon - (Assuming you have this installed globally).

Installation

Clone this repository

  git clone https://github.com/michaelrasolo/amara-fb-bot.git

Install the dependencies

  yarn install

Run the application

  nodemon

Deploy temporary the application on ngrok, and use the URL provided

  ngrok http 5000

Or deploy permanently on Vercel to get a fixed URL for your server.

DialogFlow

  • Create a DialogFlow agent and set up your bot's intents and entities.
  • Manage the integration with Facebook Messenger, using the token from your developers.facebook.com app. Documentation can be found here.
  • Set up the fullfillment using the URL of the server you deployed. Documentation for fullfillment and webhook can be found here.

Facebook Messenger

  • Create Facebook page.
  • Create an app on developers.facebook.com and link it to your Facebook page
  • Enable the product Messenger and generate a token.
  • Set up the webhook using your DialogFlow agent URL and verified token.

Environment Variables

To run this project, you will need to add an API key from api-football.com as environment variables to your .env file

FOOTBALL_API_KEY

amara-fb-bot's People

Contributors

michaelrasolo avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.