The KOL Chat Application facilitates communication between celebrities and their friends and fans through a chat interface. This document serves as a comprehensive guide to understanding the application's functionality, architecture, and usage.
Before you begin, ensure that you have the following prerequisites installed on your development machine:
- Node.js & NPM: Download and install from here.
- MongoDB: Download and install from here.
- Git: Download and install from here.
The application is built using the MERN stack (MongoDB, Express.js, React.js, Node.js) for both frontend and backend development. Real-time communication between the client and server is facilitated by Socket.IO. Additional technologies include React, Redux,RTK Query for frontend development, and npm or yarn for package management. MongoDB Atlas is utilized for cloud-based MongoDB database hosting.
The KOL Chat Application includes AI assistant designed specifically for WhatsApp. This AI assistant is capable of automatically responding to messages using Large Language Models (LLM), providing users with efficient communication management. Additionally, it offers the flexibility to switch between automatic AI responses and manual response mode, empowering users to tailor their communication approach as needed.
-
Automatic Message Responses: The AI assistant can automatically respond to incoming messages using advanced language processing capabilities.
-
Manual Response Mode: Users have the option to switch to manual response mode, allowing them to personally engage with their contacts when desired.
-
Scheduling Messaging: The AI assistant supports scheduling messages, enabling users to plan and send messages at specific times, enhancing communication efficiency.
To run this project locally, you'll need to set up environment variables.
Create a .env
file in both the server and client directories. You can refer to .env.example
in the server and client directory for guidance.
You'll also need to obtain the WhatsApp webhook information from here.
To run the project on your local machine, follow these steps:
Clone the repository to your local machine using the following command:
git clone https://github.com/bayesianinstitute/KOL_Chat.git
Navigate to the server directory:
cd KOL_Chat/server
Install dependencies:
npm install
Start the backend:
npm run demo
Package used: https://github.com/tawn33y/whatsapp-cloud-api?tab=readme-ov-file
Follow this Tutorial : https://github.com/tawn33y/whatsapp-cloud-api/blob/main/TUTORIAL.md#3-setting-up-ngrok
ngrok http 5000
Navigate to the client directory:
cd KOL_Chat/frontend
Install dependencies:
npm install
Start the frontend:
npm run dev