Use tools in playbooks
Add a tool to a playbook step so the agent acts mid-conversation, then handle each result.
A playbook step can call a tool: check the booking, read the invoice, cancel the subscription. You mention the tool in the step's sentence. During that step the agent calls it when it fits and fills its inputs from the conversation. A condition after the step can send the conversation somewhere else if the call found nothing or couldn't run.
You need the Member or Manager role to do this. The tool must exist and be live before the playbook can publish. You can add a draft tool while you write, and set it live before you publish. See Test a tool and set it live.
Add a tool to a step
- Open the playbook and put the cursor in the step where the call belongs.
- Type
@and start typing what the tool does, like "look up booking". - Pick the tool under Tools. It appears as a chip in the sentence.
- Write the sentence around it.
Tools match on their name and their When to use text. For a hotel, you might write: "Check the reservation with @Look up booking and tell the guest their arrival date." The arrow on the chip opens the tool in the editor. See Use mentions for more on @.
Handle each result
- Add a condition after the step.
- In an exact rule, pick the tool's result from Tool results, for example
look_up_booking.result == "nothing found". - Put the steps for that case inside the condition, like asking for the booking reference again.
See Add conditions. Anything you don't branch on carries on to the next step.
Write the nothing found and couldn't run branches first. Happy paths are easy. The failures are what callers remember. For a tool that changes something, make the failure path say so plainly, so a teammate can follow up.
How the call behaves
The agent collects the tool's inputs from what the customer said and what the playbook already collected. A tool that changes something asks the customer to confirm before it runs.
The call's result is recorded as <tool>.result: worked, nothing found or couldn't run. Values you keep under What you get back are available to later steps by the names you gave them. See Tool results and errors.
What happens next
When you try a playbook draft, lookups run for real, but a tool that changes something is held back and the agent reports what it would have done. A voice test call is different: it runs changes for real. Every call appears in the trace with its result and timing.
A published playbook calls the tool as it is now. Edits to the tool apply to its next call without republishing the playbook. A tool taken offline returns couldn't run from every step that calls it.
FAQs
Can I use a draft tool in a playbook?
You can add it while you write, but it must be live before the playbook can publish.
What if I delete a tool a playbook uses?
The step shows deleted tool and the playbook can't publish until you fix it.
Do I have to list the inputs in the step?
No. The agent fills them from the conversation and what the playbook collected.
Does the playbook check the result for me?
Only if you add a condition. Otherwise the playbook carries on to the next step.