# Create Tag

<!-- meta: type=create-tag; location=Tags; category=Step (action); platforms=Joomla and WordPress (where applicable) -->

## Overview

Create Tag is a **Step (action)** in **Tags**. Creates a Joomla tag with title, published state, and language.

When the flow reaches this step, JOrchestrator executes **Create Tag** against your linked site or an external integration, using the field values you set on **General** and **Design**. Downstream steps can read the output payload fields defined for this node.

## Why use this node

Create Tag is a **action step** in the **Tags** group. Action steps run in the middle or end of a flow. They perform work on your CMS, call external services, or transform data for the next step.

Typical reasons teams add **Create Tag** to a flow:

- Create Tag on your linked Joomla site when the flow reaches this step
- Create tag based on webhook, schedule, or CMS event data
- Integrate Tags operations with messaging, AI, or database steps in one canvas

## Example workflows

Common patterns on the canvas:

1. **Trigger or Webhook** → upstream steps → **Create Tag** → **Send Email** or CMS update
2. **Scheduled trigger** → **Create Tag** → **Debug** (while testing) → production action

## How to set it up

Optionally link the tag to articles by title; after create, the tag is merged onto each selected article without removing existing tags.

## Good to know

Duplicate titles may resolve to an existing tag depending on Joomla's tag table state.

## Properties panel

The designer shows these tabs for this node:

| Tab | Purpose |
|-----|---------|
| **Info** | Plain-language description and output payload fields for downstream steps |
| **General** | Canvas label and read-only node ID |
| **AI** | Optional assistant to help draft settings from plain language |
| **Design** | Node-specific configuration fields |

### System (automatic — not edited by the user)

These fields are managed by the designer or runtime — you do not type into them directly:

| Property key | Label | Type | Required | Visible when | Notes |
|--------------|-------|------|----------|--------------|-------|
| `_nodeId` | Node ID | `node-id` | No | — | — |
| `_payloadFields` | Available Fields | `payload-panel` | No | — | — |

### User-configured — General tab

| Property key | Label | Type | Required | Visible when | Notes |
|--------------|-------|------|----------|--------------|-------|
| `label` | Label | `text` | No | — | Node label |

### User-configured — Design tab

| Property key | Label | Type | Required | Visible when | Notes |
|--------------|-------|------|----------|--------------|-------|
| `value` | Title | `payload-text` | **Yes** | — | Tag title or drag payload field |
| `published` | Published | `select` (`0` \| `1` \| `2` \| `-2`; default: `1`) | No | — | — |

### CMS-backed (options from the linked site)

| Property key | Label | Type | Required | Visible when | Notes |
|--------------|-------|------|----------|--------------|-------|
| `attachArticleIds` | Link tag to articles (optional) | `articles-multi` | No | — | Search by title — select one or more articles Optional. After the tag is **created** (or **reused** when the alias already exists), it is **added** to each selected article’s tags. Existing tags on those articles are **kept**. Leave empty to only create the tag. |
| `language` | Language | `content-language-select` | No | — | Select language (* = all) |

### CMS site configuration (not on this node's properties panel)

Credentials, API keys, mailers, SMTP, and integration defaults are configured in the CMS plugin under **Node Configuration**, not per step on this node. Link the flow to a domain before testing CMS-backed fields.

## Output payload fields

After this step runs, later nodes can reference these fields using placeholders such as
`{{create_tag.id}}`.

| Field key | Type | Description |
|-----------|------|-------------|
| `id` | string | Primary record identifier. |
| `title` | string | Title text for the created or updated record. |
| `alias` | string | URL-safe alias / slug. |
| `attached_article_ids` | array | Article IDs the new tag was linked to. |
| `article_tag_attach_errors` | array | Errors when attaching tags to articles. |

## Validation rules

- **Title** (`value`) must be filled before the flow can be saved.

## Related nodes

Other steps in the same area of the palette:

- **Create Tag** (`wp-create-tag`) — Tags
- **Delete Tag** (`delete-tag`) — Tags
- **Delete Tag** (`wp-delete-tag`) — Tags
- **Instagram Account Info** (`instagram-account-info`) — Tags
- **Instagram Get Media** (`instagram-get-media`) — Tags
