Overview
The Custom Agent Node is a specialized Integration Designer workflow node that enables you to create AI agents with custom capabilities powered by Model Context Protocol (MCP) tools. Custom Agent nodes can interact with external systems, databases, and services through MCP servers, allowing them to perform complex, multi-step operations autonomously within your integration workflows.
Key features
- Tool Access: Connect to one or more MCP servers to provide tools to the AI agent
- Reasoning & Acting: Built-in ReAct (Reasoning and Acting) model for intelligent decision-making
- Multi-Step Execution: Agent can use multiple tools in sequence to accomplish complex tasks
- Structured Responses: Define expected response schemas for consistent output
- Execution Tracking: Monitor tool usage and agent reasoning in console logs
Custom Agent nodes automatically apply the ReAct (Reasoning and Acting) model, which enables the AI agent to think through problems, decide which tools to use, and take actions based on the results.
When to use custom agent nodes
Custom Agent nodes are ideal for scenarios where you need:- Dynamic Decision Making: The agent determines which tools to use based on the task
- External System Integration: Access external APIs, databases, or services through MCP tools
- Complex Multi-Step Operations: Execute workflows that require multiple tool interactions
- Autonomous Problem Solving: Let the AI agent figure out how to accomplish a goal using available tools
Example use cases
Customer Support Automation
Customer Support Automation
Create an agent that can:
- Look up customer information from a CRM system
- Check order status from an order management system
- Generate personalized responses based on the gathered data
- Create support tickets if needed
Data Analysis & Reporting
Data Analysis & Reporting
Build an agent that:
- Queries multiple databases for relevant data
- Performs calculations and aggregations
- Generates charts and visualizations
- Produces formatted reports
Process Automation
Process Automation
Design an agent that:
- Monitors external systems for events
- Validates data across multiple sources
- Triggers actions in integrated systems
- Handles exceptions and error cases
Integration Orchestration
Integration Orchestration
Implement an agent that:
- Coordinates operations across multiple systems
- Transforms data between different formats
- Handles complex business logic
- Manages transaction workflows
Adding a Custom Agent node
To add a Custom Agent node to an Integration Designer workflow:- Open Integration Designer and navigate to your workflow
- Click Select Next Node dropdown
- Select Custom Agent from the available node types
- Configure the node settings

Custom Agent nodes are available in Integration Designer workflows, alongside other node types like REST Endpoint, Script, Condition, and Subworkflow nodes.
Configuring a Custom Agent node
After adding a Custom Agent node to your Integration Designer workflow, configure it through the node configuration panel:The instruction prompt that defines what the AI agent should accomplish.This prompt should clearly describe:
- The task or goal
- Any specific requirements or constraints
- Expected behavior or approach
- Context from the process data (using placeholders)
One or more MCP servers whose tools will be available to the AI agent.Configuration:
- Select from locally defined MCP servers
- Include MCP servers from dependency libraries
- Multiple selections allowed
Only enabled tools from the selected MCP servers will be available to the agent. Tools can be managed in the MCP server details page.
JSON Schema defining the expected structure of the agentβs response.This ensures the agent returns data in a consistent, predictable format that can be easily processed by subsequent nodes.Example Schema:
The key in the process data where the agentβs response will be stored.Example:
agentResponse, customerData, analysisResultsIf the key already exists in the process data, it will be overwritten with the agentβs response.
How custom agent nodes execute
When a Custom Agent node is executed in an Integration Designer workflow, the following process occurs:1
Initialization
The FlowX Engine sends the operation prompt and available tools to the AI Service.
2
Reasoning
The AI agent analyzes the prompt and determines which tools it needs to use and in what order.
3
Tool Execution
The agent requests tool execution through the MCP server:
- Agent provides input parameters based on its reasoning
- MCP server executes the tool
- Results are returned to the agent
4
Iteration
The agent evaluates the results and decides whether to:
- Use additional tools to gather more information
- Process the data and formulate a response
- Handle any errors or unexpected results
5
Response Generation
Once the agent has all necessary information, it generates a structured response according to the defined schema.
6
Data Storage
The response is stored in the process data at the specified response key and the workflow continues.
The agentβs reasoning process, tool invocations, and results are all logged in the console for debugging and monitoring purposes.
Monitoring agent execution
After running a workflow with a Custom Agent node, you can monitor its execution in the Console Logs:Node logs tab
The Logs tab displays:- Execution Status: Success, failure, or in-progress
- Duration: Time taken to complete the node execution
- Tool Usage Summary: Quick overview of which tools are used during the execution
- Standard Output: Agentβs final response

Tools tab
The Tools tab is only displayed when MCP tools have been used during execution.
The name of the tool that was invoked.
The AI agentβs reasoning for using this tool - why it decided this tool was necessary and what it hoped to accomplish.Example: βI need to retrieve the customerβs information from the CRM system to get their contact details and account status.β
The parameters sent by the AI agent to the MCP tool.Example:
The response received from the MCP tool for the AI agent to interpret.Example:

Workflow-level logs
If the Custom Agent node is part of a larger workflow, tool usage information is also displayed at the workflow level:- Navigate to the workflow instance in Console Logs
- View the workflowβs Tools tab for an aggregated view of all tool usage
- Drill down into specific nodes to see detailed tool execution
Best practices
Writing effective operation prompts
Be Specific: Clearly define what the agent should accomplish
Provide Context: Include relevant process data using placeholders
Set Expectations: Describe the expected output format
Handle Edge Cases: Include instructions for error scenarios
Selecting MCP servers
Relevance: Only include MCP servers whose tools are relevant to the agentβs task
Minimize Scope: Fewer tools = faster decision-making and more predictable behavior
Tool Availability: Ensure required tools are enabled in the MCP server configuration
Defining response schemas
Match Use Case: Design the schema to match downstream data requirements
Required Fields: Mark essential fields as required in the schema
Type Safety: Use appropriate JSON Schema types for validation
Documentation: Add descriptions to schema properties for clarity
Troubleshooting
Agent Not Using Expected Tools
Agent Not Using Expected Tools
Problem: The agent doesnβt use the tools you expected.Possible Causes:
- Operation prompt doesnβt clearly indicate the need for specific tools
- Tools are disabled in the MCP server configuration
- Agent found an alternative approach
- Review and refine the operation prompt to be more specific
- Check MCP server tool status (enabled/disabled)
- Review agent reasoning in the Tools tab to understand its decision-making
Response Doesn't Match Schema
Response Doesn't Match Schema
Problem: The agentβs response doesnβt conform to the defined schema.Possible Causes:
- Schema is too restrictive or doesnβt match the prompt
- Tools return unexpected data structures
- Agent encountered errors during execution
- Verify schema matches what the prompt asks for
- Test tools independently to verify their outputs
- Review error logs for execution issues
- Adjust schema or prompt to align better
Agent Execution Times Out
Agent Execution Times Out
Problem: The Custom Agent node takes too long to execute.Possible Causes:
- Too many MCP servers/tools available
- Complex multi-step operations
- External systems responding slowly
- Limit MCP servers to only those needed
- Break complex tasks into multiple simpler agent nodes
- Optimize external system performance
- Increase timeout configuration if appropriate
Tool Invocation Fails
Tool Invocation Fails
Problem: A tool invocation fails during agent execution.Possible Causes:
- MCP server connection issues
- Invalid parameters sent by agent
- Tool authentication or permission errors
- Test MCP server connection in Integration Designer
- Review tool input schema and agentβs input in the Tools tab
- Verify authentication credentials for the MCP server
- Check tool-specific error messages in console logs
Next steps
MCP Integration Overview
Learn about MCP integration capabilities
MCP Data Sources
Add, configure, and manage MCP servers and tools
Integration Designer
Learn about Integration Designer workflows
MCP API Reference
View complete API documentation
Related resources
Integration Designer Workflows
Learn about other Integration Designer workflow nodes
Start Integration Workflow
Learn how to call Integration Designer workflows from BPMN processes

