| title | Quickstart |
|---|---|
| description | Create your first agent and run it in minutes. |
| icon | rocket |
This guide will walk you through creating your first agent and running it on the Ag.dev platform. You'll learn the basic workflow, from creating an account to seeing your agent in action.
First, head over to console.ag.dev to sign up for a new account or log in if you already have one. Once you're in, you'll land on the main agents dashboard.
Let's build your first agent. We'll use the UI to configure and create it.
Click the **"Create Agent"** button on the agents page. This will open the agent configuration drawer. Here, you'll define what your agent is, what it should do, and what tools it can use.- **Name**: Give your agent a descriptive name, like "Research Assistant".
- **Goal**: This is the most important part. Be specific about what you want your agent to accomplish. For example:
```text
Research {{ topic }} and provide a comprehensive summary with key findings, recent developments, and relevant statistics. Include credible sources for all information.
```
<Note>The `{{ topic }}` placeholder lets you dynamically provide a topic when you run the agent.</Note>
- **Input Schema**: Define the data your agent will receive using JSON schema. For our research assistant, we need a `topic`:
```json
{
"type": "object",
"properties": {
"topic": {
"type": "string",
"description": "The research topic or question to investigate"
}
},
"required": ["topic"]
}
```
- **Tools**: Select the tools your agent needs to achieve its goal. For research, you'll want to enable **Web Search** and **Browse Website**.
For your first agent, you can leave the **Advanced Settings** like Model Stack and Webhook URL as they are.
Now that you have an agent, let's give it a task to perform.
On the agent details page, click the **"New Run"** button. A form will appear with fields based on the input schema you defined. For our example, you'll see a "Topic" field. Let's enter: "Artificial Intelligence in Healthcare". Click **"Create Run"** to start your agent. You'll be taken to the run details page where you can see it work in real-time.On the run details page, you can watch your agent as it executes the task. The Events tab displays a live timeline of everything the agent does:
- Run Started: Shows the initial inputs.
- Reasoning: See the agent's thought process and plans.
- Tool Usage: Observe the agent using tools like web search.
- Run Completed/Failed: See the final status.
The page updates automatically, so you can follow along as your agent thinks, searches the web, and works towards its goal.
Once the run is complete, it's time to see the outcome. The results page is split into two main sections:
The Result section contains the final output from your agent. If you configured a "document" result type, you'll find the text-based summary here. For "json" results, you'll see the structured data.
If your agent used tools for research, the Sources section lists all the websites and references it consulted to generate the result. This is great for verifying information.
Congratulations! You've successfully built and run your first agent. Now you can start exploring more advanced capabilities.
- Experiment and Refine: Try different goals, tools, and inputs to see how your agent's behavior changes. Small tweaks to the goal can have a big impact on the quality of the results.
- Build Specialized Agents: Create agents for other use cases like data analysis, content creation, or monitoring your own systems by creating custom tools.
- Integrate and Automate: Use the API to trigger agent runs programmatically and set up webhooks to integrate agent results into your applications and workflows.
If you run into any issues, here are a few common solutions.
- Refine your goal prompt to be more specific and clear. A well-defined goal is key. - Ensure you've enabled the necessary tools for the task. - Experiment with different input parameters. - Check the Events timeline to find the exact error message. - If you are browsing websites, verify that the URLs are correct and accessible. - Make sure your account has sufficient credits to run agents.Need more help? Join our Discord Community for support or email us at hi@ag.dev.
You're now ready to build powerful autonomous agents that can handle complex tasks at scale. Happy building!