# Function: notifyOn()

```ts
function notifyOn(
   name, 
   collection, 
   where?
): AppAutomation;
```

Defined in: [packages/core/src/space/own-automations.ts:117](https://github.com/leifriksheim/minca/blob/main/core/src/space/own-automations.ts#L117)

An automation an app offers: new records in a collection, perhaps only
those `where` matches. `notifyOn('Mentions me', 'std.message', { mentions: { $contains: '$me' } })`

## Parameters

| Parameter | Type |
| ------ | ------ |
| `name` | `string` |
| `collection` | `string` |
| `where?` | [`Filter`](https://minca.dev/api/core/type-aliases/Filter.md) |

## Returns

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