Fill a template
Put values into a text with {name} places, e.g. "Dear {first_name}, invoice {number} is due on {due}." from a Dictionary or a table row.
Command in the String toolkit · id ooa.string/fill_template · 4 inputs (1 required), 2 outputs
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Template | String | Yes | Text with places in curly brackets, e.g. {name}; {{ and }} write a bracket. | |
| Values | Dictionary | No | The values by name: a Dictionary or a table row (a Record). | |
| If missing | String | No | keep | A place without a value: keep {name}, leave it empty, or fail with STRING.MISSING_VALUE. |
| From agent | Boolean | No | false | G1 (AA parity): also fill $name$ places with the agent's own variables now, for a text read while the agent runs (from a file or a web page). Credentials are never filled in. |
Outputs
| Output | Type | What it is |
|---|---|---|
| result | String | The filled text. |
| missing | List | Places that had no value. |