# Dynamic Inputs

All building block input fields accept dynamic inputs.

#### **References to Variables and Tables**

**Example**

* "Hello {id: 123, name: "Profile name"}, I wanted to reach out because...."

{% content-ref url="/pages/8Z5QCnjLyMAUf8q7w9Tb" %}
[References to Variables and Tables](/using-zerowork/using-building-blocks/dynamic-inputs/references-to-variables-and-tables.md)
{% endcontent-ref %}

#### Code in Inputs

***Code in inputs*** ***is available when using Desktop Agent version 1.1.72 and higher***

Use `${...}` for an expression and `$${...}` for a code block. Expressions insert the result of the expression. Code blocks run full code and must `return` a value to insert.

**Examples**

* **Using `${...}` (expression)**\
  "This is my secret password stored locally: ${await zw\.deviceStorage.get("password")}"
* **Using `$${...}` (code block)**\
  "This is my more elaborate input: $${\
  &#x20;  import axios from "axios"; // any import auto-installs locally\
  &#x20;  const res = await axios.get("<https://mydomain.com/my/api/url");\\>
  &#x20;  return res.data;\
  }."

{% content-ref url="/pages/cQADB6rzTXDMYBnlrrSR" %}
[Code in Inputs](/using-zerowork/using-building-blocks/dynamic-inputs/code-in-inputs.md)
{% endcontent-ref %}

#### **Spintax**

Helps vary content on sites with anti-spam measures that check message or email uniqueness.

**Example**

* "{ Hi | Hey | Howdy }! How { are you | are things going }?"

{% content-ref url="/pages/GbCANNIXV812fhJ3AxYc" %}
[Spintax](/using-zerowork/using-building-blocks/dynamic-inputs/spintax.md)
{% endcontent-ref %}


---

# Agent Instructions: 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:

```
GET https://docs.zerowork.io/using-zerowork/using-building-blocks/dynamic-inputs.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
