> 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="https://4187494610-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FFe4cpY1jy0FJ4kgC7wSx%2Fuploads%2F46honyH4apVjTLZehS8Q%2FAgent%20Node.png?alt=media&amp;token=213f0ed7-e0e9-4b19-a9e8-23d7b86dcebe" 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
