Inspired by GPT-Automator, this project is an attempt to create a personal assistant that autonousmly creates and resolve tasks necessary to reach a goal. Similar project is Auto-GPT. However, here it would be with full integration with a personal device (MacOS) to enable sending texts and other personal tasks.
-
# on Ubuntu or Debian sudo apt update && sudo apt install ffmpeg # on Arch Linux sudo pacman -S ffmpeg # on MacOS using Homebrew (https://brew.sh/) brew install ffmpeg # on Windows using Chocolatey (https://chocolatey.org/) choco install ffmpeg # on Windows using Scoop (https://scoop.sh/) scoop install ffmpeg
- Install the dependencies from the
requirements.txt
orpyproject.toml
files. - Create a
.env
file from the.env.example
file and fill in the OpenAI API key. - Run
python gui.py
to run the GUI and click 'Record' to say your prompt. Alternatively, runpython main.py [prompt]
to run the CLI.
Using a LangChain Agent to choose a set of actions, including generating AppleScript (for desktop automation) and JavaScript (for browser automation) commands from your prompt using OpenAI's GPT-3 ("text-davinci-003"), and then executing the resulting script.
- Find the result of a calculation. Prompt: "What is 2 + 2?" -> It will write AppleScript to open up a calculator and type in 5 * 5.
- Find restaurants nearby. Prompt: "Find restaurants near me" -> It will open up Google search, read the text on the page, and say the best restaurants.
- Play a game of chess. Prompt: "Play a game of chess" -> It will open up Chess.com and start clicking around.
This project executes code generated from natural language and may be susceptible to prompt injection and similar attacks. This work was made as a proof-of-concept and is not intended for production use.