Text templates: an email writer

Combine several inputs into one complete prompt with {{variables}}.

Beginner4 min

In this lesson

  • Building a prompt with {{variables}}
  • Each variable becomes an input port

Build it yourself

This workflow is created in your account and opened in the editor, where you can change and run it.

The nodes in this workflow

Recipient

recipient

Who the email is for.

Topic

topic

What to write about.

Tone

tone

Formal, friendly, short…

Text template

{{recipient}} {{topic}} {{tone}}

Puts the three values into one full instruction; each {{name}} becomes a port.

Language model

Claude Haiku

Writes the email.

Email

email

Returns the result under this key in the API response and in chat.