Function Calling

The bridge that lets a language model actually control your existing systems and tools instead of just returning text.

Function calling, tool calling, tool use

Definition

Function calling is a capability of AI models that allows them to invoke predefined software functions in external systems, so they can take actions rather than only generating text.

What is it?

Function calling is a mechanism that lets an AI model signal, during a conversation or task, that it wants to call a specific function, such as a CRM lookup, a calendar update, or a calculation. The application then executes that function and returns the result to the model.

This makes it possible to connect language models to your own systems. The model reasons and decides which function is needed; the execution stays in your code and systems.

Why it matters for SMEs

Without function calling, a language model is limited to generating text. With it, the model becomes a working part of your business processes: it can retrieve data, create records, and control systems based on what it understands from a message or instruction.

  • It connects AI reasoning to concrete actions in your tools, such as an accounting platform, a CRM, or a scheduling system, without building separate integrations for each task.
  • It makes AI agents useful for real processes: the agent can execute steps in your systems in sequence rather than only formulating an answer.
  • You stay in control: the functions are defined in advance and you decide which actions the model is allowed to call.

For SMEs, function calling is the difference between an AI that gives advice and an AI that finishes work.

How it works

You define a set of functions with a name, description, and parameters. The model receives those definitions and decides during execution which function fits the task. Your application executes the function and sends the result back.

  1. Definition: you describe each available function with a name, purpose, and parameters in a schema.
  2. Request: you send a prompt to the model along with the function schemas.
  3. Decision: the model determines whether a function call is needed and which parameters to use.
  4. Execution: your application catches the call, runs the function in the external system, and sends the result back.
  5. Processing: the model incorporates the result and continues with the task.

The functions themselves run outside the model, in your systems. That keeps you in control of what actually happens.

Example in practice

Picture a staffing agency using an AI assistant to answer candidate questions about open vacancies. When a candidate asks whether places are still available for a specific role, the model uses function calling to query the vacancy API, retrieves the current availability, and incorporates that directly into its reply. The candidate gets an up-to-date answer; the agency does not need to build a separate system for this connection.

Comparison and misconceptions

Prompt engineering guides the model with instructions; function calling gives the model the ability to take actions in external systems as well. An agent without function calling can only answer; with it, it can also do things.

Frequently asked questions

What is function calling and what do you use it for?
Function calling is a mechanism that lets an AI model call a specific function in your own software during a task: a CRM lookup, a calendar update, a calculation. The model decides which function is needed; your system executes it. This connects language model reasoning to concrete actions in your business processes.
Is function calling different from tool calling?
The terms are used interchangeably. OpenAI introduced it as 'function calling'; other providers and frameworks call it 'tool use' or 'tool calling'. The principle is the same: the model signals which action it wants to perform, and the surrounding code carries that action out.
Do you need technical knowledge to use function calling?
For basic configuration in a platform like n8n or Make: little to none. You define the functions via an interface and the platform handles the connection to the model. For custom builds or complex workflows some programming knowledge is useful, but not required to get started.
From insight to impact

Curious what AI
can do for your processes?

In a free intro call we look at where AI saves you the most time, and what a connected setup looks like.