> 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/tools-reference/contact-details.md).

# Contact details

Phone numbers and e-mail addresses.

Phone numbers and e-mail addresses. How to add a tool and use its result is described in [Tools & smart functions](https://docs.borndigital.ai/digital-agent/tools-reference.md).

| Tool                   | Technical name | What it does                                         | Languages                          |
| ---------------------- | -------------- | ---------------------------------------------------- | ---------------------------------- |
| Extract email          | `first_email`  | Extract first email address from the last utterance. | any                                |
| Phone number extractor | `phone`        | Extracts phone numbers from a user's input.          | cs, sk, pl, de, hr, en, ro, ru, pt |

## Extract email

Technical name: `first_email`

Extract first email address from the last utterance.

| Parameter    | Name           | Required | Default | Description                                                                                                         |
| ------------ | -------------- | -------- | ------- | ------------------------------------------------------------------------------------------------------------------- |
| Custom input | `custom_input` | no       |         | Custom input defined by the user from the flow. If set then it will be used as input instead of the last utterance. |

**Example input:** poslite mi to na <guy123@hotmail.com>

**Example output:**

```
guy123@hotmail.com
```

## Phone number extractor

Technical name: `phone`

Extracts phone numbers from a user's input.

* Languages: cs, sk, pl, de, hr, en, ro, ru, pt.

| Parameter      | Name             | Required | Default | Description                                                            |
| -------------- | ---------------- | -------- | ------- | ---------------------------------------------------------------------- |
| Region         | `region`         | no       |         | Overrides default region for parsing phone numbers (e.g., GB, US, PT). |
| Custom input   | `custom_input`   | no       |         | Specify custom text to parse for phone numbers.                        |
| Return indices | `return_indices` | no       | `False` | Include start and end indices for each found phone number.             |

**Example input:** Sure, please call me at +1 234 567 8900.

**Example output:**

```
+12345678900
```
