JoseHenriqueSiqueira / Whatsapp_Instagram_Messanger_ChatGPT_OpenAI

This repository showcases a ChatBot integrated with WhatsApp, using OpenAI API (such as ChatGPT). With it, you can interact with a highly trained language model to answer your questions and perform specific tasks quickly and efficiently. Don't miss the opportunity to experience cutting-edge AI technology directly on your WhatsApp.
MIT License
131 stars 43 forks source link

WhatsApp, Instagram and Messenger ChatBot using OpenAI API

This repository showcases a ChatBot integrated with WhatsApp, Instagram and Messenger, using OpenAI API (such as ChatGPT). With it, you can interact with a highly trained language model to answer your questions and perform specific tasks quickly and efficiently. Don't miss the opportunity to experience cutting-edge AI technology directly on your WhatsApp, Instagram or Messenger.

Preview

WhatsApp

Connect your whatsapp web.

Wait for the messages to synchronize, after that the last message from the user will be read and a response will be returned.

Instagram

Instagram Login

Bot working

Messenger

Messenger Login

Bot working

Getting Started

To get started with the Whatsapp Bot, Instagram and Messenger(Facebook), you will need to clone this repository and have Python 3 installed on your system.

Prerequisites

To run this project, you will need to have the following dependencies installed:
• selenium
• subprocess
• time
• sys
• webdriver_manager
• openai

Installing Dependencies

To install the dependencies, simply run the following command:

 $ pip install -r requirements.txt

Running the WhatsappBot

To run the WhatsappBot, navigate to the cloned repository and run the following command:

 $ python WhatsappBot.py <phone_number> <api_key>

Where is the target phone number and is your OpenAI API key.

Running the InstagramBot

To run the InstagramBot, navigate to the cloned repository and run the following command:

 $ python InstagramBot.py <user> <api_key>

Where is the user target and is your OpenAI API key.

Running the MessengerBot

To run the MessengerBot, navigate to the cloned repository and run the following command:

 $ python MessengerBot.py <user> <api_key>

Where is the user target and is your OpenAI API key.

Documentation

Built With

Python 3.9.X - The programming language used
Selenium - The web automation framework used
ChromeDriver - The web driver used for automating Google Chrome
OpenAI - The AI language model used for the bot's conversation.

Contributing

If you would like to contribute to this project, feel free to open a pull request with your changes.

Authors

José Henrique da Silva Siqueira

License

This project is licensed under the MIT License.

Acknowledgements

OpenAI - For providing the AI language model used in this project.