> For the complete documentation index, see [llms.txt](https://docs.ixhello.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ixhello.com/ixhc2/flows/flow-editor/template-interpolation-agent-say-node-and-menu-node.md).

# Template Interpolation Agent, Say Node & Menu Node

### Template Interpolation

Text fields (Say, Agent, Menu prompts) use {{expression}} interpolation:

<table data-header-hidden><thead><tr><th valign="top"></th><th valign="top"></th><th valign="top"></th></tr></thead><tbody><tr><td valign="top">Syntax</td><td valign="top">Purpose</td><td valign="top">Example</td></tr><tr><td valign="top">{{expression}}</td><td valign="top">Variable lookup or expression</td><td valign="top">Hello {{name}}, you have {{items.length}} items</td></tr></tbody></table>

* {{expression}} — evaluated by the Expression Engine, matches the next }}
* Simple variable names like {{name}} resolve to a variable lookup
* Complex expressions like {{items.filter(x => x.active).length}} are fully evaluated
* The double-brace delimiter avoids collision with JSON content in system prompts
* Non-printable results (objects, arrays) are JSON-stringified; null/undefined produce empty\
  string
* Errors preserve the original text and log a warning

### What Template Interpolation Means in an Agent Node, Say Node and Menu Node

* Configure an **Agent Node**&#x20;
* Inside the **System Prompt** field, you typed:\
  `Testing {{`
* As soon as `{{` is typed, a **template helper dropdown** appears
* The dropdown lists:
  * **Variables** (`var boolean`, `var number`, `var userEndpoint`, etc.)
  * **Slots from Test (agent node)** (example tooltip: *Variable – boolean*)
  * **Built‑in functions** (`fn $addDays`, `fn $format`, `fn $now`, etc.)
  * **JS native objects/functions** (`Date`, `Math`, `parseInt`, `String`, etc.)

This confirms that **the System Prompt supports template interpolation using `{{ }}` syntax**, with access to typed variables and runtime helpers.

<figure><img src="/files/3svOGhTQrzQXroAYlZep" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.ixhello.com/ixhc2/flows/flow-editor/template-interpolation-agent-say-node-and-menu-node.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
