Welcome to the WhatsApp AI Bot! This project leverages the power of Node.js, wwebjs.dev, and OpenAI's GPT-4 model to create an intelligent and versatile chatbot for WhatsApp.
- AI-Powered Conversations: Integrates OpenAI's GPT-4 model to provide intelligent and context-aware responses.
- WhatsApp Integration: Uses wwebjs.dev to seamlessly connect with WhatsApp.
- Versatile Use Cases: Can be adapted for various purposes, including customer support, personal assistance, and more.
- Node.js: JavaScript runtime built on Chrome's V8 JavaScript engine.
- wwebjs.dev: WhatsApp Web API for creating WhatsApp bots.
- OpenAI GPT-4: Advanced language model for generating human-like text responses.
-
Clone the repository:
git clone https://github.com/mchamoudadev/whatsapp-ai-bot.git cd whatsapp-ai-bot
-
Install dependencies:
npm install
-
Set up environment variables: Create a
.env
file in the root directory and add your OpenAI API key and other necessary configurations.OPENAI_API_KEY=your_openai_api_key
-
Start the bot:
node index.js
-
Scan the QR code: Open WhatsApp on your phone, go to Settings > WhatsApp Web, and scan the QR code displayed in the terminal.
-
Interact with the bot: Start chatting with your WhatsApp bot and experience the power of AI-driven conversations.