Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/builderio/gpt-assistant
An experiment to give an autonomous GPT agent access to a browser and have it accomplish tasks
https://github.com/builderio/gpt-assistant
Last synced: 3 months ago
JSON representation
An experiment to give an autonomous GPT agent access to a browser and have it accomplish tasks
- Host: GitHub
- URL: https://github.com/builderio/gpt-assistant
- Owner: BuilderIO
- Created: 2023-04-10T01:36:12.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-04-26T18:14:09.000Z (over 1 year ago)
- Last Synced: 2024-08-01T13:36:51.234Z (3 months ago)
- Language: TypeScript
- Homepage:
- Size: 196 KB
- Stars: 504
- Watchers: 12
- Forks: 59
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-ChatGPT-repositories - gpt-assistant - An experiment to give an autonomous GPT agent access to a browser and have it accomplish tasks (Browser-extensions)
README
# GPT Assistant
An experiment to give an autonomous GPT agent access to a browser and have it accomplish tasks.
Built with [Qwik](https://qwik.builder.io/) and [Puppeteer](https://github.com/puppeteer/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'" |
| --------------------------------------------------------------------------------------------------------------------------------- |
| || "Book me a table for 3 at 8pm for indian food" | "What dog breed is best for me" |
| --------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------ |
| | |## Setup
### Requirements
- Node.js 14+
- [OpenAI API key](#add-your-openai-api-key)
- [Postgres database](#add-a-postgres-database-url)
- Access to GPT-4### Clone the repo
```bash
git clone https://github.com/BuilderIO/gpt-assistant.git
cd gpt-assistant
```### Install dependencies
```bash
npm install
```### Create a `.env` file
Copy the `.env.example` file to `.env`
```bash
cp .env.template .env
```### Add your OpenAI API key
Retrieve your API key from [OpenAI](https://platform.openai.com/account/api-keys) 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.
```diff
+ 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](https://supabase.io/) if needed.
```diff
+ DATABASE_URL=postgres://user:password@host:port/database
```### Generate the tables
You can [prisma migrate](https://www.prisma.io/docs/getting-started/setup-prisma/start-from-scratch/relational-databases/using-prisma-migrate-typescript-postgres) to generate the tables in your database.
```bash
npx prisma migrate dev --name init
```## Run
```bash
# 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](https://discord.gg/EMx6e58xnw) and chat with us over in the `#gpt-assistant` channel