Skip to content
This repository has been archived by the owner on Mar 25, 2023. It is now read-only.

The ChatGPT application via Facebook Messenger is a chatbot built on the GPT model, allowing users to ask questions and receive automatic responses from the chatbot.

Notifications You must be signed in to change notification settings

dipperpinees/facebook-chat-bot-gpt

Repository files navigation

Chatbot GPT via Facebook Messenger

This is a chatbot application that uses the GPT model to answer user's questions through Facebook Messenger.

The application uses the facebook-chat-api library to log in to Facebook and listen for messages and chatgpt-api library to use ChatGPT api.

Getting Started

Prerequisites

  • Docker
  • Node.js

Installation

  1. Clone the repository:
  git clone https://github.com/hiepnguyen223/facebook-chat-bot-gpt.git
  cd facebook-chat-bot-apt 
  1. Create .env file"
  cp .env.example .env
  //Set your environment variables in the .env file:
  FACEBOOK_ID='...'
  FACEBOOK_NAME='...'
  OPENAI_API_KEY='...'
  1. Create cookies.json (Facebook Cookies) file:
  cp cookies.example.json cookies.json
  1. Build the docker image:
  docker build -t chat-bot-gpt .
  1. Run docker image as a container:
  docker run chat-bot-gpt

About

The ChatGPT application via Facebook Messenger is a chatbot built on the GPT model, allowing users to ask questions and receive automatic responses from the chatbot.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published