Skip to content

OpenAI-powered WhatsApp chatbot. Uses whatsapp-web.js and OpenAI API. Have natural conversations or build creative projects.

Notifications You must be signed in to change notification settings

ankitRay1/whatsapp-openai-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WhatsApp Bot

This is a WhatsApp bot that uses the OpenAI API to generate responses to incoming messages. It is built with whatsapp-web.js and openai.

Prerequisites

  • Node.js
  • A WhatsApp account
  • An OpenAI API key

Getting Started

  1. Clone this repository
  2. Run npm install to install the dependencies
  3. Create a .env file in the root directory and add your OpenAI API key: OPENAI_API_KEY=your_api_key_here
  4. Run node server.js to start the bot
  5. Scan the QR code that appears in the terminal with your WhatsApp account

Usage

The bot will respond to any message that it receives. Try sending it a message and see what it says!

Disclaimer

Please use this bot responsibly. Do not spam or misuse it, as this may result in your WhatsApp account being banned.

About

OpenAI-powered WhatsApp chatbot. Uses whatsapp-web.js and OpenAI API. Have natural conversations or build creative projects.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published