An experiment to give an autonomous GPT agent access to a browser and have it accomplish tasks.
Built with Qwik and Puppeteer.
You can see it in action below in these two video examples, with a description of how it works:
"go to the qwik repo readme and add 'steve is awesome'" |
---|
"Book me a table for 3 at 8pm for indian food" | "What dog breed is best for me" |
---|---|
- Node.js 14+
- OpenAI API key
- Postgres database
- Access to GPT-4
git clone https://github.com/BuilderIO/gpt-assistant.git
cd gpt-assistant
npm install
Copy the .env.example
file to .env
cp .env.template .env
Retrieve your API key from OpenAI and add it to the .env
file as OPENAI_KEY
Note: If you haven't already, you'll have to create an account and set up billing.
+ OPENAI_KEY=sk-...
In .env
add a Postgres database URL it as DATABASE_URL
. YOu can easily set one up with supabase if needed.
+ DATABASE_URL=postgres://user:password@host:port/database
You can prisma migrate to generate the tables in your database.
npx prisma migrate dev --name init
# Run the dev server
npm run dev
Now, go enter a prompt for the assistant, and let it run!
If you want to help fix a bug or implement a feature, don't hesitate to send a pull request!
Just know that these are the very early days of this project, documentation is sparse, and the code is a bit messy. We're working on it!
Come join the Builder.io discord and chat with us over in the #gpt-assistant
channel