X-TALKPlaybook Edition 2.0 · 2026
Try X-TALK
Glossary4 min read

Tool calling: how an AI agent checks, books and records things in your systems

Without tools an agent only knows documents. With tools it checks, books, opens and records things in the systems the company already uses. It's the step from answering questions to getting things done.

How a tool call works

A tool is a description of one action for the model: what it does, when to use it and what data it needs. Based on that, the agent decides when to call it and asks only for the missing data. There's no decision tree to program.

  1. 01

    Intent

    “A snowboard instructor for this Thursday” → book a lesson.

  2. 02

    Variables

    Discipline: snowboard, date: this Thursday → an actual date.

  3. 03

    Missing data

    The agent asks only for what the tool needs. A required field means it won't call the tool until it has it.

  4. 04

    The call

    A structured request to the booking system's API.

  5. 05

    The reply

    The result goes into the context, and the agent talks about it in natural language, in the caller's language.

Caller
I'd like to book a snowboard instructor for this Thursday.
System
→ check_availability(discipline="snowboard", date="2026-11-12", type="individual")
← 10:00 Marek · 14:00 Anna · 2 h · 250 PLN · equipment included
Agent
On Thursday I have two instructors free: Marek at ten and Anna at two. The lesson is two hours, costs 250 złoty, and equipment is included. Which time suits you?

The example uses sample data, but the same mechanism runs in production.

In production: a booking with a deposit and a ticket in ITSM

⛷️

SnowUp: booking in Manager5

The ski school's agent books the slot directly in the system the school uses for its instructors' schedule, and right away sends a deposit payment link generated by that system. SnowUp case study

🏪

Dealz: a ticket in ServiceDesk Plus

The agent talks to a store employee and collects the fault details; once they're complete, the ticket goes to ManageEngine ServiceDesk Plus. Dealz case study

Where the agent gets its tools

📦

Integration catalogue

Ready-made connections including HubSpot, Pipedrive, Zendesk, Freshdesk, Shopify, PrestaShop, WooCommerce, InPost and Cal.com. Connect with an API key and the agent gets ready-made tools.

🤖

Custom tools with Copilot

For any system with an API. Describe what you need, and Copilot writes the model definition, the code and the tests. You review and publish.

🔌

API and MCP

The other way round: other systems and AI assistants use X-TALK's data and functions.

The tools Copilot (Polish interface): changing a tool from a conversation. Copilot proposes the code, the model definition and tests, and a person decides whether to apply them and publish the version.

Copilot only changes the draft. Publishing is a deliberate decision and can be undone with one click. Keys to your systems go into an encrypted vault: neither the agent nor Copilot can see them.

How to design a good tool

  • One tool, one action: “check order status”, not “handle the order”.
  • The description says when to call it and when not to. List example situations.
  • Parameters in the caller's language: format, units, an example (“down payment as a percentage, e.g. 10”).
  • Value dictionaries: “snowboard” → the discipline ID in the API, a list of allowed values.
  • A result that's ready to say: short fields and a clear error message.
  • Verification before personal data: order status only after confirming e.g. the e-mail address.
  • Speed on the phone: every call is a moment of silence, so a fast API matters, or give the agent a line to say while it waits.

Frequently asked questions

How is tool calling different from RAG?

RAG answers from documents in the knowledge base. Tool calling reaches into the company's systems live: it checks data that isn't in any document and performs actions, such as a booking.

Can the agent write data into systems, not just read it?

Yes. A tool can open tickets, save leads or make bookings. What it can do depends on what the API offers and what the tool describes.

How long does it take to build a custom tool?

With Copilot, usually hours rather than weeks: you describe the goal and point to the API documentation, and Copilot prepares the definition, code and tests for you to review.

What happens when the external system doesn't respond?

The agent says plainly that it can't check right now and offers a next step, such as a ticket or a consultant. It doesn't guess the result. The tool's tests cover error cases.

More: chapter: Tools and integrations · chapter: Prompt vs RAG vs tools. Product: X-TALK custom tools.

Ready for the next step?

Describe your company in the free Copilot on x-talk.me. In a few minutes you will see your own agent in chat and on the phone. Or let's talk about what an AI communication centre could look like in your company.

+48 732 106 896 · x-talk.me