# Custom Code

{% hint style="info" %}
**Block Information**

Available in: Page Flow and Cloud Flow

Toolbox Category: Advanced

Block Type: [Regular](/app-editor/page-flow/block-anatomy.md#regular-block)
{% endhint %}

The **`Custom Code`** block allows you to write and execute custom or proprietary [Javascript](https://en.wikipedia.org/wiki/JavaScript) code, which will be included as-is in the Page Flow or the Cloud Flow at the logical location where the block is placed.

<div align="left"><figure><img src="/files/1QrVKNoxvWhskhs40sVd" alt="" width="431"><figcaption><p>Custom Code block</p></figcaption></figure></div>

The block consists of a [Selectable Input](/app-editor/page-flow/block-anatomy.md#selectable-input) to bring up a Javascript text editor to write your code as shown below:

<figure><img src="/files/LiVaEDmtHcklWmXmkEDE" alt=""><figcaption><p>Custom Code Editor window</p></figcaption></figure>

***

## Page Flow

For more information about usage of this block inside Page Flow, please see [Coding in Page Flow](/app-editor/page-flow/coding-in-page-flow.md) .

## Cloud Flow

{% hint style="warning" %}
For Cloud Flow,  the **`Custom Code`** block is functional in Business or higher edition apps. This block can be tested in the Standard edition.
{% endhint %}

For more information about usage of this block inside Cloud Flow, please see [Coding in Cloud Flow](/app-editor/cloud-flow/coding-in-cloud-flow.md) .


---

# 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.zingy.ai/app-editor/page-flow/toolbox-blocks/custom-code.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.
