Automations¶
Plaud records on the device and uploads when the Plaud app connects, so a timer is for the person who wants new recordings noticed, not for catching one the moment it happens. An events source is read on a timer with a cursor in the automation's state.
| Source | Method | Provider floor | Suggested | Signals |
|---|---|---|---|---|
plaud.recordings | tools.plaud.events_list | — | 15 min | — |
The recipe¶
- Read
tools.plaud.events_listwith the account and the cursor saved by the previous run. - Apply the page's events, apply its
removals, then save thecursorit answers in the automation's state. - If
failedis not empty, keep the old cursor: a failed event holds the read back.refused[]does not: those events are never delivered, and the cursor has moved past them. - Read again on the suggested cadence.
more: truemeans another page is ready now, not that the source is done. - When a page carries
gap: { reason: "expired", since }, a recording reached Plaud more than two weeks after it started: report the gap and read again fromsince, rather than inventing the missing recordings.
// The automation's state holds one cursor per account.
const page = await tools.plaud.events_list({ source: "recordings", account: "work", cursor: state.cursor })
state.cursor = page.cursor
A cursor is bound to its plugin, source, account and scope. Do not share one between accounts: the plugin refuses it with CURSOR_INVALID. A listing names its owner, so call tools.plaud.probe once per account after a restart, or read tools.plaud.status, before the first listing.