This is a prototype for a node.js project that integrates Open AI's GPT-3 to allow the system periodically send prompts. It was initially built as a joke AI girlfriend that sent love messages periodically every morning, but it can be adapted to send any information at all periodically by changing the prompt.
- Google's API It uses Google's OAuth system and Gmail API to send emails to a user.
- OpenAI's GPT-3 It uses this to generate text based on a randomly selected list of JSON prompts.
- Crontab It uses a crontab on a server or even a laptop to periodically send the mails at the time the user chooses.
- Fork the project
- Clone the project locally
- Create a Google App and an OpenAI account to receive the credentials needed to run the project
- Choose an email that would be the sender of prompts
- Replace the details in the .env.example file with your own OpenAI credentials and Google App credentials
- Run the express application and click the button on the page to grant OAuth access to the email account chosen as the sender
- Run
node send-text.js
in your terminal to see a message being sent - Create a crontab to periodically run
node send-text.js
whenever you want either on a server or your system