runAgent
The runAgent task invokes an agent from a workflow canvas. Use it to combine deterministic workflow logic with an agent’s dynamic reasoning. For example, retrieve data with standard tasks, pass it to an agent for analysis, and use the agent’s output in downstream workflow steps.
When the workflow reaches this task, it starts an agent session and waits for it to complete before continuing.
Before you begin
Before you begin, make sure you have the following:
- FlowAI is enabled on your Platform instance.
- You have access to at least one agent. Only agents you have access to are available for selection. For information about who can run an agent from this task, see Actor and permissions.
Task properties
Incoming
Outgoing
Configure the task
If the agent’s input schema changes after you save the task, Itential notifies you of the mismatch the next time you open the task configuration.
Actor and permissions
The task’s Actor, under Access Control in the task’s Advanced parameters, sets whose permissions the task uses to run the agent.
For who can run an agent and how to grant access, see Create and run agents.
With the Pronghorn actor, anyone who can run the parent workflow can run the agent, regardless of the agent’s permissions.
Use the task output
Downstream tasks reference the task output using status and last_message. To have the agent return structured data, include formatting instructions in the agent’s prompt; the output appears in last_message.
Running a runAgent task in parallel over a list of inputs isn’t supported. To iterate over a list, wrap the task in a sub-workflow and loop over that sub-workflow, or pass the list as a single agent input and handle iteration inside the agent.