← Back to CoursesAgentic AI: Beginner

Neuroanatomy Explorer

Drag to rotate · scroll to zoom · click regions to explore

View
Loading 3D model…

Click a region
to explore it

Memory Deck

Flip each card and rate whether you knew it. Your score is saved.

Term
Definition

Deck complete — score saved.

Match the Pairs

Match each term to its definition. Finish the board to earn your score.

All matched — score saved.

The Agent Loop in 3D

Watch a thought travel through Perceive → Plan → Act → Observe. Drag to rotate, scroll to zoom, click a node.

Click a node to read its definition.

Building a Simple Agent Workflow

Manual: General · Subject: Agentic AI

Walk through the lifecycle of a basic agent from prompt to action to result.

A simple end-to-end workflow

The workflow

A basic agent workflow starts with a user request, interprets the goal, checks whether tools or memory are needed, chooses an action, observes the result, and repeats if necessary. This flow is the backbone of many practical systems.

A beginner agent pipeline

  1. 1

    Step 1: Receive the user goal.

  2. 2

    Step 2: Decide if the goal needs planning or a tool.

  3. 3

    Step 3: Execute one action.

  4. 4

    Step 4: Inspect the result.

  5. 5

    Step 5: Continue, revise, or stop.

🔑

Stop conditions matter

A good agent knows when to stop. Otherwise it may repeat itself, waste time, or create unnecessary actions.

Example

If the goal is "summarize this article," the agent may retrieve the article, extract key points, draft a summary, then compare the draft against the source for missing ideas.

What should an agent do after taking an action?

Why is a stop condition important?

Workflow mindset

You can think of an agent as a small manager: it receives a task, delegates or performs work, checks progress, and knows when the job is complete.

BUILD YOUR FIRST WORKFLOW

Step-by-step: from idea to a working agent pipeline

The 6-Step Agent Workflow

1
Define the Goal

Write a clear, scoped objective with success criteria and boundaries.

2
Choose Tools

Select tools your agent needs: search, code runner, file reader, API client.

3
Write the System Prompt

Define role, tone, rules, and hard constraints for your agent.

4
Run and Trace

Execute a test case. Log every thought, action, and observation.

5
Evaluate Output

Did it meet the goal? Measure accuracy, efficiency, cost per run.

6
Iterate

Refine system prompt, add error handling, improve tool descriptions. Repeat.

Minimal Agent Pseudocode

# Minimal agent loop
def run_agent(goal):
  messages = [system_prompt, {"role":"user","content":goal}]
  while True:
    response = llm.complete(messages)
    if response.is_final: return response.text
    result = execute_tool(response.tool_call)
    messages.append(result)