Create a Basic Agent
Overview
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.
Example Agent: Q&A (with AI)
A step-by-step guide to creating a simple Q&A agent using input and output blocks.
Components Required
Input Block
AI Text Generator Block
Output Block
Step-by-Step Instructions
1. Set Up the Basic Structure
Add an Input Block
Add an AI Text Generator Block
Add an Output Block
2. Connect the Components
Connect the Input Block to the AI Text Generator's Prompt
Connect the AI Text Generator's response to the Output Block's value
3. Configure Block Names
Name the Input Block: "question"
Name the Output Block: "answer"
4. Save the Agent
Click the Save button
Name your agent (e.g., "question and answer")
5. Test the Agent
Click the Run button
Enter a question in the input field (e.g., "How far is Earth from Pluto?")
View the results through either:
The "View More" option
The "Agent Outputs" section
Viewing Results
You can access the AI's response in two ways:
Click "View More" for detailed results
Check the "Agent Outputs" section for the response
Example Agent: Calculator (without AI)
A step-by-step guide to creating a simple calculator agent using input and output blocks.
Components Required
Input Block (2 instances)
Calculator Block
Output Block
Setup Instructions
1. Adding Input Blocks
Add two input blocks, positioned one below the other
Name the first input block "a"
Name the second input block "b"
2. Adding Calculator Block
Add a calculator block to your workspace
Position it after the input blocks
3. Adding Output Block
Add an output block
Name it "results"
4. Connecting the Blocks
Connect the "a" input block to the "a" input on the calculator block
Connect the "b" input block to the "b" input on the calculator block
Connect the calculator block's result to the value input of the output block
5. Saving Your Agent
Name your agent (e.g., "Simple Calculate Agent")
Save the configuration
Testing Your Calculator
Running Calculations
Enter values in both input blocks
Select the desired operation (e.g., multiply)
Click the "Run" button to execute the calculation
Viewing Results
There are two ways to view the calculation results:
Click "View More" to see the detailed output
Check the "Agent Outputs" section, which displays results from the output block
Example Calculation
Input A: 227
Input B: 17
Operation: Multiply
Expected output will be shown in the results section
Tips
Always save your agent after making changes
Verify all connections are properly made before running
Use the "View More" option for detailed output information
Note
While these are basic example, you can enhance the agent with additional blocks and functionality to create more complex interactions.
Last updated
Was this helpful?