GithubHelp home page GithubHelp logo

imasimali / what-gpt Goto Github PK

View Code? Open in Web Editor NEW
16.0 2.0 7.0 58 KB

Whatsapp bot for GPT-3 & DALL-E. Made with WhatsApp Web, Firebase and OpenAI.

License: Apache License 2.0

JavaScript 100.00%
bot api dall-e gpt-3 open-ai venom-bot whatsapp whatsapp-bot

what-gpt's Introduction

What-GPT

This bot allows users to interact with ChatGPT & DALL-E via WhatsApp text messages, providing automated responses based on their questions, and commands with message history saved on Firebase Realtime Database. It allows to generate images with Dall-E with prompts given inside whatsapp. It also allows to set the personality of bot to Funny, Genius or anything you like.

Deploy on Heroku

Deploy on Railway

Technologies

Run the project

Clone this project with the command:

  git clone https://github.com/imasimali/what-gpt.git

Get OpenAI api key for .env from OpenAI.

Go to the .env.example file and rename it to .env, and change the necessary values ​​for it to work.

Now install the project dependencies with the command:

  npm install

Finally run the command below to start the project and read the QR Code with your Whasapp to connect with the service.

  npm start

Optional (Save Message History on Firebase):

Create a Firebase Project. Goto Realtime Database and Create it. Copy the Database URL from Project Settings. Use the following rules for Firebase Realtime Database to allow access and prevent deletion.

  {
    "rules":{
        ".read":false,
        ".write":false,
        "$phone":{
          ".read":true,
          ".write":"newData.exists()"
        }
    }
  }

what-gpt's People

Contributors

imasimali avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

what-gpt's Issues

gpt-3.5-turbo

Is it possible to upgrade this to use gpt-3.5-turbo and the chat completion endpoint?

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.