Skip to main content
Advanced workflows often require data from multiple previous steps beyond just the immediate predecessor. The StepInput object provides powerful methods to access any previous step’s output by name or retrieve all accumulated content.

Example

Available Methods
  • step_input.get_step_content("step_name") - Get content from specific step by name
  • step_input.get_step_output("step_name") - Get the full StepOutput object from a specific step
  • step_input.get_all_previous_content() - Get all previous step content combined
  • step_input.workflow_message - Access the original workflow input message
  • step_input.previous_step_content - Get content from immediate previous step

Accessing Nested Steps

You can directly access steps nested inside Parallel, Condition, Router, Loop, and Steps groups using their step name. The lookup performs a recursive search to find nested steps at any depth.

Direct Access to Steps in Parallel Groups

Deeply Nested Steps

The recursive search works at any depth level:
Lookup Priority: When a step name exists at both top-level and nested within a group, the direct (top-level) lookup takes priority over the nested search.

Parallel Group Output Format

When accessing a Parallel group by its name, the output is a dictionary with each nested step’s name as the key:

Developer Resources