---
title: "Prompt"
description: "Local-first visual environment for building and running AI workflows. Build agents visually, deploy anywhere, privacy by design."
canonical: https://docs.nodetool.ai/nodes/nodetool/text/prompt
markdown: https://docs.nodetool.ai/nodes/nodetool/text/prompt.md
product: NodeTool
source: https://github.com/nodetool-ai/nodetool/blob/main/docs/nodes/nodetool/text/prompt.md
---

# Prompt

**Type:** `nodetool.text.Prompt`

**Namespace:** `nodetool.text`

## Description

Compose a prompt string with named variables. Add variables via the Add Variable button; reference them in the prompt as {{ variable }} (or {variable}). Supports filters: {{ var|upper }}, {{ var|lower }}, {{ var|capitalize }}, {{ var|title }}, {{ var|trim }}, {{ var|truncate(n) }}, {{ var|default(val) }}.
    prompt, text, template, variable, llm, agent

## Properties

| Property | Type | Description | Default |
|----------|------|-------------|---------|
| prompt | `str` | Prompt text. Reference variables with {{ name }} or {name}. | `` |

## Outputs

| Output | Type | Description |
|--------|------|-------------|
| output | `str` |  |

## Related Nodes

Browse other nodes in the [nodetool.text](./) namespace.
