
Call AI Agent configuration — pick the target application and map values into its input arguments.
When to Use
- Reusable logic - Encapsulate common workflows (email parsing, data validation) and call them from multiple places
- Complex sub-processes - Break large workflows into manageable pieces
- Team collaboration - Different team members can own different agents
- Versioning - Update a shared agent without modifying every workflow that uses it
- Separation of concerns - Keep workflows focused on one responsibility
Example: Lead Qualification Pipeline
A main workflow that uses specialized agents for each step:1
Receive the lead
Use a Webhook node to receive new lead data from your website form.
2
Enrich the lead
Call Agent: Lead Enrichment AgentThis agent looks up company info, social profiles, and tech stack.
3
Score the lead
Call Agent: Lead Scoring AgentThis agent applies your scoring model and returns a score.
4
Route based on score
Use a Condition node to route high-score leads to sales, others to nurture campaigns.
Example: Document Processing Hub
A central workflow that routes documents to specialized processors:Example: Approval Workflow
Use agents to encapsulate approval processes: Main workflow:Passing Data
Input Data
Pass data to the agent as a JSON object:Receiving Results
The called agent’s output becomes available as{{call_agent_1.result}}:
Design Patterns
Microservices Pattern
Break your automation into small, focused agents:
Main workflows compose these agents as needed.
Facade Pattern
Create a simplified agent that orchestrates complex operations: Customer Onboarding Agent (called by main workflow):Chain of Responsibility
Pass data through a series of processing agents:Async Execution
SetwaitForCompletion: false for fire-and-forget scenarios:
Async calls return immediately with an
executionId. You won’t get the result in the current workflow - use webhooks or variables for callbacks.Error Handling
When a called agent fails, the Call Agent node captures the error:{{call_agent_1.status}} to handle failures gracefully.
Tips
Settings
string
default:"Call Agent"
Display name shown on the canvas.
string
default:"call_agent_1"
Unique identifier for referencing outputs.
string
required
The ID of the CogniAgent application to call. Select from a dropdown of available agents in your workspace.
object
Data to pass to the called agent. This becomes the agent’s starting input.
boolean
default:"true"
Whether to wait for the agent to complete before continuing:
- true - Wait and get the results
- false - Fire and forget (async execution)
number
default:"300000"
Maximum time to wait for completion (in milliseconds). Default is 5 minutes.
Outputs
any
The output data returned by the called agent (from its final node or explicit return).
string
Unique identifier for this execution of the called agent.
string
Execution status:
completed, failed, or timeout.number
How long the agent took to execute (in milliseconds).
Related Nodes
Ask AI
For simple AI tasks, an Ask AI node may be sufficient without a full agent.
Execute Code
For data processing, code might be simpler than an agent.
