VFBOT-GPT is a chatbot that uses the GPT (Generative Pre-trained Transformer) model from OpenAI to provide responses to user messages in a chat conversation. This chatbot is developed using the @open-wa/wa-automate and openai libraries.
- Receives messages from users and provides responses using the GPT model from OpenAI.
- Uses previous context in the conversation to generate more contextual responses.
- Estimates processing time and provides an initial response to the user.
- Saves context and user data to a JSON file for use in subsequent conversations.
- Uses the GPT model trained by OpenAI, providing more natural and contextual responses.
- Can be integrated with WhatsApp using the @open-wa/wa-automate library, enabling it to be used as a virtual assistant in chat conversations.
- Can store and remember previous context in the conversation, providing a smoother conversational experience.
Make sure you have made the necessary configuration
{
"apiKey": "YOUR_OPENAI_APIKEY"
}
Change the apikey configuration in config.json
according to the ApiKey OpenAi you have. If you don't have it, you can get here by registering an account
- Make sure you have Node.js and npm (Node Package Manager) installed on your computer.
- Clone this repository to your computer.
- Open a terminal or command prompt and navigate to the cloned repository directory.
- Run the command
npm install
to install all required dependencies. - Run the command
npm run vf
to start the VFBOT-GPT chatbot. - Open WhatsApp on your device and scan the QR code that appears to log in to WhatsApp Web using VFBOT-GPT.
- Start sending messages with the "vfbot" prefix on WhatsApp to interact with VFBOT-GPT.
(example:vfbot Hello, can you help me with math?
)
Make sure to understand and comply with the terms and conditions of using the OpenAI API when using the VFBOT-GPT chatbot.
References:
- @open-wa/wa-automate library: https://github.com/open-wa/wa-automate-nodejs