docs/platform/create-basic-agent.md
This guide walks through creating a simple question-answer AI agent using AutoGPT's visual builder. This is a basic example that can be expanded into more complex agents.
If you're using the cloud-hosted version at agpt.co, you're ready to go! AI blocks come with built-in credits — no API keys required to get started. If you'd prefer to use your own API keys, you can add them via Profile → Integrations.
If you're running AutoGPT locally with Docker, you'll need to add your own API keys to autogpt_platform/backend/.env:
# Create or edit backend/.env
OPENAI_API_KEY=sk-your-key-here
ANTHROPIC_API_KEY=sk-ant-your-key-here
# Add other provider keys as needed
After adding keys, restart the services:
docker compose down && docker compose up -d
Note: The Calculator example below doesn't require any API credentials — it's a good way to test your setup before adding AI blocks.
A step-by-step guide to creating a simple Q&A agent using input and output blocks.
<center><iframe width="560" height="315" src="https://www.youtube.com/embed/ih57vRbH0H0?si=PGHx_qquYpXofiu_" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe></center>You can access the AI's response in two ways:
A step-by-step guide to creating a simple calculator agent using input and output blocks.
<center><iframe width="560" height="315" src="https://www.youtube.com/embed/ESLKHcXxRvA?si=i2L2sloLskSMO8_I" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe></center>##Components Required
There are two ways to view the calculation results:
While these are basic example, you can enhance the agent with additional blocks and functionality to create more complex interactions.