# AutomatedActionItem

One action of an automation: what it starts when triggered. Its id is how the automation's history says which action started a run.

**Kind:** an object, used in requests and responses. In a request it is called `AutomatedActionItemInput`.

## In a request

| Field | Type | Required | Description |
|---|---|---|---|
| `id` | `uuid` |  | The action's id. |
| `name` | `string \| null` |  | A name for the action. Optional. |
| `config` | [`ProcessStartConfigInput`](https://docs.maitento.com/reference/types/process-start-config.md) | yes | What to start (or, for `interaction-message`, which interaction run to post to), with its settings. Constraints: required (empty or whitespace-only strings are rejected). |

```json
{
  "id": "3f2b8c1e-5d4a-4e6b-9c7d-2a1b0c9d8e7f",
  "name": "...",
  "config": {
    "$type": "app",
    "inputs": [],
    "credentialStack": "...",
    "version": {}
  }
}
```

## In a response

Every field is present in a response; empty ones are `null`.

| Field | Type | Description |
|---|---|---|
| `id` | `uuid` | The action's id. |
| `name` | `string \| null` | A name for the action. Optional. |
| `config` | [`ProcessStartConfig`](https://docs.maitento.com/reference/types/process-start-config.md) | What to start (or, for `interaction-message`, which interaction run to post to), with its settings. Constraints: required (empty or whitespace-only strings are rejected). |

```json
{
  "id": "3f2b8c1e-5d4a-4e6b-9c7d-2a1b0c9d8e7f",
  "name": "...",
  "config": {
    "$type": "app",
    "inputs": [],
    "credentialStack": "...",
    "version": {}
  }
}
```

## Where it's used

- Inside [`AutomatedAction`](https://docs.maitento.com/reference/types/automated-action.md)
- Inside [`CreateAutomatedActionRequest`](https://docs.maitento.com/reference/types/create-automated-action-request.md)
- Inside [`UpdateAutomatedActionRequest`](https://docs.maitento.com/reference/types/update-automated-action-request.md)
