Coder Social home page Coder Social logo

mehnoorsiddiqui / whatsapp-dalle-gpt-bot Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 1.0 3.35 MB

A conversational, voice-enabled, multilingual WhatsApp bot that can generate both text and image responses using APIMatic auto-generated SDKs for WhatsApp and OpenAI APIs.

JavaScript 17.39% TypeScript 82.61%
chatgpt apimatic dall-e speech-to-text whatsapp whisper speech-to-image openai speech-recoginition

whatsapp-dalle-gpt-bot's Introduction

WhatsApp Chatty Dalle

WhatsApp Chatty Dalle

How it works

A conversational, voice-enabled, multilingual WhatsApp bot that can generate both text and image responses using APIMatic auto-generated SDKs for WhatsAppand OpenAI APIs.

Language and Model are the two reserved words that the user can send to the bot for switching between desired language and AI model.

Running Locally

Cloning the repository the local machine.

git clone https://github.com/mehnoorsiddiqui/whatsapp-chatty-dalle.git

Creating a account on Meta to get an API key.

  1. Go to Meta to make a developer account.
  2. Create an App by following the getting started guide.
  3. You can find your Access token from the Meta for Developers site App Dashboard > WhatsApp > Getting Started.

Creating an OpenAI account to get an API key.

  1. Go to the OpenAI website and sign up by filling out the registration form.
  2. Navigate to the API keys tab in your dashboard and generate a new API key.

Setting up Webhook URL

To set up webhook on the Meta Developer portal (also enter matching verify token). You may use a service like ngrok to make your local app publicly accessible so this webhook can be registered with Whatsapp. [Webhook]

Setting up the .env file

  • Rename the .env.example to .env.
  • Replace the WHATSAPP_TOKEN with your token in the .env file.
  • Replace the PHONE_NUMBER_ID with yours in the .env file.
  • Replace the VERIFY_TOKEN with yours in the .env file.
  • Replace the OPENAI_API_KEY with yours in the .env file.

Installing the dependencies.

  1. Navigate to the OpenAI+API directory and run
npm install
  1. Navigate to the WhatsApp+Cloud+API directory and run
npm install
  1. Navigate to the root folder and run
npm install

Running the application.

Then, run the application in the command line and it can be tested by sending an audio message to test number given in the developer account.

npm start

whatsapp-dalle-gpt-bot's People

Contributors

mehnoorsiddiqui avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

mrjuice01

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.