> For the complete documentation index, see [llms.txt](https://docs.borndigital.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.borndigital.ai/digital-agent/campaigns/unsuccessful-calls.md).

# Unsuccessful calls

What happens when a campaign call is dialled but the contact does not pick up - and how to decide in the Start node what the voicebot does in each case.

Not every dialled call is answered. The line can be busy, nobody picks up, the call drops or the number does not exist.

**Even when the contact does not pick up, the conversation always reaches your flow.** It starts in the **Start node** together with the reason why the call was not connected. In the **Call unsuccessful** section of the Start node you decide what the voicebot does in each of these scenarios.

## How it works

1. The campaign dials the contact.
2. The contact does not pick up - e.g. the line is busy or nobody answers.
3. The conversation starts in your flow, in the **Start node**, together with the reason (*Busy*, *No answer*, *Disconnected*, *Error*, *Wrong number*).
4. The **Call unsuccessful** section sends the conversation to the node you selected for that reason - or simply ends it.
5. From that node the flow continues as usual: you can set variables, use smart functions, send data to your system or [save a result for the campaign](https://docs.borndigital.ai/digital-agent/campaigns/campaign-smart-functions.md#update_campaign_call_result).
6. Independently of the flow, the campaign schedules the next attempt according to its [Call again](https://docs.borndigital.ai/digital-agent/campaigns/creating-a-campaign.md#call-again-retries) settings.

## Where to find it

Open the **Start node** of your flow and scroll down to the **Call unsuccessful** section.

<figure><img src="https://4261467870-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6iQTvxgRZRwPS1NgIGEb%2Fuploads%2ForoqG58dKQqkkF1DxN8j%2Fimage.png?alt=media&amp;token=39132e4c-a6f0-409f-bbda-2bb5f52012ed" alt=""><figcaption></figcaption></figure>

## Reasons

| Reason           | When it happens                                                                         |
| ---------------- | --------------------------------------------------------------------------------------- |
| **Busy**         | The contact rejected the call or the line was busy.                                     |
| **No answer**    | The phone rang, but nobody picked up in time.                                           |
| **Disconnected** | The call ended before it was answered (e.g. the phone is switched off or out of reach). |
| **Error**        | The call could not be placed because of a technical error.                              |
| **Wrong number** | The dialled number does not exist.                                                      |

## Settings

### End process

* **On** (default) - every unsuccessful call simply ends the conversation. The conversation gets the status from the **Status** field (default *Outbound call not connected*; you can also select a variable with the **x** icon). The routing below is not available.
* **Off** - unsuccessful calls are sent to the nodes you choose below. The *Status* field is not used.

{% hint style="info" %}
The **Status** is the status of the conversation shown in reporting and statistics. It does not change the status of the contact in the campaign.
{% endhint %}

### Other

The default **Node** for all reasons that do not have their own row. Every unsuccessful call that is not handled more specifically goes here.

### Add

Click **+ Add**, tick one or more reasons (*Busy*, *No answer*, *Disconnected*, *Error*, *Wrong number*) and click **Done**. Each selected reason gets its own row where you pick a **Node** just for that scenario. To remove a row, delete it - the reason then goes to *Other* again.

### Dynamic

Switch **Dynamic** on when the target should not be a fixed node. Instead of a node you select a **variable** that contains the name of the node to go to. This is useful when the next step depends on the conversation context.

{% hint style="warning" %}
Switching **End process** on or off resets all routing in this section.
{% endhint %}

## Step by step

1. Create the node(s) that should handle unsuccessful calls - e.g. a function node `FNC_CALL_NOT_CONNECTED`.
2. Open the **Start node** and go to **Call unsuccessful**.
3. Switch **End process** off.
4. In **Other**, select `FNC_CALL_NOT_CONNECTED` as the **Node**.
5. If some reasons need different handling, click **+ Add**, tick them, click **Done** and select a node for each.
6. Save the node and deploy the flow.

## Example: different handling for each scenario

| Reason                                     | Node                     | What the node does                                                                                                                                                        |
| ------------------------------------------ | ------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Busy**                                   | `FNC_BUSY`               | Uses **Update campaign call result** with status `busy` and *Custom retry delay* `15` - the contact is called again in 15 minutes instead of the campaign default.        |
| **Wrong number**                           | `FNC_WRONG_NUMBER`       | Uses **Update campaign call result** with status `wrong-number`. This status is not in the campaign's *Statuses* list, so the contact is closed and **not called again**. |
| **Other** (No answer, Disconnected, Error) | `FNC_CALL_NOT_CONNECTED` | Sets the reporting status and ends the conversation. The campaign retries according to its *Call again* settings.                                                         |

{% hint style="danger" %}
**Choose the status you send to the campaign carefully.** If the contact should be called again, send `busy`, `no-answer`, `disconnected` or a status listed in the campaign's *Statuses*. Any other status closes the contact as *Processed* and it will **not** be called again.
{% endhint %}
