> For the complete documentation index, see [llms.txt](https://knowledge.out-smart.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://knowledge.out-smart.com/outsmart-knowledge-base/outsmart-knowledge-base-nl/marktplaats-pakketten-en-power-ups/power-ups/e-mail-naar-werkbon/e-mailinhoud-parseren-met-regex-en-geavanceerde-opties.md). Agents can also search and read this documentation through its [MCP server](https://knowledge.out-smart.com/~gitbook/mcp).

# E-mailinhoud parseren met regex en geavanceerde opties

Haal waarden uit de e-mailinhoud en verwerk bijlagen of inhoudsmodi.

Gebruik regex-regels als de e-mail gestructureerde gegevens bevat die u automatisch wilt extraheren.

Gebruik geavanceerde opties als u bijlagen wilt verwerken of een specifieke inhoudsmodus nodig hebt.

### Regex-regels

Een regex-regel bevat meestal:

* het regex-patroon
* het veld dat moet worden ingevuld
* de te gebruiken matchindex

Dit is handig als de e-mail vaste labels bevat, zoals klantnummer, telefoonnummer of objectcode.

### Geavanceerde opties

Geavanceerde opties kunnen onder meer bestaan uit:

* bijlagen verwerken
* kiezen voor **TEXT** of **HTML** als inhoudsmodus
* een debiteurennummer afdwingen

### Wanneer gebruikt u regex in plaats van vaste waarden?

Gebruik vaste waarden als altijd dezelfde waarde moet worden ingevuld.

Gebruik regex als de waarde uit elke binnenkomende e-mail moet worden geëxtraheerd.

### Regex en geavanceerde opties configureren

{% stepper %}
{% step %}

### Open een configuratie

Open de e-mailconfiguratie die u wilt bewerken.
{% endstep %}

{% step %}

### Geavanceerde opties inschakelen

Schakel de geavanceerde modus voor de configuratie in.
{% endstep %}

{% step %}

### Regex-regels toevoegen

Voeg een regex-patroon toe, selecteer het doelveld en kies de juiste matchindex.
{% endstep %}

{% step %}

### Extra opties configureren

Schakel het verwerken van bijlagen in of kies de juiste inhoudsmodus.
{% endstep %}

{% step %}

### Opslaan en testen

Test de configuratie met een voorbeeldmail met de verwachte structuur.
{% endstep %}
{% endstepper %}

### Praktische tips

* begin met eenvoudige patronen
* test met echte e-mailvoorbeelden
* gebruik de TEXT-modus als HTML-opmaak uw patroon verstoort

### Veelgestelde vragen

<details>

<summary>Heb ik kennis van regex nodig?</summary>

Ja.

Regex-regels zijn vooral geschikt voor beheerders die vertrouwd zijn met het testen van patronen.

</details>

<details>

<summary>Wat doet MatchIndex?</summary>

Hiermee wordt bepaald welke waarde van de capturegroep in het veld wordt ingevuld.

</details>

<details>

<summary>Kunnen bijlagen aan de werkbon worden toegevoegd?</summary>

Ja, als het verwerken van bijlagen is ingeschakeld en de bestanden worden ondersteund.

</details>

### Gerelateerde onderwerpen

* [**Geforceerde waarden en parameters configureren**](https://knowledge.out-smart.com/outsmart-knowledge-base/outsmart-knowledge-base-nl/marktplaats-pakketten-en-power-ups/power-ups/e-mail-naar-werkbon/geforceerde-waarden-en-parameters-configureren.md)
* [**E-mailconfiguraties aanmaken en beheren**](https://knowledge.out-smart.com/outsmart-knowledge-base/outsmart-knowledge-base-nl/marktplaats-pakketten-en-power-ups/power-ups/e-mail-naar-werkbon/e-mailconfiguraties-aanmaken-en-beheren.md)
* [**De modus WorkOrder Drop instellen**](https://knowledge.out-smart.com/outsmart-knowledge-base/outsmart-knowledge-base-nl/marktplaats-pakketten-en-power-ups/power-ups/e-mail-naar-werkbon/de-modus-workorder-drop-instellen.md)


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://knowledge.out-smart.com/outsmart-knowledge-base/outsmart-knowledge-base-nl/marktplaats-pakketten-en-power-ups/power-ups/e-mail-naar-werkbon/e-mailinhoud-parseren-met-regex-en-geavanceerde-opties.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
