> 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

Entidades de sistema são entidades predefinidas incorporadas ao Chatlayer que correspondem a um determinado padrão geral amplamente utilizado.

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="https://181262846-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LLTwFwbOqJj4dDhg8Ju%2Fuploads%2FDt5zSKjcfWZ3D8zwpawQ%2FScreenshot%202024-08-23%20at%2012.00.43.png?alt=media&amp;token=789cb8cb-d385-46a2-9e2b-eefe1d247289" 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="https://181262846-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LLTwFwbOqJj4dDhg8Ju%2Fuploads%2FGScJy1XjPzbTp1v580dJ%2FScreenshot%202024-08-23%20at%2012.08.06.png?alt=media&amp;token=66de9e09-b7cb-4cf6-8fa9-64f1a00ab6aa" 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="https://181262846-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LLTwFwbOqJj4dDhg8Ju%2Fuploads%2Fv2pQqtHvTIcg1GW0gmzU%2FScreenshot%202024-08-23%20at%2012.09.23.png?alt=media&amp;token=5f3ff54d-a82a-43ab-89c7-71b85386720f" 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 by asking a question.

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

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