> ## 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.

# Using Integrations In DialNexa Agents

> Add integration-backed functions to DialNexa agents with clear action descriptions, required fields, credentials, and call review.

DialNexa agents can use integration-backed actions when those actions are available to the agent function surface. Use this when the agent should perform a specific external action during the call, such as sending a message after consent or triggering a follow-up.

> [!TIP]
>
> Do not give a caller-facing agent an integration action just because the action exists. Give it a reason and a rule.

## Before You Begin

Connect and validate the provider, identify the exact caller intent that should trigger the action, define required fields, and decide what the agent says when the action fails.

## DialNexa Agent Integration Responsibilities

| Layer | Responsibility |
| - | - |
| Integration connection | Stores and validates credentials at the organization level. |
| Action catalog | Defines the provider action, inputs, and label. |
| Agent function | Exposes a selected action to the model with a clear description. |
| Prompt | Explains when the agent should use the action and what consent or information is required. |
| Call History | Shows conversation evidence around whether the action should have run. |
| Provider account | Shows whether the provider received and accepted the action, such as a sent message or email. |

## When To Use An Integration During A Call

| Scenario | Good agent action? | Reason |
| - | - | - |
| Caller asks for a WhatsApp confirmation and the number is known | Yes, Wati can send a message if the function is configured. | The caller intent is clear and the required field exists. |
| Caller asks for an email summary and the email is confirmed | Yes, Resend can send a follow-up email. | The action matches the live request. |
| Workflow should follow up after every completed call | Usually no, use a workflow instead. | Post-call automation is more reliable outside live conversation. |
| Action depends on slow external data | Be careful. | Slow actions create silence during the call unless the prompt handles waiting. |

## Add An Integration Action To An Agent

**1. Connect the integration**

Set credentials and validate the connection first.

**2. Choose the action**

Pick the action that matches the caller-facing outcome, such as a Wati message or Resend email.

**3. Write a strict function description**

Tell the model when to use the action, what values it needs, and when not to call it.

**4. Configure execution speech**

In **Execution Settings**, keep **Speak During Execution** enabled when an action may take more than 2 seconds, and write the short holding message the caller should hear. The default is `One moment please.` Enable **Speak After Execution** only when the agent should announce the result after the action completes.

**5. Collect required values**

Use dynamic variables if the data is known before the call, or prompt the agent to ask the caller when the data is missing.

**6. Test with caller phrases**

Test direct requests, vague requests, no-consent cases, and missing-field cases.

**7. Review the call**

Open the call in Call History and check the transcript for when the agent called the action and what it told the caller. Confirm the result in the provider account, such as the sent message or email.

## Control What The Caller Hears

| Setting | Default | Result |
| - | - | - |
| Speak During Execution | On | If execution takes more than 2 seconds, the agent can speak the configured holding message. |
| Holding message | `One moment please.` | Gives the caller a short acknowledgement while the action is running. |
| Speak After Execution | Off | The action can complete silently. Enable it when the agent should explain the result before continuing. |

These settings change spoken behavior, not whether the integration request runs. Test both a fast response and a response longer than 2 seconds so the prompt, holding message, and result announcement do not repeat each other.

## Agent Integration Risks

> [accordion] Action runs too early
>
> Tighten the function description and prompt. Require explicit caller intent or required data before the model can call the action.

> [accordion] Action never runs
>
> Make the trigger condition clearer and test with direct caller language that should call the action.

> [accordion] Missing field error
>
> Add dynamic variables, collect the value during the call, or move the action into a workflow after post-call extraction.

> [accordion] Credential expired
>
> Validate the integration connection again before editing the agent prompt.

> [accordion] Live call goes silent
>
> Check how long the action takes in a test call. If the action does not need to happen before the agent replies, move it to a workflow.

## Verify The Agent Integration

Test a successful action, missing field, ambiguous caller request, and provider failure. Confirm the action runs only when intended and that the agent communicates the result accurately.

## Related Reading

> [card] [Agent Functions](https://dialnexa.com/docs/agent-settings/functions.md)
>
> Expose actions to agents.

> [card] [Connecting Integrations](https://dialnexa.com/docs/dashboard-integrations/connecting-integrations.md)
>
> Set up credentials.

> [card] [Integration Functions](https://dialnexa.com/docs/dashboard-integrations/integration-functions.md)
>
> Find where action results appear.

> [card] [Call Detail Page](https://dialnexa.com/docs/monitoring/call-detail-page.md)
>
> Review action context.


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