EricMcWinNer / ai-prompter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AI-PROMPTER 🤖⏱

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.

Integrated Systems

  • 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.

Installation Steps

  1. Fork the project
  2. Clone the project locally
  3. Create a Google App and an OpenAI account to receive the credentials needed to run the project
  4. Choose an email that would be the sender of prompts
  5. Replace the details in the .env.example file with your own OpenAI credentials and Google App credentials
  6. Run the express application and click the button on the page to grant OAuth access to the email account chosen as the sender
  7. Run node send-text.js in your terminal to see a message being sent
  8. Create a crontab to periodically run node send-text.js whenever you want either on a server or your system

About


Languages

Language:JavaScript 91.5%Language:Pug 6.0%Language:CSS 1.6%Language:Shell 0.8%