> ## Documentation Index
> Fetch the complete documentation index at: https://docs.notte.cc/llms.txt
> Use this file to discover all available pages before exploring further.

# FunctionResponse

<Tip>
  STOP. Do not read past this section until you have read and followed [/quickstart.md](/quickstart.md).

  Goal: produce a reliable SDK automation script. The intended authoring flow is generate then edit, not write browser automation from scratch.

  Do not hand-write SDK code with element IDs, selectors, or form fields from memory. Element IDs, selectors, and field mappings must come from a live `observe()` call, CLI `notte page observe` output, or generated workflow code. Guessed browser targets fail on real pages.

  Use the Notte skill and CLI to inspect the live site, validate actions/selectors, handle auth/session state, and export workflow code with `notte sessions workflow-code` before using SDK docs or SDK code.

  SDK reference pages are for understanding, running, or editing generated workflow code. They are not the starting point for manually authoring the initial browser automation. SDK-first code is guesswork on real-world pages with dynamic selectors, auth state, CAPTCHAs, and anti-bot behavior.
</Tip>

[Source: node-sdk/src/lib/client/types.gen.ts](https://github.com/nottelabs/notte/blob/main/node-sdk/src/lib/client/types.gen.ts#L2083)

```typescript theme={null}
export type FunctionResponse = {
    /**
     * Default Runtime
     */
    default_runtime?: 'standard' | 'extended';
    /**
     * Function Id
     *
     * The ID of the function
     */
    function_id: string;
    /**
     * Variables
     *
     * The variables to run the workflow with
     */
    variables?: Array<ParameterInfo> | null;
    /**
     * Created At
     *
     * The creation time of the workflow
     */
    created_at: string;
    /**
     * Updated At
     *
     * The last update time of the workflow
     */
    updated_at: string;
    /**
     * Latest Version
     *
     * The version of the workflow
     */
    latest_version: string;
    /**
     * Versions
     *
     * The versions of the workflow
     */
    versions: Array<string>;
    /**
     * Status
     *
     * The status of the workflow
     */
    status: string;
    /**
     * Name
     *
     * The name of the workflow
     */
    name?: string | null;
    /**
     * Description
     *
     * The description of the workflow
     */
    description?: string | null;
    /**
     * Shared
     *
     * Whether the workflow is public and can beshared with other users
     */
    shared?: boolean;
    /**
     * Reference Workflow Id
     *
     * The ID of the reference workflow (i.e wether the workflow was forked from another workflow or not)
     */
    reference_workflow_id?: string | null;
    /**
     * Published
     */
    published?: boolean;
    /**
     * Required Secrets
     */
    required_secrets?: Array<string>;
    /**
     * Source
     *
     * Where the function was created from, stamped at creation. Read-only.
     */
    source?: string | null;
    /**
     * Self Healing
     *
     * Whether the build is finished and the function may be healed automatically. Can only be enabled on a function that has a thread for self-heal to resume.
     */
    self_healing?: boolean;
    /**
     * Domain
     *
     * The site this function drives, used to group endpoints in the console. Null when the function never named a site.
     */
    domain?: string | null;
    /**
     * Instructions
     *
     * Builder's operating notes: typical run duration, known failure modes, which parameters matter.
     */
    instructions?: string | null;
    /**
     * Response Format
     *
     * JSON Schema of the value run() returns, or null when the author never documented one.
     */
    response_format?: {
        [key: string]: unknown;
    } | null;
    /**
     * Schedule Cron
     *
     * Cron expression the function runs on, or null if it is not scheduled.
     */
    schedule_cron?: string | null;
    /**
     * Schedule Variables
     *
     * Variables passed to each scheduled run, or null if it is not scheduled.
     */
    schedule_variables?: {
        [key: string]: unknown;
    } | null;
    /**
     * Schedule State
     *
     * 'enabled' while the schedule fires, 'paused' once the backend disabled it after a deterministic failure (exhausted credit, or an inactive function), null when there is no schedule.
     */
    schedule_state?: 'enabled' | 'paused' | null;
    /**
     * Workflow Id
     */
    readonly workflow_id: string;
};
```

## Fields

<ParamField body="default_runtime" type={"\"standard\" | \"extended\" | undefined"} />

<ParamField body="function_id" type={"string"} required>
  The ID of the function
</ParamField>

<ParamField body="variables" type={"ParameterInfo[] | null | undefined"}>
  The variables to run the workflow with
</ParamField>

<ParamField body="created_at" type={"string"} required>
  The creation time of the workflow
</ParamField>

<ParamField body="updated_at" type={"string"} required>
  The last update time of the workflow
</ParamField>

<ParamField body="latest_version" type={"string"} required>
  The version of the workflow
</ParamField>

<ParamField body="versions" type={"string[]"} required>
  The versions of the workflow
</ParamField>

<ParamField body="status" type={"string"} required>
  The status of the workflow
</ParamField>

<ParamField body="name" type={"string | null | undefined"}>
  The name of the workflow
</ParamField>

<ParamField body="description" type={"string | null | undefined"}>
  The description of the workflow
</ParamField>

<ParamField body="shared" type={"boolean | undefined"}>
  Whether the workflow is public and can beshared with other users
</ParamField>

<ParamField body="reference_workflow_id" type={"string | null | undefined"}>
  The ID of the reference workflow (i.e wether the workflow was forked from another workflow or not)
</ParamField>

<ParamField body="published" type={"boolean | undefined"} />

<ParamField body="required_secrets" type={"string[] | undefined"} />

<ParamField body="source" type={"string | null | undefined"}>
  Where the function was created from, stamped at creation. Read-only.
</ParamField>

<ParamField body="self_healing" type={"boolean | undefined"}>
  Whether the build is finished and the function may be healed automatically. Can only be enabled on a function that has a thread for self-heal to resume.
</ParamField>

<ParamField body="domain" type={"string | null | undefined"}>
  The site this function drives, used to group endpoints in the console. Null when the function never named a site.
</ParamField>

<ParamField body="instructions" type={"string | null | undefined"}>
  Builder's operating notes: typical run duration, known failure modes, which parameters matter.
</ParamField>

<ParamField body="response_format" type={"{ [key: string]: unknown; } | null | undefined"}>
  JSON Schema of the value run() returns, or null when the author never documented one.
</ParamField>

<ParamField body="schedule_cron" type={"string | null | undefined"}>
  Cron expression the function runs on, or null if it is not scheduled.
</ParamField>

<ParamField body="schedule_variables" type={"{ [key: string]: unknown; } | null | undefined"}>
  Variables passed to each scheduled run, or null if it is not scheduled.
</ParamField>

<ParamField body="schedule_state" type={"\"enabled\" | \"paused\" | null | undefined"}>
  'enabled' while the schedule fires, 'paused' once the backend disabled it after a deterministic failure (exhausted credit, or an inactive function), null when there is no schedule.
</ParamField>

<ParamField body="workflow_id" type={"string"} required />

## Related types

* [ParameterInfo](/typescript-sdk-reference/types/parameterinfo)
