# Interface: Automation

Defined in: [packages/std/src/automations.ts:88](https://github.com/leifriksheim/minca/blob/main/std/src/automations.ts#L88)

The body of a `std.automation` record

## Properties

| Property | Modifier | Type | Description | Defined in |
| ------ | ------ | ------ | ------ | ------ |
| <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/std/src/automations.ts:98](https://github.com/leifriksheim/minca/blob/main/std/src/automations.ts#L98) |
| <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/std/src/automations.ts:94](https://github.com/leifriksheim/minca/blob/main/std/src/automations.ts#L94) |
| <a id="property-name"></a> `name` | `readonly` | `string` | What people call it | [packages/std/src/automations.ts:90](https://github.com/leifriksheim/minca/blob/main/std/src/automations.ts#L90) |
| <a id="property-paused"></a> `paused?` | `readonly` | `boolean` | Kept, but not run | [packages/std/src/automations.ts:102](https://github.com/leifriksheim/minca/blob/main/std/src/automations.ts#L102) |
| <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/std/src/automations.ts:100](https://github.com/leifriksheim/minca/blob/main/std/src/automations.ts#L100) |
| <a id="property-since"></a> `since` | `readonly` | `string` | Nothing that came to hold before this sets it off | [packages/std/src/automations.ts:104](https://github.com/leifriksheim/minca/blob/main/std/src/automations.ts#L104) |
| <a id="property-then"></a> `then` | `readonly` | [`AutomationAction`](https://minca.dev/api/std/type-aliases/AutomationAction.md) | What it does | [packages/std/src/automations.ts:96](https://github.com/leifriksheim/minca/blob/main/std/src/automations.ts#L96) |
| <a id="property-when"></a> `when?` | `readonly` | [`AutomationWhen`](https://minca.dev/api/std/interfaces/AutomationWhen.md) | What records set it off. An automation has this, `every`, or both. | [packages/std/src/automations.ts:92](https://github.com/leifriksheim/minca/blob/main/std/src/automations.ts#L92) |
