> 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-pt/loja-virtual-pacotes-e-power-ups/power-ups/mail-to-workorder/criar-e-gerir-configuracoes-de-email.md).

# Criar e gerir configurações de email

Criar as regras que definem como os emails se tornam ordens de trabalho.

A **Configuração de email** define como o Mail to WorkOrder processa um email correspondente.

É possível criar várias configurações para diferentes remetentes, assuntos ou tipos de pedido.

### O que uma Configuração inclui

Uma Configuração pode conter:

* um nome e uma descrição
* um Estado ativo ou inativo
* uma regra de correspondência
* regras de correspondência de Cliente
* valores forçados
* regras regex

### Criar uma Configuração

{% stepper %}
{% step %}

### Abrir o Mail to WorkOrder

Ir para **Automação** → **Mail para Ordem de trabalho**.
{% endstep %}

{% step %}

### Abrir a secção de Configuração

Deslocar-se até à lista de configurações.
{% endstep %}

{% step %}

### Adicionar ou duplicar uma Configuração

Criar uma nova Configuração ou duplicar uma existente.
{% endstep %}

{% step %}

### Preencher os elementos básicos

Adicionar um nome claro, uma descrição e um Estado.
{% endstep %}

{% step %}

### Adicionar a lógica de correspondência

Escolher o Tipo de remetente e o valor correspondente.

Em seguida, adicionar regras de correspondência de Cliente.
{% endstep %}

{% step %}

### Adicionar regras de processamento

Configurar valores forçados, regras regex ou Configuração Avançadas.
{% endstep %}

{% step %}

### Guardar e testar

Guardar a Configuração.

Depois, testá-la com um email real ou um WorkOrder Drop.
{% endstep %}
{% endstepper %}

### Boas práticas

* usar nomes claros por tipo de pedido
* manter uma regra de recurso separada das regras específicas
* testar Alterações com emails de exemplo antes de uma utilização alargada

### Perguntas frequentes

<details>

<summary>É possível ter várias Configurações ativas?</summary>

Sim.

O Mail to WorkOrder pode avaliar várias Configurações ativas.

</details>

<details>

<summary>E se um email corresponder a mais do que uma Configuração?</summary>

A ordem de correspondência é importante.

Manter as regras específicas acima das regras amplas de captura geral.

</details>

<details>

<summary>É possível duplicar uma Configuração?</summary>

Sim.

Criar uma regra semelhante é muitas vezes a forma mais rápida.

</details>

### Tópicos relacionados

* [**Compreender as regras de correspondência e os tipos de remetente**](https://knowledge.out-smart.com/outsmart-knowledge-base/outsmart-knowledge-base-pt/loja-virtual-pacotes-e-power-ups/power-ups/mail-to-workorder/perceber-as-regras-de-correspondencia-e-os-tipos-de-remetente.md)
* [**Configurar valores e parâmetros forçados**](https://knowledge.out-smart.com/outsmart-knowledge-base/outsmart-knowledge-base-pt/loja-virtual-pacotes-e-power-ups/power-ups/mail-to-workorder/configurar-valores-fixos-e-parametros.md)
* [**Analisar o conteúdo dos emails com regex e opções avançadas**](https://knowledge.out-smart.com/outsmart-knowledge-base/outsmart-knowledge-base-pt/loja-virtual-pacotes-e-power-ups/power-ups/mail-to-workorder/analisar-o-conteudo-do-email-com-regex-e-opcoes-avancadas.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-pt/loja-virtual-pacotes-e-power-ups/power-ups/mail-to-workorder/criar-e-gerir-configuracoes-de-email.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.
