GithubHelp home page GithubHelp logo

aquari93 / llm-for-whatsapp Goto Github PK

View Code? Open in Web Editor NEW

This project forked from iongpt/llm-for-whatsapp

0.0 0.0 0.0 292 KB

WhatsApp client with LLM integration. It support OpenAI API and also local LLMs

License: MIT License

JavaScript 85.55% CSS 6.36% HTML 8.08%

llm-for-whatsapp's Introduction

LLM for WhatsApp

Description

LLM for WhatsApp is an application designed to automate responses to WhatsApp messages using an LLM. I created this for fun and to engage with and potentially wasting the time of scammers. I have used it several times when I was approach by scammers and was a blast. In the end, my goal is to have my phone number banned on all scamming lists, marked as "useless". Of course can be used for any kind of autoresponding needs, it has fully customizable system prompt and list of contacts to interacat with.

Please note that LLM for WhatsApp is using whatsapp.js that is using automation on the Whatsapp web client, a method that is not officially supported by Meta. For any business purposes, it is recommeded to apply for business API access and use the Whatsapp business API instead of this.

The application integrates with OpenAI's models via API or any custom LLM that's compatible with OpenAI's API interface. For a very quick setup, I recommend Oobabooga with OpenAI extension and as a model, for English, I recommend Mistral 7B.

Features

  • Automated responses to WhatsApp messages.
  • Support for OpenAI API via API key.
  • Support for custom LLMs for complete privacy.
  • Customizable for various scenarios where automated messaging via Whatsapp are required.
  • Start it for any contact or group and let LLM to continue conversation.
  • Give directions to the LLM via the customizable system prompt

Getting Started

Prerequisites

Before you can run or build LLM for WhatsApp, ensure you have the following installed:

  • Node.js
  • Yarn package manager

Installation

  1. Clone the repository:

    git clone https://github.com/iongpt/LLM-for-Whatsapp.git
  2. Navigate to the application directory:

    cd LLM-for-Whatsapp
  3. Install the necessary packages:

    yarn install
  4. Run the preinstall script for extra libraries defined in the app folder:

    yarn run preinstall
  5. Rename app/settings.json.example to app/settings.json

Usage

Running in Development Mode

To run the application in development mode:

yarn run dev

Building the Application

You can build the application for various operating systems using the following commands:

  • For Windows:

    yarn run build:win
  • For macOS (Intel):

    yarn run build:osx
  • For macOS (M1):

    yarn run build:osxm1
  • For Linux (x64):

    yarn run build:linux
  • For Linux (32-bit):

    yarn run build:linux32
  • For Linux (ARMv7l):

    yarn run build:linuxarmv7l

After application starts

  • Authorize Whatsapp client by scanning the QR code with the phone
  • Go to the LLM Setting menu (in the top menu bar) select Settings and fill the config in the window (either OpenAI API key, eitther URL for local LLM API)

Contributing

Contributions to LLM for WhatsApp are welcome. Please read the CONTRIBUTING.md file for guidelines on how to contribute.

Issues

If you encounter any issues or have feature suggestions, please submit them to the issues page.

License

This project is licensed under the MIT License - see the LICENSE.md file for details.

Author

Developed by IonGPT.


llm-for-whatsapp's People

Contributors

iongpt avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.