> For the complete documentation index, see [llms.txt](https://docs.chatlayer.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.chatlayer.ai/chatlayer-documentation-pt-br/nlp/natural-language-processing-nlp/detect-information-with-entities/system-entities.md).

# Entidades de sistema

Você pode pensar em entidades de sistema como [entidades de correspondência ](/chatlayer-documentation-pt-br/nlp/natural-language-processing-nlp/detect-information-with-entities/match-entities.md)que são pré-configuradas justamente porque se encaixam em padrões regulares e típicos que seriam amplamente usados em conversas com bots.

<figure><img src="/files/7eda650c99057830fb11628eebc33a3bf76bb003" alt=""><figcaption><p>Aba de entidades de sistema.</p></figcaption></figure>

O Chatlayer.ai oferece suporte às seguintes entidades de sistema:

| Nome da variável      |                                                                                                                                                                                                         | Exemplo de entrada do usuário                            | Exemplo de resultado na sessão                                                                                   |
| --------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- |
| `sys.email`           | Valida se a entrada do usuário tem formato de e-mail                                                                                                                                                    | "<ilovebots@chatlayer.ai>"                               | `sys: {email: 'ilovebots@chatlayer.ai'}`                                                                         |
| `sys.phone_number`    | Aceita números com mais de 6 e menos de 17 dígitos                                                                                                                                                      | "+32 487 23 02 03"                                       | `sys: {phone_number: '(+32) 487230203'}`                                                                         |
| `sys.ordinal`         |                                                                                                                                                                                                         | "5th"                                                    | `sys: {ordinal: '5'}`                                                                                            |
| `sys.amount_of_money` |                                                                                                                                                                                                         | "5 euro"                                                 | `sys: {amount_of money: '5', amount_of_money_currency: 'EUR'}`                                                   |
| `sys.distance`        |                                                                                                                                                                                                         | "5 quilômetros"                                          | `sys: {distance: '5', distance_unit: 'quilômetro'}`                                                              |
| `sys.number`          | Reconhece qualquer número.                                                                                                                                                                              | "oitenta e oito"                                         | `sys: {number: '88'}`                                                                                            |
| `sys.quantity`        |                                                                                                                                                                                                         | "3 litros"                                               | `sys: {quantity: '3', quantity_unit: 'litro'}`                                                                   |
| `sys.temperature`     |                                                                                                                                                                                                         | "80C"                                                    | `sys: {temperature '80', temperature_unit: 'celsius'`                                                            |
| `sys.time`            |                                                                                                                                                                                                         | "amanhã às 15h"                                          | `sys: {time: '2020-12-25T15:00:00.000+00:00', time_grain: 'hora'}`                                               |
| `sys.url`             | Verifica se a entrada fornecida é uma URL. Os formatos aceitos podem ser com www (*[www.chatlayer.ai](http://www.chatlayer.ai)*) ou sem (*chatlayer.ai*). Apenas o domínio 'chatlayer' não será aceito. | "[www.chatlayer.ai/jobs](https://www.chatlayer.ai/jobs)" | `sys: {url: 'www.chatlayer.ai/jobs', url_domain: 'chatlayer.ai'}`                                                |
| `sys.duration`        |                                                                                                                                                                                                         | "3 horas"                                                | `sys: {duration: '3', duration_unit: 'hora', duration_normalized: '10800', duration_normalized_unit: 'segundo'}` |

{% hint style="warning" %}
Você nunca deve sobrescrever as Entidades de Sistema manualmente – elas são sobrescritas automaticamente pela última variável detectada (se algum valor for detectado). Então, em vez disso, salve a Entidade de Sistema em uma [variável](/chatlayer-documentation-pt-br/navegacao/settings/secure-variables-gdpr.md) de sua preferência fora dos `sys` ou `internos` espaços de nomes.
{% endhint %}

## Usar entidades de sistema

Para usar entidades de sistema no seu bot:

1. Crie um [**Coletar entrada**](/chatlayer-documentation-pt-br/buildabot/flow-logic/dialog-state/user-input-bot-dialog.md) bloco. Por exemplo, faça-o como um bloco que pede o e-mail do usuário.

{% hint style="danger" %}
Observe que o número de entidades de sistema que você pode usar dentro de um **Coletar entrada** bloco é limitado. As entidades do sistema que você pode usar dentro desses blocos são: **sys.email**, **sys.phone\_number**, **sys.url**, **sys.number** e **sys.time**.
{% endhint %}

2. Em **Capturar resposta como**, role para baixo até encontrar a lista de **entidades de sistema**.
3. Selecione a entidade de sistema de sua escolha. Para este exemplo, selecionaríamos `@sys.email`.

<figure><img src="/files/8a17a4c9d85cf0a2c349b8cb5f5115a48ad72cdf" alt="" width="327"><figcaption><p>Selecione uma entidade de sistema.</p></figcaption></figure>

4. Em **Salvar variável como**, escolha uma variável para armazenar o valor da entidade.

<figure><img src="/files/dfe5d8b8e4c4e37db21202bf668d967d9d2aaf52" alt="" width="325"><figcaption><p>Salvar o valor da entidade de sistema em uma variável</p></figcaption></figure>

4. Clique em **Salvar**.


---

# 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://docs.chatlayer.ai/chatlayer-documentation-pt-br/nlp/natural-language-processing-nlp/detect-information-with-entities/system-entities.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.
