Quickstart¶
This page takes you from a signed-in plugin to a file on disk. Both steps run in Code Mode, and an agent reaches the same methods as the tools plaud_recent, plaud_plan_export and plaud_export.
Read the newest recordings¶
// The eight newest recordings of the default account, newest first.
const page = await tools.plaud.recent()
// Each item is the recording's id and one line: title, start (UTC) and length.
const first = page.data.items[0]
recent reads the last 40 days of one account and answers titles only: no link, no content. A title that holds a secret is left out. Pass { limit: 20 } for more, and { account: "work" } when more than one alias is configured.
Export one recording¶
An export is two calls. plan_export names the exact file and writes nothing; export commits the plan.
// 1. Plan: the exact file the commit will write. Nothing is read from Plaud and nothing is written.
const plan = await tools.plaud.plan_export({ recordingId: first.id, kind: "transcript" })
console.log(plan.output.path) // /home/you/Plaud/transcript/<recordingId>.transaction.md
// 2. Commit the plan it answered. Writes one file and answers its path, size and SHA-256.
const written = await tools.plaud.export({ planId: plan.planId })
console.log(written.output) // { path, bytes, sha256 }
kind is audio (the recording's audio), transcript (one block of the transcript as Markdown) or note (the recording's note tabs as Markdown). A transcript's block is transaction by default; transaction_polish, outline and mark_memo are the others.
The default destination is <first export root>/<kind>/<recordingId>.<ext>, and ~/Plaud is the first root until you set exportRoots. A plan commits once and expires after 15 minutes.
Next¶
- Exporting a recording: every destination rule and every refusal.
- Automations: follow new recordings on a timer.
- Errors: what each code means.