Custom Tool Builder
Sometimes the built-in tools aren’t enough. You might need to call a proprietary internal API, process complex data, or chain multiple actions together. The Custom Tool Builder (also known as theAI Extender Tool) allows you to build a tool using a mini-workflow.
The Concept
Instead of writing code, you define a tool using nodes.How to Build a Custom Tool
- Add the Node: Search for “Custom Tool Builder” (or
AI Extender). - Define Inputs: In the properties panel, define what the AI should send.
- Example:
order_id(String),reason(String). - The AI will intelligently extract these from the user’s message.
- Example:
- Build the Chain:
- Connect the Chain output handle to your first logic node (e.g.,
HTTP Request). - Perform your logic (e.g., Look up order status).
- Connect the Chain output handle to your first logic node (e.g.,
- Return the Result:
- Connect the final node of your processing chain back to the Result input handle of the Custom Tool Builder.
Accessing Inputs
Inside your chain, you can access the inputs the AI sent using variables:{{ custom_tool_node_id.parameters.order_id }}{{ custom_tool_node_id.parameters.reason }}
Example: refund_processor
Imagine building a tool to process refunds.- Tool Name:
refund_order - Description: “Process a refund for a customer order”
- Inputs:
orderId,reason - Logic Chain:
- HTTP Request: POST to
/api/refundwithorderId. - Email Send: Email the user “Your refund is processed”.
- HTTP Request: POST to
- Result: Return
{{ http_request.body.status }}to the AI.
refund_order, and your workflow handles the complexity!
