> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.ovalbee.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.ovalbee.com/_mcp/server.

# Project

> Finds the first Supervisely project with the specified name inside the workspace and returns it, or creates a new one of the selected type, images by default, when none exists. In create-once mode it instead creates a new project on the first run and keeps using that same project on later runs.

## Overview

Creates or finds a [Supervisely project](https://docs.supervisely.com/data-organization/project-dataset/data-structure#projects-and-datasets) by name.
If no matching project exists, the node creates it.
Set **Project** to create once when every copy of the flow should get its own fresh project: the first run creates a new project, and later runs keep writing to that same one.
The node requires a Supervisely workspace ID and a configured Supervisely secret with the server address and API token.

```mermaid
flowchart LR
  n1["Supervisely project"] --> n2["Supervisely dataset"]
```

## Prerequisites

| Requirement                 | What you need                                                        |
| --------------------------- | -------------------------------------------------------------------- |
| **Supervisely credentials** | An existing `supervisely` secret with API access to the target team. |

## How it works

Resolves the workspace from **Workspace ID**, or falls back to the first team on the account and its `OvalBee` workspace, creating that workspace when it is missing.

By default, searches the workspace for a project with the exact name and returns the first match.

In create-once mode, skips the name search and returns the project this node created on its last run, as long as it still exists and has the selected **Project type**.

Otherwise creates a project of the selected **Project type** and applies the configured classes and tags to it. When the name is already taken, Supervisely adds a suffix and the node saves the new name in **Project name**.

Publishes the project ID and URL, along with the preview image and item count shown on the node.

## FAQ

#### When should I use create once?

When a template or a copied flow must not write into someone else's project. Each flow gets a clean project with its own classes and tags on the first run, and all later runs add to that project. If you delete the project in Supervisely, the next run creates a new one.

#### When are Classes and Tags applied?

Only when the node creates the project. An existing project keeps its current classes and tags untouched.

#### How do I write tag definitions?

As a comma-separated list. `is_person` creates a tag without a value, `confidence:num` a numeric tag, `description:str` a text tag, and `status:accepted/rejected` a tag limited to those values.

#### Which geometry do new classes get?

It follows **Task Type**: object detection creates rectangle classes, and instance or semantic segmentation creates bitmap classes. Without a task type, classes are rectangles.

#### What happens when a class or tag name already exists with another type?

The node keeps the existing definition and adds a renamed copy with a numeric suffix, such as `person_1`.

#### What happens when the existing project has another type?

The run fails and names both types. The node never converts a project, so set **Project type** to the existing type or pick another name.

#### Where is the project created when Workspace ID is empty?

In a workspace named `OvalBee` inside the first team on the account. The node creates that workspace on first use.

#### Why did the node pick the wrong project?

Several projects in the workspace share that exact name, so the first match was used. Give each project a unique name when the choice must be predictable. An empty name fails the run.

## Inputs

**`Project name`** `string` — required

Exact project name to find or create inside the workspace. Key: `PROJECT_NAME`.

---

**`Project`** `select` — default: find_or_create

How the project is chosen. The default uses the project with this name, or creates it. The other option creates a new project on the first run, even when one with this name already exists, and keeps using that project on later runs. Key: `PROJECT_MODE`.

Options:

* Use the project with this name, or create it (`find_or_create`)
* Create a new project on the first run, then keep using it (`create_once`)

---

**`Project type`** `select` — required, default: images

Type of the project to create when none with that name exists. An existing project of another type fails the run. Key: `PROJECT_TYPE`.

Options:

* Images (`images`)
* Videos (`videos`)

---

**`Supervisely credentials`** `secret` — required

Your Supervisely server address and API token, stored as a secret. Allowed credential types: `supervisely`. Key: `SLY_SECRET`.

---

**`Task type`** `select`

Shape given to classes that do not name one of their own - rectangle for object detection, bitmap for either segmentation type. Key: `TASK_TYPE`.

Options:

* Object Detection (`object_detection`)
* Instance Segmentation (`instance_segmentation`)
* Semantic Segmentation (`semantic_segmentation`)

---

**`Classes`** `ontology`

Annotation classes to create in the project. Classes and tags are added only when the project is new - an existing project keeps the ones it already has. Key: `CLASSES`.

---

**`Tags`** `string`

Comma-separated tag definitions to create in the project, for example `status:accepted/rejected, confidence:num, is_person, description:str`. A bare name makes a tag with no value, `:num` or `:str` accepts any number or any text, and slash-separated values restrict the tag to that list. Key: `TAGS`.

---

**`Workspace ID`** `integer`

Supervisely workspace the project lives in. Leave empty to use the OvalBee workspace of the selected team, created when it is not there yet. Key: `SLY_WORKSPACE_ID`.

---

**`Team ID`** `integer`

Supervisely team the workspace is looked up in. Leave empty to use the first team on your account. Key: `SLY_TEAM_ID`.

---

## Outputs

**`Supervisely Project ID`** `integer`

ID of the project the node found, reused from a previous run, or created. Key: `SLY_PROJECT_ID`.

---

**`Supervisely Project URL`** `string`

URL of the existing or newly created Supervisely project. Key: `SLY_PROJECT_URL`.

---

**`Preview Image URL`** `string`

URL of the preview image from the project. Key: `PREVIEW_IMAGE_URL`.

---

**`Items Count Str`** `string`

String with the count of items in the project. Key: `ITEMS_COUNT_STR`.

---

## JSON config

Machine-readable node interface for automation and advanced usage.

#### Show JSON

```json
{
  "name": "Project",
  "description": "Finds the first Supervisely project with the specified name inside the workspace and returns it, or creates a new one of the selected type, images by default, when none exists. In create-once mode it instead creates a new project on the first run and keeps using that same project on later runs.",
  "category": "Supervisely",
  "namespace": "supervisely",
  "templateKey": "supervisely/project",
  "version": "v1",
  "inputs": [
    {
      "key": "PROJECT_NAME",
      "label": "Project name",
      "type": "string",
      "description": "Exact project name to find or create inside the workspace.",
      "required": true,
      "default": null,
      "visibleWhen": null
    },
    {
      "key": "PROJECT_MODE",
      "label": "Project",
      "type": "select",
      "description": "How the project is chosen. The default uses the project with this name, or creates it. The other option creates a new project on the first run, even when one with this name already exists, and keeps using that project on later runs.\n",
      "required": false,
      "default": "find_or_create",
      "visibleWhen": null,
      "options": {
        "options": [
          {
            "label": "Use the project with this name, or create it",
            "value": "find_or_create"
          },
          {
            "label": "Create a new project on the first run, then keep using it",
            "value": "create_once"
          }
        ]
      }
    },
    {
      "key": "PROJECT_TYPE",
      "label": "Project type",
      "type": "select",
      "description": "Type of the project to create when none with that name exists. An existing project of another type fails the run.\n",
      "required": true,
      "default": "images",
      "visibleWhen": null,
      "options": {
        "options": [
          {
            "label": "Images",
            "value": "images"
          },
          {
            "label": "Videos",
            "value": "videos"
          }
        ]
      }
    },
    {
      "key": "SLY_SECRET",
      "label": "Supervisely credentials",
      "type": "secret",
      "description": "Your Supervisely server address and API token, stored as a secret.",
      "required": true,
      "default": null,
      "visibleWhen": null,
      "options": {
        "types": [
          "supervisely"
        ]
      }
    },
    {
      "key": "TASK_TYPE",
      "label": "Task type",
      "type": "select",
      "description": "Shape given to classes that do not name one of their own - rectangle for object detection, bitmap for either segmentation type.\n",
      "required": false,
      "default": null,
      "visibleWhen": null,
      "options": {
        "options": [
          {
            "label": "Object Detection",
            "value": "object_detection"
          },
          {
            "label": "Instance Segmentation",
            "value": "instance_segmentation"
          },
          {
            "label": "Semantic Segmentation",
            "value": "semantic_segmentation"
          }
        ]
      }
    },
    {
      "key": "CLASSES",
      "label": "Classes",
      "type": "ontology",
      "description": "Annotation classes to create in the project. Classes and tags are added only when the project is new - an existing project keeps the ones it already has.\n",
      "required": false,
      "default": null,
      "visibleWhen": null,
      "options": {
        "selectable": true
      }
    },
    {
      "key": "TAGS",
      "label": "Tags",
      "type": "string",
      "description": "Comma-separated tag definitions to create in the project, for example `status:accepted/rejected, confidence:num, is_person, description:str`. A bare name makes a tag with no value, `:num` or `:str` accepts any number or any text, and slash-separated values restrict the tag to that list.\n",
      "required": false,
      "default": null,
      "visibleWhen": null
    },
    {
      "key": "SLY_WORKSPACE_ID",
      "label": "Workspace ID",
      "type": "number",
      "description": "Supervisely workspace the project lives in. Leave empty to use the OvalBee workspace of the selected team, created when it is not there yet.\n",
      "required": false,
      "default": null,
      "visibleWhen": null,
      "options": {
        "type": "integer"
      }
    },
    {
      "key": "SLY_TEAM_ID",
      "label": "Team ID",
      "type": "number",
      "description": "Supervisely team the workspace is looked up in. Leave empty to use the first team on your account.\n",
      "required": false,
      "default": null,
      "visibleWhen": null,
      "options": {
        "type": "integer"
      }
    }
  ],
  "outputs": [
    {
      "key": "SLY_PROJECT_ID",
      "label": "Supervisely Project ID",
      "type": "number",
      "description": "ID of the project the node found, reused from a previous run, or created.",
      "artifact": false,
      "badge": false,
      "badgeOpens": null,
      "hidden": false,
      "options": {
        "type": "integer"
      }
    },
    {
      "key": "SLY_PROJECT_URL",
      "label": "Supervisely Project URL",
      "type": "string",
      "description": "URL of the existing or newly created Supervisely project.",
      "artifact": false,
      "badge": false,
      "badgeOpens": null,
      "hidden": false
    },
    {
      "key": "PREVIEW_IMAGE_URL",
      "label": "Preview Image URL",
      "type": "string",
      "description": "URL of the preview image from the project.",
      "artifact": false,
      "badge": false,
      "badgeOpens": null,
      "hidden": false
    },
    {
      "key": "ITEMS_COUNT_STR",
      "label": "Items Count Str",
      "type": "string",
      "description": "String with the count of items in the project.",
      "artifact": false,
      "badge": false,
      "badgeOpens": null,
      "hidden": false
    }
  ],
  "automation": {
    "isolated": true,
    "requires_configuration": true,
    "discard_history": "on_success"
  },
  "widgets": {
    "widget": {
      "id": "image-preview",
      "settings": {
        "imageUrl": {
          "type": "variable",
          "value": "self.outputs.PREVIEW_IMAGE_URL"
        },
        "linkUrl": {
          "type": "variable",
          "value": "self.outputs.SLY_PROJECT_URL"
        },
        "badge": {
          "type": "variable",
          "value": "self.outputs.ITEMS_COUNT_STR"
        }
      }
    }
  }
}
```