---
title: "Add Feature"
description: "Add features to nodes with configurable actions using JSON Schema, including examples for filename and thumbnail setup. (Gitana 4.0)"
product: "Gitana"
version: "4.0"
url: "/documentation/gitana/4.0/engine/behaviors/actions/add-feature"
---

# Add Feature

ID: `addFeature`

Adds a feature to a node.

The configuration for this feature is described using JSON Schema like this:

```
{
    "title": "Add Feature",
    "properties": {
        "qname": {
            "title": "Feature QName",
            "type": "string"
        },
        "config": {
            "title": "Feature Configuration",
            "type": "object"
        }

    }
}
```

See the examples below for more detail.

## Example #1

Let's say we want to automatically configure the filename for a piece of content when it is created. We can define an action of type `addFeature` and configure it to automatically apply the [`f:filename`](/documentation/gitana/4.0/engine/aspects/filename.md) feature.

It might look like this:

```
{
    "qname": "f:filename",
    "config": {
        "filename": "mynewfile.txt"
    }
}
```

## Example #2

Let's configure an action that sets up our content for thumbnailing. Here, we take advantage of the [f:thumbnailable](/documentation/gitana/4.0/engine/aspects/thumbnailable.md) feature.

It might look like this:

```
{
    "qname": "f:thumbnailable",
    "config": {
        "thumb500": {
            "mimetype": "image/png",
            "width": 500,
            "height": 500
        },
        "thumb300": {
            "mimetype": "image/gif",
            "width": 300,
            "height": 300,
            "compression": 10
        },
        "thumb150": {
            "mimetype": "image/jpeg",
            "width": 150,
            "height": 150,
            "compression": 0
        }
    }
}
```

## Using a Drop Zone

A "Drop Zone" folder can be configured to execute a Rule when new content arrives. The rule can then execute this action to add a feature to newly arrived items. For example, the [Transcription](/documentation/gitana/4.0/engine/services/transcription.md) and [Narration](/documentation/gitana/4.0/engine/services/narration.md) services describe a Rule, bound to the `p:afterAssociateNode` policy, that runs this action to add the `f:auto-transcribe` or `f:auto-narrate` feature to items dropped into a folder.

## See Also

- The [Remove Feature](/documentation/gitana/4.0/engine/behaviors/actions/remove-feature.md) action
- The [Add Features](/documentation/gitana/4.0/engine/workflow/workflow-handlers/add-features.md) workflow handler, which adds features to the nodes in a workflow's payload
