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
Tools attach in two places, depending on whether you’re working with chat or a node:- Chat: The chat agent can search your own private published tools as well as the database of publicly available tools and then inspect and run these automatically.
- Agent node: in the node’s settings bar, click Select Tools to attach tools to the node. The Tool Effort setting controls how thoroughly the agent uses them (Fast, Moderate, Max, 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 in the chat input 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 chat agent:- (optional)add some pre-existing ideas or imagery you might be interested in to the canvas.
- In chat, say “we’re researching award winning residential architects working with ceramics. Can you find some exemplary projects and produce a short summary with images?”