Skip to main content

Beginner-Friendly Topic

Take your time - it's perfectly normal to re-read this topic 2-3 times. Try the interactive code editor below to run code yourself. Use the Q&A section to check your understanding before moving on.You've got this!

Lesson 5 of 16

Agent Actions in Workflows

Actions are the steps the agent takes to make progress toward its goal. Every action is a tool call with specific arguments. The result becomes an observation.

6 minBy Priygop Editorial TeamUpdated 2026Peer Reviewed & Verified

Action Lifecycle

Every action follows the same lifecycle:

  1. 1The controller selects a tool and arguments
  2. 2The arguments are validated
  3. 3The tool is called
  4. 4The tool executes the action
  5. 5The result is returned as an observation
  6. 6The observation is added to the agent state
  7. 7The controller reads the new state and decides the next action

This lifecycle applies to every type of action, whether it is a web search, a database query, an email send, or a calculation.

Action Types Summary

  • Read actions: web_search, get_database_record, read_file, get_weather - low risk, reversible
  • Write actions: send_email, create_record, update_file, post_message - higher risk, may be irreversible
  • Compute actions: calculate, transform_data, validate_input - no external side effects
  • Wait actions: pause_for_approval, schedule_task, wait_for_event - control flow
  • Escalate actions: request_human_input, flag_for_review, notify_user - human handoff

Key Takeaways

  • Actions are the steps the agent takes to make progress toward its goal.
  • Read actions: web_search, get_database_record, read_file, get_weather - low risk, reversible
  • Write actions: send_email, create_record, update_file, post_message - higher risk, may be irreversible
  • Compute actions: calculate, transform_data, validate_input - no external side effects

Finished this lesson?

0 of 16 in Module 2
Sign in to save progress

Topics in This Module

0/16 done