# Interface: Automation

Defined in: [packages/core/src/schemas/automations.ts:90](https://github.com/leifriksheim/minca/blob/main/core/src/schemas/automations.ts#L90)

The body of a `std.automation` record, or of an account's own automation

## Extended by

- [`OwnAutomationView`](https://minca.dev/api/core/interfaces/OwnAutomationView.md)

## Properties

| Property | Modifier | Type | Description | Defined in |
| ------ | ------ | ------ | ------ | ------ |
| <a id="property-app"></a> `app?` | `readonly` | [`AutomationApp`](https://minca.dev/api/schemas/interfaces/AutomationApp.md) | The app that proposed it. Absent: the person made it themselves. | [packages/core/src/schemas/automations.ts:115](https://github.com/leifriksheim/minca/blob/main/core/src/schemas/automations.ts#L115) |
| <a id="property-by"></a> `by?` | `readonly` | `string` | The DID of the bot that runs it, when its maker may instruct bots here; else its maker's own devices and agent | [packages/core/src/schemas/automations.ts:100](https://github.com/leifriksheim/minca/blob/main/core/src/schemas/automations.ts#L100) |
| <a id="property-every"></a> `every?` | `readonly` | `string` | When it runs by itself: five cron fields, minute hour day month weekday, in the runner's local time | [packages/core/src/schemas/automations.ts:96](https://github.com/leifriksheim/minca/blob/main/core/src/schemas/automations.ts#L96) |
| <a id="property-name"></a> `name` | `readonly` | `string` | What people call it | [packages/core/src/schemas/automations.ts:92](https://github.com/leifriksheim/minca/blob/main/core/src/schemas/automations.ts#L92) |
| <a id="property-open"></a> `open?` | `readonly` | `string` | Where clicking its notification goes: an app's `https://` address. Default: the account home. | [packages/core/src/schemas/automations.ts:113](https://github.com/leifriksheim/minca/blob/main/core/src/schemas/automations.ts#L113) |
| <a id="property-paused"></a> `paused?` | `readonly` | `boolean` | Kept, but not run | [packages/core/src/schemas/automations.ts:104](https://github.com/leifriksheim/minca/blob/main/core/src/schemas/automations.ts#L104) |
| <a id="property-picked"></a> `picked?` | `readonly` | `Readonly`\<`Record`\<`string`, `unknown`\>\> | How an app's builder showed it, so it can be shown and changed again. Never read to run it. | [packages/core/src/schemas/automations.ts:102](https://github.com/leifriksheim/minca/blob/main/core/src/schemas/automations.ts#L102) |
| <a id="property-since"></a> `since` | `readonly` | `string` | Nothing that came to hold before this sets it off | [packages/core/src/schemas/automations.ts:106](https://github.com/leifriksheim/minca/blob/main/core/src/schemas/automations.ts#L106) |
| <a id="property-spaces"></a> `spaces?` | `readonly` | [`AutomationSpaces`](https://minca.dev/api/schemas/type-aliases/AutomationSpaces.md) | The spaces it looks at, for one kept in the account's registry rather than in a space (`space/own-automations.ts`) | [packages/core/src/schemas/automations.ts:111](https://github.com/leifriksheim/minca/blob/main/core/src/schemas/automations.ts#L111) |
| <a id="property-then"></a> `then` | `readonly` | [`AutomationAction`](https://minca.dev/api/schemas/type-aliases/AutomationAction.md) | What it does | [packages/core/src/schemas/automations.ts:98](https://github.com/leifriksheim/minca/blob/main/core/src/schemas/automations.ts#L98) |
| <a id="property-when"></a> `when?` | `readonly` | [`AutomationWhen`](https://minca.dev/api/schemas/interfaces/AutomationWhen.md) | What records set it off. An automation has this, `every`, or both. | [packages/core/src/schemas/automations.ts:94](https://github.com/leifriksheim/minca/blob/main/core/src/schemas/automations.ts#L94) |
