ThankfulThoughts is a web application that allows users to input a person, place, or thing, and generates a sentence of gratitude in return. It's a simple yet powerful tool to help users express gratitude and positive thoughts towards the things they are thankful for.
This project uses the OpenAI GPT-3 API (specifically, text-davinci-003). It asks a user to select from a dropdown a person, place or thing as an input. Then asks from the name. Then sends it to the GPT-3 API and sends the response back to the application.
After cloning the repo, go to OpenAI to make an account and put your API key in a file called
Then, run the application in the command line and it will be available at
npm install npm run dev
Deploy the example using Vercel:
- Make sure to include environment variable in Vercel Environmental Veriables