Skip to content

Key Opinion Leader (KOL) Artificial Intelligence (AI) assistant designed specifically for WhatsApp. The AI assistant is capable of automatically responding to messages using LLM, and it also provides users with the flexibility to switch between automatic AI responses and manual response mode.

Notifications You must be signed in to change notification settings

bayesianinstitute/KOL_Chat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

80 Commits
 
 
 
 
 
 

Repository files navigation

KOL Application

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.

Prerequisites

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.

Technology Stack

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.

Feature: Key Opinion Leader (KOL) (AI) Assistant

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.

Key Features:

  1. Automatic Message Responses: The AI assistant can automatically respond to incoming messages using advanced language processing capabilities.

  2. Manual Response Mode: Users have the option to switch to manual response mode, allowing them to personally engage with their contacts when desired.

  3. Scheduling Messaging: The AI assistant supports scheduling messages, enabling users to plan and send messages at specific times, enhancing communication efficiency.

Environment Variables

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.

Running Locally

To run the project on your local machine, follow these steps:

1. Clone the Project

Clone the repository to your local machine using the following command:

git clone https://github.com/bayesianinstitute/KOL_Chat.git

2. Start Backend

Navigate to the server directory:

cd KOL_Chat/server

Install dependencies:

npm install

Start the backend:

npm run demo

3. Connect WhatsApp Api with Our Backend

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

3. Start Frontend

Navigate to the client directory:

cd KOL_Chat/frontend

Install dependencies:

npm install

Start the frontend:

npm run dev

About

Key Opinion Leader (KOL) Artificial Intelligence (AI) assistant designed specifically for WhatsApp. The AI assistant is capable of automatically responding to messages using LLM, and it also provides users with the flexibility to switch between automatic AI responses and manual response mode.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published