# Modelo de variáveis para prompts

> Preencha variáveis nomeadas sem executar código de template.

[Open tool](https://www.toolcabana.com/pt-br/prompt-template) · [IA e ferramentas de prompts](https://www.toolcabana.com/pt-br/category/ai-and-prompt-tools)

Tool ID: prompt-template. Requested language: pt-BR. Description language: pt-BR. Complete guide translation: yes.

## Overview (en)

Prompt variable templater fills {{placeholders}} in a prompt with values from a JSON object you provide, using plain text substitution with no template code executed. Placeholder names start with a letter or underscore and may contain dots or hyphens, spaces inside the braces are allowed, and any placeholder without a matching key stops the run with a list of the missing names.

## Supported tasks (pt-BR)

Preencha variáveis nomeadas sem executar código de template.

## Steps (pt-BR)

1. Cole a fonte no editor de entrada ou carregue o exemplo integrado.
2. Configure as variáveis (objeto JSON).
3. Execute o modelo de variáveis para prompts, revise a saída e use os controles disponíveis para copiar ou baixar.

## Settings

- Variáveis (objeto JSON) (pt-BR; key: variables; type: textarea)

## Limitations (pt-BR)

As operações de texto aceitam geralmente até 2,000,000 caracteres. Analisadores, geradores e fórmulas individuais aplicam limites adicionais mostrados pelos seus controles.

## Example input

```text
Explain {{topic}} to {{audience}} with one example.
```

## Privacy and connections (pt-BR)

Esta operação processa sua fonte no seu navegador. Copiar e baixar são ações explícitas; a entrada de origem não é salva em conta nem em histórico.

## Questions (pt-BR)

### How do I format variables for the prompt templater?

Enter a single JSON object whose keys match your placeholder names, for example topic and audience keys for {{topic}} and {{audience}}. Arrays, plain strings and invalid JSON are rejected with the message that variables must be a JSON object.

### What happens if a variable is missing from the JSON?

The tool lists every placeholder that has no matching key, for example Missing variables: audience, and produces no output until you add them. Extra keys that do not appear in the template are ignored.

### Can I use nested objects or dotted names like {{user.name}}?

Dotted names are allowed but matched literally, so {{user.name}} needs a top-level key named user.name; nested lookup is not performed. If a value is itself an object or array, it is inserted as compact JSON text.

### Onde minha entrada é processada?

Esta operação processa sua fonte no seu navegador. Copiar e baixar são ações explícitas; a entrada de origem não é salva em conta nem em histórico.

### Quais são os limites de entrada?

As operações de texto aceitam geralmente até 2,000,000 caracteres. Analisadores, geradores e fórmulas individuais aplicam limites adicionais mostrados pelos seus controles.

## Related tools

- [System prompt builder](https://www.toolcabana.com/pt-br/system-prompt)
- [Prompt comparison checklist](https://www.toolcabana.com/pt-br/prompt-checker)
- [Resume prompt builder](https://www.toolcabana.com/pt-br/resume-prompt)
- [SEO prompt builder](https://www.toolcabana.com/pt-br/seo-prompt)
