Glossary

Function Calling / Tool Use

LLM capability to emit structured function calls instead of free text (e.g. bookAppointment(tuesday, 10:00)). Foundation of reliable CRM/EHR integration in phone contexts.

Function calling is the ability of a large language model to emit a structured call to a predefined function — e.g. `book_appointment(date, time, treatment)` — instead of a free-text reply. For an AI phone assistant it is the central mechanism that translates natural language into deterministic backend actions.

In a voice-AI stack you register tools (CRM lookup, calendar slot query, ticket creation, payment-link send) with a JSON schema. At runtime the model decides which tool to invoke when, and the application executes the call against the real API. Results flow back into the dialogue as tool results.

Operational hardening: strict parameter schemas with required fields and enums, per-use-case allow-listing of callable functions, idempotency keys for mutating calls, and an audit log of every invocation. Without these guardrails, function calling becomes a prompt-injection attack surface.

FAQ
When should I use function calling instead of a webhook?
Function calling is the inner layer — the model decides mid-conversation what should happen. Webhooks are the outer layer that ship the final outcome out of the system. They complement each other.
Does the model hallucinate parameters?
With a strict JSON schema and required fields, the model refuses the call instead of inventing values. The application should additionally validate every parameter server-side.
Go deeper in the docs

Next step

See BHOMY in a 15-minute demo on a real call example.

🍪

Cookies & Privacy

We use cookies to provide you with the best possible experience on our website. Some of them are technically necessary, others help us improve the website.