> For the complete documentation index, see [llms.txt](https://guide.digicust.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://guide.digicust.com/features/data-extraction/emails.md).

# Emails

Dexter's data extraction feature also includes the ability to extract data from emails, making it even easier for customs brokers and other businesses to streamline their customs declaration process. With this feature, businesses can simply forward emails containing customs documents and additional information to Dexter, and the software will extract relevant customs information such as freight costs, customs offices, and ATB numbers directly from the email body and attachments.

This feature is powered by the latest natural language processing technologies, which enable Dexter to understand the text contained within the email body and accurately extract the relevant data points. With this technology, Dexter can even extract data from unstructured text, such as email signatures or footers, and accurately capture critical information.

Email extraction works in ANY language!

> FROM: <some@broker3423.de>
>
> TO: <import@digicust.com>
>
> SUBJECT:  New customs case
>
> Hello all,
>
> Attached is a new ATB for the above shipment for Acme Corp.
>
> <mark style="color:orange;">ATB1505871701206748510024</mark> \
> \
> Your shipment data:
>
> Quantity: <mark style="color:orange;">1</mark> Type: - Weight: <mark style="color:orange;">388.500 \[kg]</mark> Further documents from Acme Corp will follow. <mark style="color:orange;">Ocean</mark> freight: <mark style="color:orange;">200 USD</mark> DV1 = <mark style="color:orange;">278.25 EUR</mark>
>
> Please let us know once the shipment has been cleared by customs.
>
> Thank you! Best regards

By automating the data extraction process for emails, Dexter enables businesses to save time and resources while ensuring the accuracy and completeness of extracted data. With this feature, businesses no longer need to manually sort through emails and extract relevant information, freeing up valuable time for more value-adding tasks.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://guide.digicust.com/features/data-extraction/emails.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
