Flows is an agentic workflow tool that enables you to sequence nodes to build dynamic, intelligent workflows. Each node can represent an agent, a tool, or built-in capabilities such as user interactions, prompts, decision logic, or document extraction.

With flows, you can design workflows using various control structures, including conditional branching (if-then-else or switch-case), iteration over lists using foreach, and loops that repeat actions until specific conditions are met.

A flow is composed of nodes and edges. You define nodes of different types and connect them using edges. Because flows can take several seconds to execute depending on their complexity, they run asynchronously.

The sections below introduce the key concepts and components you’ll use when working with flows:

Note: 

  • Asynchronous tool support within agents is not currently supported.
  • In the meantime, you can use a dedicated tool to query the status of a flow using its instance ID.