Giter Site home page Giter Site logo

ronald785 / chatgpt-whatsapp Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 14 KB

Este projeto utiliza JavaScript, MongoDB, LangChain e OpenAI para criar uma aplicação poderosa que integra o ChatGPT com o WhatsApp.

License: MIT License

JavaScript 100.00%
ai chatgpt langchain openai whatsapp-web-js

chatgpt-whatsapp's Introduction

ChatGPT-WhatsApp

Descrição   |    Iniciar Projeto   |    Contate-me   |    Licença

📚 Descrição

Bem-vindo ao repositório de Integração ChatGPT-WhatsApp! Este projeto utiliza JavaScript, MongoDB, LangChain e OpenAI para criar uma aplicação poderosa que integra o ChatGPT com a plataforma WhatsApp.

👷 Iniciar projeto

#Copie o repositório
$ git clone https://github.com/Ronald785/chatGPT-WhatsApp

#Acesse o diretório do projeto
$ cd chatGPT-WhatsApp

#Instale as dependências
$ npm install

#Acesse o mongoDB Atlas e crie um database "whatsapp-ia" com 2 collections "chat_histoy" e "contact"

#Substitua as variáveis do arquivo .env
#Acesse o script RemoteAuth.js do node_modules
$ Caminho: node_modules/whatsapp-web.js/src/authStrategies/RemoteAuth.js

#Acesse o diretório no terminal
$ cd node_modules/whatsapp-web.js/src/authStrategies

#Instale adm-zip
$ npm install adm-zip

#Adicione no inicio do script
$ var AdmZip = require("adm-zip");

#Encontre a função unCompressSession e substitua pelo código abaixo
async unCompressSession(compressedSessionPath) {
    await new Promise((resolve, reject) => {
        const zip = new AdmZip(compressedSessionPath);
        zip.extractAllToAsync(this.userDataDir, true, false, (err) => {
            if(err)
            { reject(err); }
            else
            { resolve(); }
        });
    });
    await fs.promises.unlink(compressedSessionPath);
}
#Acesse a raiz do projeto /chatGPT-WhatsApp e inicie o app
$ npm start

📬 Contate-me

Linkedin icon   Gmail icon

📝 Licença

Lançado em 2023, 📝 Licença MIT

chatgpt-whatsapp's People

Contributors

ronald785 avatar

Stargazers

 avatar  avatar

Watchers

 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.