Call an agentflow

Use the Call an agentflow action to start another agentflow from the current agentflow. This action allows you to run the selected agentflow either concurrently or sequentially and store the instance ID for reference.

You can use this action to reuse existing agentflows or orchestrate multiple agentflows within a larger process.

File variables can be passed to the child agentflow through input variables. However, if the parent process is terminated, file references passed to the child agentflow may no longer be valid, depending on the file source. This affects agentflows configured to Run both concurrently, where the child agentflow continues running after the parent process ends.

  • The following file types are supported: .pdf & .txt

  • The maximum file size is 10 MB, and you can pass up to 10 files.

Configure the Call and agentflow action

  1. Add the action to the agentflow and open the action configuration panel. For more information, see Add an action to the agentflow.

  2. In Agentflow, select the agentflow to run.

  3. Select one of the options: Run both concurrently or Wait for this agentflow to complete before continuing.

  4. In Outputs, select or create a variable in Instance ID to store the ID of the started agentflow instance.
    The stored instance ID can be used to reference or to track the called agentflow.

Call an agentflow action fields and settings

Section Field Description

Variable

(Unlabeled) Agentflow The agentflow that is started when the action runs.

N/A

  Run both concurrently Starts the selected agentflow and continues the current agentflow without waiting for completion. N/A
  Wait for this agentflow to complete before continuing Starts the selected agentflow and pauses the current agentflow until it completes.  
Output Instance ID

Stores the unique identifier of the started agentflow instance as a variable.

Text