> 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/template.md).

# Template

Aplica um template de texto, podendo realizar a conversão para objeto Javascript.

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

<figure><img src="https://215079342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F226k0cnPTn1PWu9xHcK8%2Fuploads%2F2cZxXUbqsbmseQeQNr81%2Fimage.png?alt=media&amp;token=c0894b37-2c73-4248-b1f9-fceef1e5ed12" alt=""><figcaption><p>Parâmetros de configuração</p></figcaption></figure>

<table><thead><tr><th width="227.66666666666666">Campo</th><th width="109">Tipo</th><th>Descrição</th></tr></thead><tbody><tr><td>Descrição</td><td>Campo de texto</td><td>Descrição visual do conector na construção do fluxo.</td></tr><tr><td>Conteúdo do template</td><td>Campo de texto</td><td>Estrutura de conteúdo à ser enviado.</td></tr><tr><td>Converter conteúdo em JSON</td><td>Seletor</td><td>Escolha se haverá conversão de conteúdo template para formato JSON.</td></tr></tbody></table>
{% endtab %}

{% tab title="Payload" %}

## Sucesso

Em casos de sucesso o conector irá retornar o conteúdo de acordo com o template aplicado. Também é possível acessar valores dinâmicos da execução do fluxo para montar o template, através da notação Mustache.

<figure><img src="https://215079342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F226k0cnPTn1PWu9xHcK8%2Fuploads%2FfJCdMBeDqwIIV3x3gM6K%2Fimage.png?alt=media&amp;token=50efcbb4-0c21-473c-b935-d2a6f9f589d0" alt=""><figcaption><p>Exemplo de template simples.</p></figcaption></figure>

O conteúdo poderá ser retornado como uma String ou objeto Javascript formatado.

<figure><img src="https://215079342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F226k0cnPTn1PWu9xHcK8%2Fuploads%2FTL9UZ1LsJXFNOIaOJEul%2Fimage.png?alt=media&amp;token=eb8f6866-e16d-44ea-90bd-3269a889dac4" alt=""><figcaption><p>Conteúdo em formato de objeto.</p></figcaption></figure>

<figure><img src="https://215079342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F226k0cnPTn1PWu9xHcK8%2Fuploads%2Fu1Qig3J0yKd5g81OLG0q%2Fimage.png?alt=media&amp;token=3e88b2f2-44b6-4dfd-86d4-b0e851248722" alt=""><figcaption><p>Conteúdo em formato de String.</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/template.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.
