# Tools

> How agents take real actions mid-conversation — looking things up in your systems, writing records, and notifying your team.

Source: https://docs.cleartalk.ai/docs/tools

An agent with instructions and a knowledge base can *talk* about your business. A tool lets it **do** something: look up a real order, check today's real availability, create a ticket, alert your team. Tools are what turn a good conversation into a useful one.

There are two kinds, and both are added from **Tools → Add a tool**:

* **Ready-made tools** — business hours, Slack alerts, your CRM and My Contacts. Pick one, fill in a few settings, done. See [ready-made tools](/docs/tools/ready-made-tools).
* **Custom actions** — **Look something up** or **Send something over**, for your own software. See [build a custom action](/docs/tools/building-a-tool).

Either way you can try the tool before you save it.

<Summary
  items={[
  "The tool's description is what the AI reads to decide when to use it.",
  "The details it asks for are what it gathers; the reply is what it says next.",
  "Attach a tool to an agent, or drop it into a pathway at a specific moment.",
  "One job per tool, and always plan for the lookup failing.",
]}
/>

## How a tool actually works

This is the part that trips people up, so here it is end to end. Say a caller asks "where's my order?" and you've built an order-lookup tool.

<Steps>
  <Step>
    ### The agent decides to use it

    Mid-conversation, the agent looks at the tools available to it and reads their **descriptions*&#x2A;. It sees one that says &#x2A;"Look up the status of a customer's order using their order number"* and recognises that's exactly what's being asked.

    It isn't documentation — it's the instruction the AI uses to decide whether this tool applies right now.
  </Step>

  <Step>
    ### It collects what the tool needs

    The tool has a list of **details** it needs from the caller. Here, an order number. If the caller already said it, the agent uses it. If not, the agent asks for it, naturally, in the middle of the conversation.
  </Step>

  <Step>
    ### ClearTalk calls your system

    The parameters get dropped into the request you configured, and it's sent to your system. Because that takes a moment, you also tell the agent what to say while it waits — "Let me pull that up for you" — so the caller never hears dead air.
  </Step>

  <Step>
    ### Your system answers

    It sends back whatever it sends back, typically a block of data with far more in it than the conversation needs.
  </Step>

  <Step>
    ### You pick out the parts that matter

    In the tool's settings you tick the specific values worth keeping — the status, the delivery date — and each becomes a variable the agent can use.
  </Step>

  <Step>
    ### The agent uses them

    It speaks them naturally ("Your order shipped Tuesday and arrives Thursday"), and if the tool sits inside a pathway, the conversation can **branch** on them — one path if the order shipped, another if it's delayed, another if nothing was found.
  </Step>
</Steps>

<Key>
  **The description is the trigger.** It's the single most important thing to understand about tools — the AI reads it to decide whether this tool applies right now. Vague descriptions produce tools that never fire, or fire at the wrong moment.
</Key>

The whole chain is: &#x2A;*description decides when → parameters gather what → the request goes out → the response comes back → extracted values shape what happens next.**

<Sequence
  caption="One tool call, start to finish."
  steps={[
  { title: "The agent recognises the need", note: "It reads the descriptions of the tools it has and decides this one applies right now." },
  { title: "It gathers the details", note: "From what the caller already said, or by asking for what's missing." },
  { title: "ClearTalk calls your system", note: "Saying your waiting line out loud so the caller doesn't hear silence." },
  { title: "Your system answers", note: "Usually with far more data than the conversation needs." },
  { title: "The values you named are pulled out", note: "Each becomes a variable the rest of the conversation can use." },
  { title: "The agent speaks — or the pathway branches", note: "It reads the result back naturally, and a pathway can take a different path depending on it." },
]}
/>

## Where tools get used

* **Attached to an agent** — in the agent's **Tools** section, choose **Add a tool** and tick it. The agent may use the tool at any point when it seems relevant; say when in its Agent Instructions. Best for lookups that could come up anywhere ("what's my balance?").
* **As a Custom Tool step in a pathway** — the tool runs at exactly that point, and the pathway branches on the result. Best when the action belongs at a specific moment, or when what happens next depends on the answer.

Build once, use in both. Tools live in **Tools** in your sidebar, which shows how many agents use each one and whether it's ready, and they're reusable across every agent and pathway you own.

## What makes a good tool

* **One job.** "Look up an order" and "cancel an order" are two tools, not one with a mode switch. The AI chooses between clear, narrow tools far more reliably.
* **A description written for the AI, not for you.*&#x2A; Say when it should be used, in plain language: &#x2A;"Use when the caller asks about the status or delivery date of an existing order. Requires their order number."*
* **Fast.** Every second of a tool call is a second of silence on a live phone call. Anything over a few seconds needs a good waiting line, and anything much slower is better handled as a follow-up than in-call.
* **A plan for failure.** Systems go down and records aren't found. Decide what the agent says then — and if it's in a pathway, give that outcome its own path.

## Where to go next

<Cards>
  <Card icon={<Package />} title="Ready-made tools" href="/docs/tools/ready-made-tools" description="Business hours, Slack alerts, your CRM and My Contacts — set up in a minute, no building." />

  <Card icon={<Lightbulb />} title="Ways to use tools" href="/docs/tools/examples" description="Seven concrete tools worth building, what each does, and how the conversation uses the result." />

  <Card icon={<Hammer />} title="Build a custom action" href="/docs/tools/building-a-tool" description="A complete worked example — from your own software's web address to an agent using it live." />
</Cards>
