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

# AutomationDefinitionInput

> An automation's whole content, the shape `Automation.definition` returns. Send all of it: what's left out is removed.

**edges** `[\[AutomationGraphEdgeInput!\]!](/docs/api-reference/v3/reference/automations/automation-graph-edge-input)` *required*

How runs move between the nodes, at most 1000.

**fields**

**from** `String!` *required*

`"trigger"` or the id of the step the run leaves.

**port** `String!` *required*

The port it leaves by, such as `next` or `true`.

**to** `String!` *required*

The id of the next step.

**entryCondition** `[JSON](/docs/api-reference/v3/reference/common/json)`

An expression a run must meet to start; omitted admits every run.

**name** `String!` *required*

The automation's name.

**rulesVersion** `String`

The checker rules to hold it to. Omitted: a saved automation keeps its own, and a new one gets the newest.

**steps** `[\[AutomationStepInput!\]!](/docs/api-reference/v3/reference/automations/automation-step-input)` *required*

The steps, at most 500.

**fields**

**code** `String`

A `core.function` step's TypeScript code; only that kind takes it.

**config** `[JSON!](/docs/api-reference/v3/reference/common/json)` *required*

The kind's settings, matching the `configJsonSchema` of this kind and version in `automationKinds`.

**description** `String`

A note on the step.

**disabled** `Boolean`

Skip the step when the automation runs.

**id** `String!` *required*

The step's id, unique in the automation.

**kind** `String!` *required*

The step kind, such as `core.wait`.

**kindVersion** `Int!` *required*

The version of the kind the config is written for.

**position** `[AutomationNodePositionInput](/docs/api-reference/v3/reference/automations/automation-node-position-input)`

Where it sits on the canvas.

**fields**

**x** `Float!` *required*

Horizontal position.

**y** `Float!` *required*

Vertical position.

**title** `String`

The step's name; omitted shows the kind's title.

**trigger** `[AutomationTriggerInput!](/docs/api-reference/v3/reference/automations/automation-trigger-input)` *required*

What starts a run.

**fields**

**config** `[JSON!](/docs/api-reference/v3/reference/common/json)` *required*

The kind's settings, matching the `configJsonSchema` of this kind and version in `automationKinds`.

**description** `String`

A note on the trigger.

**kind** `String!` *required*

The trigger kind, such as `core.schedule`.

**kindVersion** `Int!` *required*

The version of the kind the config is written for.

**position** `[AutomationNodePositionInput](/docs/api-reference/v3/reference/automations/automation-node-position-input)`

Where it sits on the canvas.

**fields**

**x** `Float!` *required*

Horizontal position.

**y** `Float!` *required*

Vertical position.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.