Skip to main content
AI/ML

AI Agent

maf_agent

Multi-turn AI agent with skills, dataset queries, and sub-workflows.

Inputs1
Outputs1
Settings21
Field Access{{Template}} · State Key
Examples2

About this Node

Runs an autonomous multi-turn AI Agent equipped with version-pinned Agent Skills, read-only Project/Workspace Datasets, and published Sub-Workflow tools. Bounded by `max_turns` (1–32) and `timeout_seconds` (30–1800), it iterates until it reaches a final answer or structured JSON Schema result and emits full turn/tool-call diagnostics.

Ports & Branches

Inputs (1)
inPort 0Inbound execution flow
Outputs (1)
outPort 1Outbound execution flow after agent completion

How this Node Reads Data

Input Access Field Example Description
Agent Prompt Template {{Template}} prompt_template Investigate churn risk for account {{account_name}} using attached datasets. When `prompt_source` is `template`, interpolates `{{key}}` values from scoped workflow state as the agent's task prompt.
Agent Prompt State Key State Key input_key rendered_prompt When `prompt_source` is `state_key`, reads the initial task message from `input_key`.

State Keys Written (Outputs)

Key Pattern Type Role Description
{output_key} string | object Primary Final agent answer (plain text or validated JSON object when `response_format_mode` is `json_schema`).
{output_key}_raw string Secondary Raw unparsed text returned by the agent on its final turn.
{output_key}_turns integer Secondary Total reasoning/tool-call turns executed by the agent.
{output_key}_tool_calls array<object> Secondary Ordered audit log of tool invocations executed by the agent during the run.

Tips & Best Practices

  • For deterministic single-turn completions with no tool calling, prefer the lighter LLM Inference (`llm`) node.
  • Pin explicit skill versions when attaching Agent Skills and bind saved LLM Presets from Settings → LLM.

Commonly Paired With