Lesson 1: Basic Agents
Welcome to your first AgentMap lesson! You'll learn the fundamentals by building a simple but powerful workflow that collects user input, processes it with AI, and saves results to a CSV file.
Learning Objectives
By the end of this lesson, you will:
- ✅ Understand the basic AgentMap workflow structure
- ✅ Use InputAgent to collect user data
- ✅ Process data with LLMAgent (AI)
- ✅ Save results with CSVWriterAgent
- ✅ Run your first complete workflow
Overview: What We're Building
We'll create a Personal Goal Tracker that:
- Collects a personal goal from the user
- Analyzes the goal using AI to provide insights and suggestions
- Saves the goal and AI analysis to a CSV file for tracking
Step 1: Download the Workflow File
First, let's get the pre-built workflow file for this lesson.
Step 2: Understanding the Workflow Structure
Let's examine each part of our workflow:
CSV File Structure
Every AgentMap workflow is defined in a CSV file with these columns:
Column | Purpose | Example |
---|---|---|
workflow | Workflow name | PersonalGoals |
node | Node name | GetGoal |
description | Human-readable description | Collect user's personal goal |
type | Agent type | input , llm , csv_writer , echo |
next_node | Success path | AnalyzeGoal |
error_node | Error path | ErrorHandler |
input_fields | Expected inputs | goal |
output_field | Output field name | analysis |
prompt | Agent prompt/instruction | AI prompt text |
context | Agent configuration | JSON with agent settings |
Workflow Flow
- GetGoal (InputAgent): Prompts user for their personal goal
- AnalyzeGoal (LLMAgent): AI analyzes the goal and provides insights
- SaveGoal (CSVWriterAgent): Saves both goal and analysis to CSV
- ThankUser (Echo): Confirms successful save
- ErrorHandler: Handles any errors gracefully