This project generates quirky personalized Twitter greetings using AI.
This project uses the ChatGPT API and Vercel Edge functions with streaming. It queries a Twitter users recent tweets and then, based on the form and user input, sends the data to the chatGPT API via a Vercel Edge function and streams a custom personalized tweet greeting back to the application.
Thanks to @nutlope and his twitterbio project for the inspiration and the code for the OpenAI API edge connection.
After cloning the repo, go to OpenAI to make an account and put your API key in a .env
file. You'll also need to add your Twitter API keys to the .env
file. You can get those here.
Then, run the application in the command line and it will be available at http://localhost:3000
.
yarn run dev