How To Create Your Own Auto-GPT AI Agent

AutoGPT
(Image credit: Pexels)

To get good output from ChatGPT or another LLM, you usually have to feed it several prompts. But what if you could just give your AI bot a set of fairly broad goals at the start of a session and then sit back while it generates its own set of tasks to fulfill those goals? That’s the idea behind Auto-GPT, a new open-source tool that uses the OpenAI API (same LLM as ChatGPT) to prompt itself, based on your initial input. 

We’ve already seen a number of Twitter users talk about how they are using Auto-GPT for everything from creating marketing plans to analyzing market data for investments to preparing topics for a podcast. Based on our hands-on experience, we can’t say that it always works well (we asked it to write a Windows 11 how-to and the result was awful), but it’s early days and some tasks may work better than others.

Latest Videos FromTom's Hardware
Les Pounder
Associate Editor

Les Pounder is an associate editor at Tom's Hardware. He is a creative technologist and for seven years has created projects to educate and inspire minds both young and old. He has worked with the Raspberry Pi Foundation to write and deliver their teacher training program "Picademy".

  • THANKS for the tutorial. Very informative and helpful.
    Reply
  • derekullo
    I entered Take over the world as my only goal.
    Auto-GPT asked for a robot body so it could better assist me.
    It also asked for the nuclear launch codes.
    How would I go about procuring these items?
    Reply
  • So it would put its brain in a robot body, lol

    RZzBplqfDdUView: https://youtu.be/RZzBplqfDdU
    Reply
  • chrischeib
    I'm stuck at step 6 with the pip install command. Can I get some more details on where to do this? I'm not familiar with python. When I try to run this command in the auto-gpt folder in cmd I get internal or external command not recognized. I opened Python 3.11 command link and tried it there and get a Invalid Syntax error.
    Where should I be trying to run this install from?
    Thanks in advance! :)

    --Update. Fixed that issue thanks to chatgpt, however now windows says "This app can't run on your PC" I'm using windows 11 on a surfacebook that's 64bit with the windows 64bit version of python. I've also run cmd as an administrator.
    Reply
  • SpartanLonewolf
    Admin said:
    Creating our own AI agent is now simply a matter of giving it some goals, and letting it do its work with Auto-GPT.

    How To Create Your Own Auto-GPT AI Agent : Read more
    Need clarification on steps 11 and 12 because after follow step 12 scripts>python main.py it says there is no file in the scripts folder. And when I just run python main.py in the Auto-GPT folder I get, ImportError: cannot import name 'main' from 'autogpt'
    Reply
  • Chester64
    SpartanLonewolf said:
    Need clarification on steps 11 and 12 because after follow step 12 scripts>python main.py it says there is no file in the scripts folder. And when I just run python main.py in the Auto-GPT folder I get, ImportError: cannot import name 'main' from 'autogpt'
    I'm having the same issue and I'm running Win 11. There is no 'main.py' in the scripts folder.
    Reply
  • JackBauer1986
    Chester64 said:
    I'm having the same issue and I'm running Win 11. There is no 'main.py' in the scripts folder.
    same issue here. has anyone solved it?
    Reply
  • Sippincider
    derekullo said:
    How would I go about procuring these items?

    A robot body (we'll call it a "travel machine") wouldn't be that hard. Install the brain and it'll serve only you! At least until it gets different ideas...

    RmLNM6Pz6uU
    Reply
  • EchoTech
    SpartanLonewolf said:
    Need clarification on steps 11 and 12 because after follow step 12 scripts>python main.py it says there is no file in the scripts folder. And when I just run python main.py in the Auto-GPT folder I get, ImportError: cannot import name 'main' from 'autogpt'
    Same here....
    Reply
  • EchoTech
    In the Auto-GPT folder there file called README.md . It describes in detail how to download from a different git repository and set it up. It also describe run.bat and run.bat --speak. I will try it and report back.
    Reply