# Compilatore di variabili per prompt

> Compila variabili denominate senza eseguire codice di template.

[Open tool](https://www.toolcabana.com/it/prompt-template) · [Strumenti AI e prompt](https://www.toolcabana.com/it/category/ai-and-prompt-tools)

Tool ID: prompt-template. Requested language: it. Description language: it. 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 (it)

Compila variabili denominate senza eseguire codice di template.

## Steps (it)

1. Incolla l'origine nell'editor di input, oppure carica l'esempio integrato.
2. Imposta le variabili (oggetto JSON).
3. Esegui il compilatore di variabili per prompt, esamina il risultato, poi usa i controlli disponibili per copiare o scaricare.

## Settings

- Variabili (oggetto JSON) (it; key: variables; type: textarea)

## Limitations (it)

Le operazioni di testo accettano in genere fino a 2.000.000 di caratteri. Parser, generatori e formule singoli applicano limiti aggiuntivi mostrati dai relativi controlli.

## Example input

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

## Privacy and connections (it)

Questa operazione elabora i dati di origine nel tuo browser. Copia e download sono azioni esplicite; l'input di origine non viene salvato in un account né in una cronologia.

## Questions (it)

### 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.

### Dove viene elaborato il mio input?

Questa operazione elabora i dati di origine nel tuo browser. Copia e download sono azioni esplicite; l'input di origine non viene salvato in un account né in una cronologia.

### Quali sono i limiti di input?

Le operazioni di testo accettano in genere fino a 2.000.000 di caratteri. Parser, generatori e formule singoli applicano limiti aggiuntivi mostrati dai relativi controlli.

## Related tools

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