> For the complete documentation index, see [llms.txt](https://docs.floui.io/guia/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.floui.io/guia/conectores/categorias/conectores-essenciais/mascara.md).

# Máscara

Aplica uma máscara sobre um conteúdo para formatá-lo.

{% tabs %}
{% tab title="Parâmetros" %}

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXcE9_78XKjP0ChRDZhHEwliUPzijkoLQw8ib8i0tD2w5Mzot1bcEj-vO9RZpEI01S48us90LRtXrC4Zno_oxanUR59I25uGU1pPHHV3ziIcNeqkJz26nhJhb6fTq-ynITI6DPLNZw?key=yLogrgEbXy0K_a4zmB9ApgKO" alt=""><figcaption><p>Parâmetros de configuração</p></figcaption></figure>

| Campo                                      | Tipo           | Descrição                                                                                                                                                                         |
| ------------------------------------------ | -------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Descrição                                  | Campo de texto | Descrição visual do conector no editor de fluxo.                                                                                                                                  |
| Selecione o tipo de máscara a ser aplicada | Seletor        | <p>Permite selecionar qual o formato da máscara a ser aplicada sobre o conteúdo.</p><p>Opções disponíveis:</p><ul><li>CPF</li><li>CNPJ</li><li>CEP</li><li>Celular (BR)</li></ul> |
| Valor a ser aplicado a máscara             | Campo de texto | Conteúdo que será usado para aplicar a máscara                                                                                                                                    |
| Output Path                                | Campo de texto | Refere-se ao caminho do conteúdo gerado na saída do conector no contexto de execução do fluxo                                                                                     |
| {% endtab %}                               |                |                                                                                                                                                                                   |

{% tab title="Payload" %}

## Payload

Atualmente, o conector Máscara permite a aplicação de máscaras apenas em conteúdos numéricos. Caso sejam inseridos valores de texto, a execução resultará em erro.

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXeVdujXaWNbfPWFTD853Q8qsRKLUDIlIMarwnR2mqH18oK3P3w0lo-SNtopdL2S3s4ZBEP36XZvxCKTuWpDwclSLELooBsUC0pD43XzHz8scN5aCrDGCu1iuZY5bJ40OZmuc-YvBQ?key=yLogrgEbXy0K_a4zmB9ApgKO" alt=""><figcaption></figcaption></figure>

Se o conteúdo aplicado à máscara não corresponder exatamente ao número de dígitos definidos, seja excedendo ou não atingindo o tamanho esperado, a execução resultará em erro. Portanto, é essencial garantir que o conteúdo esteja em conformidade com o formato exigido pela máscara antes de sua aplicação.

Correto:

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXdf_2i3s1Q6UB8bfIN35GP6gERXsUPanY-L2sj5TpzP_YEuONIm2M5PKBOZAviwrBy5n5Oywhx3BGwcaCDQH7SI8eb4qW9In1L73VZldRbt6yIVS8t1x-aqbby81iNqVi4oNYyaaA?key=yLogrgEbXy0K_a4zmB9ApgKO" alt=""><figcaption><p>Aplicação correta da máscara em CEP</p></figcaption></figure>

Incorreto:

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXeBNq52jI5l-yF8ukXOLUrCXANPjSyQQqN1E_5rk1yj4oOD-8VE8utYhcMVFDCsrdPumfSy44r_q7nu9FglNjZp3wlg1TWRHhbC50tosoK5kYSfr18Hk4XS7iwnNAO9iTzmOQNK?key=yLogrgEbXy0K_a4zmB9ApgKO" alt=""><figcaption><p>Aplicação incorreta da máscara em CEP</p></figcaption></figure>
{% endtab %}
{% endtabs %}


---

# 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.floui.io/guia/conectores/categorias/conectores-essenciais/mascara.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.
