GithubHelp home page GithubHelp logo

marcomafessolli / whatsapp-chatgpt Goto Github PK

View Code? Open in Web Editor NEW

This project forked from askrella/whatsapp-chatgpt

1.0 0.0 0.0 318 KB

ChatGPT + DALL-E + Whatsapp = AI Assistant :rocket:

TypeScript 97.05% Dockerfile 2.95%

whatsapp-chatgpt's Introduction

ChatGPT + DALL-E + Whatsapp = AI Assistant ๐Ÿš€

Whatsapp bot that uses OpenAI's GPT & DALLE to respond to user inputs.

GPT Example

Example

Dalle Example

Example

Requirements

  • Node.js
  • A recent version of npm
  • An OpenAI Account

.env File example

OPENAI_API_KEY=put_your_key_here

PREFIX_ENABLED=false

Installation

  1. Clone this repository
  2. Install the required packages by running npm install
  3. Put your OpenAI API Key into the .env File (OPENAI_API_KEY)
  4. Run the bot using npm run start
  5. Scan the QR Code with Whatsapp (Link a device)
  6. Now you're ready to go, people can send you messages and the bot will respond to them.

Docker

docker build . -t [image-name]

Usage

To use the bot, simply send a message with the !gpt/!dalle command followed by your prompt. For example:

GPT:

  • !gpt What is the meaning of life?

DALLE:

  • !dalle A frog with a red hat is walking on a bridge.

The bot only responds to messages that are received by you, not sent by you.

Disable prefix

You can disable the !gpt prefix by setting PREFIX_ENABLED to false in the .env file.

If you disable the prefix, the bot will not support DALLE and only GPT will be used.

Disclaimer

The operations performed by this bot are not free. You will be charged by OpenAI for each request you make.

Contributors

Used libraries

whatsapp-chatgpt's People

Contributors

marcomafessolli avatar navopw avatar rishabhg71 avatar

Stargazers

 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.