How do agents use tools?
When you (or someone else) publishes a workflow as a tool, you provide a description of what the tool is supposed to do as well as names, types and descriptions for all input parameters. This information is given to the agent along with your prompt, and the agent can decide whether or not to use a tool to complete your request. The agent formats its response to match that expected by the tool, and Runchat then runs the workflow with the inputs provided by the agent. Once the workflow completes, the outputs are sent back to the agent so that it can decide what it wants to do next. This is called a tool calling loop, and for complex queries this might happen dozens of times.Adding tools to the agent
How the agent gets its tools depends on whether you’re talking to the agent or using an Agent node:- The agent: searches for the tools it needs on its own: web search, page fetching, your own published tools and the database of public tools. It inspects and runs them automatically. Just ask for what you want.
- Agent node: click Tools on the node’s toolbar to attach tools to the node. Once it has tools, Tool effort in the toolbar’s More menu controls how thoroughly the agent uses them: Fast (3 tool calls), Moderate (10 tool calls), Max (25 tool calls) or Custom.
I want to connect Runchat to some service (e.g. discord or slack), is there a tool for this?
You can get the Runchat agent to help create custom tools for you. Click the agent composer at the bottom of the editor and describe what you want to do. Don’t worry if the agent doesn’t get it right first try. You can:- ask the agent to fix errors
- run the node and then ask it to view the output to improve the node
- use a smarter coding model (usually higher credit cost = smarter model)
An example: Design Product Research
Research is a task that requires lots of trial and error. People often look for things, learn something then circle back to explore some other avenue of investigation or idea. As a result, research is not particularly well suited to a linear workflow because it requires loops. This is what the Agent is perfect for. Lets say you want to research some tiles for a new design project. For this task, let’s use the agent:- (optional) add some pre-existing ideas or imagery you might be interested in to the canvas.
- Ask the agent: “we’re researching award winning residential architects working with ceramics. Can you find some exemplary projects and produce a short summary with images?”