Custom Tool
The Custom Tool lets you define your own tool — a named action with a set of inputs and a small function that runs when the agent (or flow) calls it. Use it when no built-in tool fits: custom business logic, a multi-step API call, a calculation, or anything you'd rather script once and reuse.
You create the tool once in Flowera's Tools area, then select it here to drop it into any flow.
Adding it to a flow
In the Tool node's tool picker, choose Custom Tool, then pick one of the tools you've defined from the Select Tool dropdown.
Setup: create the tool first
Before it appears in the dropdown, define the tool in Flowera's Tools area. A custom tool has:
- Name — what the agent sees and calls (e.g.
check_inventory). - Description — tells the agent when to use it. Write this clearly; it's how the agent decides.
- Schema — the inputs the tool accepts (name, type, whether required). The agent fills these in.
- Function — the code that runs. It receives the inputs and returns a result. Your custom variables are available inside it.
The schema is what makes the tool reliable. Give each input a clear name and description so the agent provides the right values.
Inputs
| Parameter | Description | Required |
|---|---|---|
| Select Tool | The custom tool (defined in the Tools area) to use. | Yes |
| Return Direct | Send the tool's output straight back to the user instead of feeding it back to the agent. | No |
Outputs
The tool returns whatever your function returns. It's a single-output tool — the flow continues to the next node. With Return Direct enabled, the output goes directly to the user as the reply.
Example
Check stock for a product
- In the Tools area, create a tool named
check_inventorywith one input,sku(string, required), and a function that calls your inventory API and returns the count. - In a flow, add an Agent node and give it the Custom Tool, selecting
check_inventory. - When a customer asks "is X in stock?", the agent calls the tool with the SKU and answers with the result.
Tips
- Write a strong description. The agent chooses tools by their descriptions — vague descriptions lead to the tool being skipped or misused.
- Keep inputs minimal. Fewer, well-named inputs make the tool easier for the agent to call correctly.
- Use Return Direct when the tool already produces the exact user-facing answer and you don't need the agent to rephrase it.
- Reuse across flows. A tool defined once shows up in every flow's Custom Tool dropdown.
Related
- Custom variables — values available inside your tool function
- HTTP Requests tools — simpler option for a single API call
- Tool node · Agent node