Skip to main content

Claude Agents

Run a Claude agent that calls your own functions, where each function is a branch of your Process.

An agent step sends the user's message to Claude together with the functions you list in its form. When Claude wants a function, the step tells your Process which one and with what arguments; your Process does the work with any Tasks you like and hands the result back; Claude then answers. The agent keeps the conversation, so it remembers what was said earlier in the Session.

It works like OpenAI Agents: the same function table, the same Switch, the same Function result step.

How it works​

  • The agent step does not branch. It writes one variable, {agent} by default. {agent.next} is the name of the function to run now, or completed when Claude has answered ({agent.reply}).
  • A Switch picks the branch. Put a Switch on {agent.next} after the agent step: one case per function, and completed as the default branch.
  • Each function branch ends with Function result, which gives the result back and connects back to the agent step.
  • Arguments are typed. A function's arguments land in a variable named like the function ({lookup_order}), so a later Task reads {lookup_order.orderId}. Arguments outside a parameter's minimum / maximum, pattern or list size are sent back to Claude as an error, and Claude asks again: your branch never runs with them.
  • Several calls at once. Claude can ask for several functions in one turn. The agent hands them out one after another ({agent.pending} says how many are left) and sends all the results back together. Set Parallel calls off when a call depends on the previous one's result.
  • Claude can't be forced to call a function (current models refuse it): say in the Instructions when to call which.

Memory​

With Keep the conversation on, every turn continues the same conversation. It is kept in the run's own storage (not in the Session's variables), exactly as Claude sent it, because Claude checks that its earlier reasoning comes back unchanged. Max turns kept (default 20) bounds it: when it is reached, the oldest half is dropped. A turn that fails is removed, so the next message starts cleanly.

Configuration​

Each Claude Module is configured separately, per Environment: this Module has its own Anthropic API key field, the same fields as Claude except the default model.

Tasks​

All Tasks in this Module are Generic (all Channels).

ClaudeAgentTask​

PropertyTypeRequiredExampleDescription
ModeltextYesclaude-opus-5-5The model that runs the agent.
EffortchoiceNoLowHow much Claude thinks before each answer or call. Low suits chat and voice.
InstructionspromptNoYou help customers with their orders. Look an order up before answering about it.Sent with every request.
InputpromptYes{userMessage}The user's message that starts a turn.
FunctionslistNoName, Description, Parameters (Text, Number, Whole number, Yes / no, Choice, List, Object), and optionally the variable for the arguments.
Parallel callsyes / noNoOn
Tool choicechoiceNoAutoAuto, or None (never call a function).
Web search, Web fetch, Code executionyes / noNoAnthropic's built-in tools; Claude uses them without a branch.
MCP serverslistNocrm, https://mcp.example.com/mcpRemote MCP servers whose tools Claude calls directly. Use an https address; put an access token in a secret variable.
Keep the conversationyes / noNoOn
Max turns keptnumberNo20
Max function roundsnumberNo10Most model calls in one turn before the step fails.
Max tokensnumberNo16000Per model call, thinking included.
Store the result invariableYes{agent}next, function, arguments, callId, pending, reply, stopReason, inputTokens, outputTokens.

The step takes its error flow when Anthropic refuses the request, Claude declines, or Max function rounds is reached.

ClaudeFunctionResultTask​

Ends a function branch: gives the function's result (or its failure) back to the agent. Connect it back to the agent step.

PropertyTypeRequiredExampleDescription
ResulttextNo{order}Text, or a {variable}: an object or list goes as JSON.
The function failedyes / noNoClaude is told it failed, with the message, and answers accordingly.
Error messagetextNoOrder not found
Agent resultvariableYes{agent}The agent step's result variable.