
Overview
The Agent node is where AI comes into your workflow. It can analyze text, make intelligent decisions, extract structured data, generate content, answer questions, and much more - all using natural language instructions.Best for: Content analysis, categorization, data extraction,
decision-making, summarization, and any task requiring intelligence.
When to Use Agent Node
Perfect for:- Analyzing and categorizing content
- Extracting structured data from unstructured text
- Making decisions based on criteria
- Generating summaries or reports
- Sentiment analysis
- Answering questions about data
- Content generation
- Translation and language tasks
- Simple data transformations (use Code Node)
- Mathematical calculations (use Code Node)
- Direct API calls (use HTTP Request Node)
Configuration
Select or Create Agent
Use Existing Agent- Choose from your workspace agents
- Inherits agent’s configuration and knowledge
- Consistent behavior across chat and workflows
- Define agent specifically for this workflow
- Configure independently
- Optimized for automation
Agent Instructions
Provide clear instructions for what the agent should do: Good Instructions:Input Variables
Pass data from previous nodes to the agent:Structured Output (Recommended)
Define the exact structure you want from the agent: Why Use Structured Output:- Guaranteed format (always valid JSON)
- No parsing errors
- Reliable for downstream nodes
- Easier to debug
- Enable “Structured Output”
- Define output fields:
- Field name
- Type (string, number, boolean, array)
- Description
Max Steps
The maximum number of tool call steps the agent can take during execution. This prevents runaway agents from consuming excessive resources. Default: 25 steps Minimum: 1 When to adjust:- Lower (5-10): Simple tasks with predictable tool usage
- Default (25): Most use cases
- Higher (50-100): Complex research or multi-step analysis tasks
Tools & Capabilities
Enable additional capabilities for the agent. Tools are configured as an array with four types: Built-in Capabilities- Web Search: Agent can search the internet for fact-checking and current information
- Code Execution (Python): Agent can write and run Python code for calculations and data analysis
- Add specific actions from your connected integrations
- Each action can optionally require confirmation before execution (human-in-the-loop)
- Specify which connection to use if you have multiple
- Attach knowledge folders so the agent can search your documents
- Agent automatically searches relevant content when answering questions
- Call other agents as tools for specialized sub-tasks
- Useful for complex workflows with multiple areas of expertise
Error Handling
Configure how the workflow handles errors from this node:| Strategy | Behavior |
|---|---|
| Stop (default) | Workflow execution stops immediately on error |
| Callback | Route to an error handling branch to process the failure |
| Continue | Continue execution using error output data |
Connection Overrides
When using integration actions, you can override which connection the agent uses for specific tools. This is useful when:- You have multiple connections to the same integration (e.g., different Slack workspaces)
- You want the workflow to use a specific service account
Attachments
Attach files directly to the agent node that will be available for processing. These can be:- Files uploaded to the workflow
- Files from previous node outputs
- Static reference documents
Example Use Cases
Content Categorization
Lead Qualification
Document Summarization
Sentiment Analysis
Accessing Agent Output
Without Structured Output:Prompt Engineering Tips
Be ExplicitBest Practices
Always Use Structured Output
Always Use Structured Output
For workflows, structured output is almost always better. It prevents parsing errors and makes data easier to use in subsequent nodes.
Be Specific in Instructions
Be Specific in Instructions
Clear, detailed instructions lead to better results. Include examples if the task is complex.
Limit Input Length
Limit Input Length
Agents work best with focused inputs. If processing long documents, consider extracting relevant sections first.
Test with Real Data
Test with Real Data
Agent performance can vary. Test with actual data examples to ensure consistent results.
Handle Edge Cases
Handle Edge Cases
Add validation after the agent node to handle unexpected outputs or errors.