Text: Compose from template

action_text_template · action · Utility · Available · v1.0.0

Description

Compose a string from a template with {{var}} placeholders. Typical: personalized subject/body emails, notification messages, LLM prompts. Substitutions with nested paths ({{customer.address.city}}) and fallback ({{name|default Anonymous}}).

⚙️ Configuration parameters

Fields shown in the editor when configuring the node. Generated directly from the NodeDefconfigFields.

FieldTypeRequiredDefaultDescription
template
Template stringa
expressionyes
Gentile {{cliente}}, il tuo ordine {{ordine}} è stato spedito il {{data}}.
Stringa con segnaposti {{nome_variabile}}. Supporta path nested ({{user.email}}) e fallback ({{name|default Sconosciuto}}). Riferimenti a nodi precedenti via {{$node.NomeNodo.json.campo}} sono interpolati PRIMA del template engine.
dataExpression
Sorgente variabili (opzionale)
expressionno
{{$node.lookup_cliente.json.rows.0}}
Espressione che ritorna un oggetto da cui pescare le variabili del template. Se vuoto, usa l'input del nodo precedente.
trim
Rimuovi spazi/newlines extra
booleannofalseSe ON, collassa whitespace multipli a un solo spazio e fa trim del risultato. Utile per output destinati a UI che non gradiscono \n\n consecutivi.

⬆️ Node output

Fields available to downstream nodes via $node.<alias>.json.<field>:

  • text
  • length

💡 Configuration example

JSON snippet of the node as it appears in the workflow. Values are derived fromdefaultValue and from required parameters.

{
  "id": "node-action_text_template-1",
  "defId": "action_text_template",
  "label": "Text: Compose from template",
  "config": {
    "template": "Gentile {{cliente}}, il tuo ordine {{ordine}} è stato spedito il {{data}}.",
    "trim": false
  }
}

🔗 Related nodes in the same category

Ready to use Text: Compose from template?

Available now on all FlowForge plans. Try it free without a credit card.

Start freeBrowse all nodes