Skip to main content

Agent IA

Runs an autonomous AI agent with a goal (task). The agent can use tools, perform multiple iterations, and return a synthesized response. The main field is answer (not content).

Parameters

ParameterTypeRequiredVariableDescription
taskdynamic valueYesYesGoal or instruction for the autonomous agent (min 10 characters). (min 10 chars)
systemPrompttextNoYesSystem instructions defining the agent behavior and constraints.
model.providertextYesNoAI model provider for reasoning (e.g. openai, anthropic).
model.modeltextYesNoAI model identifier to use (e.g. gpt-4o, claude-3-opus).
parameters.temperaturenumberNoNoAgent reasoning creativity (0 = deterministic, 1 = creative). (Default: 0.5, min 0, max 2)
parameters.maxTokensnumberNoNoMaximum number of tokens per agent iteration. (Default: 4096, min 1, max 128000)
enabledToolsarrayNoNoList of tools available to the agent (semantic_query, http_request, etc.).
maxIterationsnumberNoNoMaximum iterations before forced synthesis (safety limit). (Default: 10, min 1, max 50)
contextVariablesarrayNoNoContext variables to pass to the agent for its session.
enableSubAgentsbooleanNoNoEnable delegation to sub-agents for complex tasks. (Default: false)
outputVariabletextNoNoOutput variable name containing the agent final result.

Parameters marked Variable = Yes accept the {{blockName.field}} syntax.

Output

Output variable : agentResult

{
"success": false,
"answer": "...",
"toolResults": "...",
"stats": {},
"tokensInput": 0,
"tokensOutput": 0,
"totalTokens": 0,
"sessionId": "..."
}

Example

Analyze a dataset and produce a report.

Input :

{"task": "Analyse les ventes Q1 2026"}

Output :

{"success": true, "answer": "Les ventes ont augmente de 15% au Q1 2026...", "toolResults": [], "stats": {"iterations": 2, "toolCalls": 0, "durationMs": 3200}, "tokensInput": 150, "tokensOutput": 85, "totalTokens": 235}
Tip

Use {{agentResult.answer}} for the response (not {{agentResult.content}}). The task field is required (min 10 characters), not goal.