Tool results and errors
Every tool call ends as Worked, Nothing found or Couldn't run. Here is what each means and how to see why a call failed.
When your agent calls a tool, it gets one of three results back. Knowing which is which lets you write a playbook that handles every outcome, and lets you tell a problem in your tool from a problem in the connected service.
The three results
Worked means the system answered with a success. A tool that changes something counts as worked on any success, even an empty one. A hotel's "Look up booking" tool returns the booking details, and the agent reads out the arrival date.
Nothing found means a lookup reached the system but got back an empty response, or every value you keep came back blank. The guest gave a reference that doesn't exist, so the lookup reached your system and found no match. This is not an error. It is a real answer.
Couldn't run means the call didn't get a success. The system was unreachable, took longer than 15 seconds, or answered with an error status such as 404 or 500. A response over 1 MB is also refused.
Why the difference matters
Nothing found and Couldn't run call for different things. For nothing found, the right move is usually to ask the customer again: "I can't find that reference. Could you read it out once more?" For couldn't run, asking again won't help. Offer another route instead, such as taking a message or handing off to a person. See Create a handoff routine.
In a playbook, add a condition after the tool's step and pick the result under Tool results. See Use tools in playbooks.
Where to see a result
In the tool editor, the result sits under the response after every run, with the response size and how long it took. Show raw displays the response exactly as it came back. When a run fails before any response, the pane says why.
History shows real conversations: Runs, Failure rate and Avg latency over the last 7 days, and a list of recent calls with their time, result and duration. Your own test runs don't appear there. See Test a tool and set it live.
Why an integration call failed
An integration tool also appears on its connection's details page under Recent calls, with the reason next to a failed call. Where the service sent an error message, it appears under the tool's name.
- not connected: the connection was removed or never finished. A Manager needs to connect the service again.
- timed out: the service didn't answer in time.
- rejected by the provider: the service refused the request, often because access was removed on their side. Reconnect.
- provider error: the service had a problem of its own.
- bad input: the tool sent something the service couldn't use, like a missing email.
A connection that shows Failing isn't always broken. A tool that sent bad input fails the same way. If the next call succeeds, the badge goes back to Connected. See Manage connections.
When a tool is offline or deleted
A tool taken offline returns Couldn't run from every step that calls it. A playbook that calls a deleted tool shows deleted tool on the step and can't publish.
What to do next
- Read the response under Show raw and fix the tool's inputs or what you keep.
- Check the tool's Failure rate in History.
- Write the Nothing found and Couldn't run branches in the playbook.