Batibot
ChatGpt in your messenger app!
🛠 Set Up
-
Install and use the correct version of Node using NVM (Node Version Manager)
nvm install 16.9.1 nvm use 16.9.1
-
Install PNPM (a Javascript package manager)
- Using Homebrew
brew install pnpm
- Using npm
npm install -g pnpm
- Using Homebrew
-
Install dependencies
pnpm install
-
Create a
.env
file- Generate an OPENAI API key -> https://platform.openai.com/account/api-keys
- Create a Facebook Developer account, create an app and generate an access token -> https://developers.facebook.com/apps/?show_reminder=true
- Create an account on Supabase and create a new project -> https://supabase.com/dashboard/projects
PORT=8000 PAGE_ACCESS_TOKEN=<GENERATED_FB_PAGE_ACCESS_TOKEN> PAGE_SENDING_ID=<YOUR_PAGE_SENDING_ID> VERIFY_TOKEN=<YOUR_CUSTOM_VERIFY_TOKEN> // can be a random string OPENAI_API_KEY=<OPENAI_API_KEY> SUPABASE_URL=<SUPABASE_PROJECT_URL> SUPABASE_API_KEY=<SUPABASE_SECRET_KEY>
-
Start the development server
pnpm dev