Agent

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
Not ideal for:
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
Create New Agent
Define agent specifically for this workflow
Configure independently
Optimized for automation
Agent Instructions
Good Instructions (example)
Poor Instructions (example)
Input Variables
Pass data from previous nodes to the agent:
Structured Output (Recommended)
Why Use Structured Output:
Guaranteed format (always valid JSON)
No parsing errors
Reliable for downstream nodes
Easier to debug
Example:
Configure the structured output using the stepper below:
Tools & Capabilities
Enable additional capabilities for the agent:
Web Search
Agent can search the internet
Good for fact-checking and current information
Adds cost per search
Code Execution
Agent can write and run Python code
Good for calculations and data analysis
Safe sandboxed environment
Integrations
Agent can use connected integration actions
Access to your tools and data
Good for dynamic workflows
Example Use Cases
Content Categorization
Lead Qualification
Document Summarization
Sentiment Analysis
Accessing Agent Output
Without Structured Output:
With Structured Output:
Prompt Engineering Tips
Be Explicit
Provide Context
Use Examples
Constrain Output
Best Practices
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 Clear, detailed instructions lead to better results. Include examples if the task is complex.
Limit Input Length Agents work best with focused inputs. If processing long documents, consider extracting relevant sections first.
Test with Real Data Agent performance can vary. Test with actual data examples to ensure consistent results.
Handle Edge Cases Add validation after the agent node to handle unexpected outputs or errors.
Next Steps
Last updated

