Skip to content

An experiment to give an autonomous GPT agent access to a browser and have it accomplish tasks

Notifications You must be signed in to change notification settings

id-2/gpt-assistant-access

 
 

Repository files navigation

GPT Assistant

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:

Examples

"go to the qwik repo readme and add 'steve is awesome'"
Gif example
"Book me a table for 3 at 8pm for indian food" "What dog breed is best for me"
Gif example Gif example 2

Setup

Requirements

Clone the repo

git clone https://github.com/BuilderIO/gpt-assistant.git
cd gpt-assistant

Install dependencies

npm install

Create a .env file

Copy the .env.example file to .env

cp .env.template .env

Add your OpenAI API key

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

Add a Postgres database URL

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

Generate the tables

You can prisma migrate to generate the tables in your database.

npx prisma migrate dev --name init

Run

# Run the dev server
npm run dev

Now, go enter a prompt for the assistant, and let it run!

Contributing

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!

Community

Come join the Builder.io discord and chat with us over in the #gpt-assistant channel



Made with love by Builder.io

About

An experiment to give an autonomous GPT agent access to a browser and have it accomplish tasks

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 96.5%
  • JavaScript 2.3%
  • Other 1.2%