> ## Documentation Index
> Fetch the complete documentation index at: https://dialnexa.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# DialNexa Agent Functions

> Understand DialNexa agent functions such as End Call, calendar booking, custom API functions, function descriptions, and version-specific tool behavior.

DialNexa agent functions are tools the agent can use during a live conversation. Use them when the caller expects the agent to do something, not only say something: end the call, book time, check or update data, or call your own API.

> [!TIP]
>
> Give the agent tools like you would give a person tools: only the ones needed for the job, with labels that make misuse unlikely.

## Before You Begin

Define the exact caller request that should trigger the function, required inputs, expected response, timeout behavior, and what the agent should say when the action fails.

## Function Types In The Builder

The Functions panel shows configurable actions and the platform-managed End Call behavior.

| Function | Typical use |
| - | - |
| End Call | Automatically included on new agents. Ends a completed conversation or honors an explicit request to hang up. This platform-managed row cannot be edited or deleted. |
| Book on the Calendar | Create an appointment using configured calendar credentials and event settings. |
| Custom Function | Call an external API with method, endpoint, headers, query params, JSON schema, and response variables. |

If the action is a dashboard-managed provider such as WhatsApp or email, also read [using integrations in agents](https://dialnexa.com/docs/dashboard-integrations/using-integrations-in-agents.md). If the action should run after a workflow branch rather than during the live call, use [workflow Application nodes](https://dialnexa.com/docs/workflows/application-nodes.md).

## Platform-Managed End Call

End Call appears automatically on new agents and has no edit or delete controls. Its displayed description explains the behavior; editing a custom function description does not configure hangup detection. Use [Call Settings](https://dialnexa.com/docs/agent-settings/call-settings.md) for silence and duration limits, and test the intended closing behavior.

The End Call row alone does not disable predictive preprocessing or require a tool-calling model. Those rules apply when you add callable functions such as calendar booking or an external API action.

## Function Descriptions Matter

The model relies on descriptions to decide when to call a function.

> [card] [Name for the model](https://dialnexa.com/docs/agent-settings/custom-functions.md)
>
> Use a short function display name that describes the action.

> [card] [When to call it](https://dialnexa.com/docs/agents/prompts-and-welcome-messages.md)
>
> Write a description that tells the agent the exact moment the tool is appropriate.

> [card] [What data is needed](https://dialnexa.com/docs/agents/dynamic-variables.md)
>
> Use dynamic variables or schema fields for required arguments.

> [card] [What to say while waiting](https://dialnexa.com/docs/agent-settings/custom-functions.md)
>
> Custom functions can use a holding message when the API takes time.

## Add A Function Safely

**1. Choose the action**

Pick built-in function or custom function based on the job.

**2. Write a precise description**

Tell the model when to use it and what outcome it creates.

**3. Configure required inputs**

Add credentials, endpoint fields, event type, timezone, or API schema as needed.

**4. Test the call path**

Ask the caller something that should trigger the function and confirm the result.

**5. Review the call log**

Check transcript and function-related evidence after the call.

## Function Mistakes

> [accordion] Same name collision
>
> The dashboard rejects duplicate function names. Use clear unique names.

> [accordion] Vague description
>
> The model may call the tool too early, too late, or never.

> [accordion] Slow external API
>
> A working API can still create awkward silence. Use timeout and holding messages wisely.

> [accordion] Function left on a published version
>
> Check version state before assuming an edit changed live behavior.

## Verify The Function

Test a successful call, missing input, provider rejection, and timeout. Confirm the agent explains the result correctly and the call transcript in Call History contains enough detail to diagnose failures.

## Related Reading

> [card] [Custom Functions](https://dialnexa.com/docs/agent-settings/custom-functions.md)
>
> Configure external API calls.

> [card] [Post-Call Analysis](https://dialnexa.com/docs/agent-settings/post-call-analysis.md)
>
> Extract results after tools run.

> [card] [Testing Agents](https://dialnexa.com/docs/agents/testing-agents.md)
>
> Trigger tools in realistic calls.

> [card] [Using Integrations In Agents](https://dialnexa.com/docs/dashboard-integrations/using-integrations-in-agents.md)
>
> Connect provider actions when the agent needs a managed integration.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.