Journal.
Build a journaling app that records entries and moods, then resurfaces meaningful past entries to prompt reflection. Each entry becomes durable memory (a fact the platform stores about the user), so "what was I feeling a year ago?" is one search away.
You have a connection token from the connect flow — the credential issued after the user grants access. It carries these scopes (per-app permissions):
memory:write:note.journal, memory:read:note.*.
Scopes to request
| Scope | Why |
|---|---|
memory:write:note.journal | save journal entries and moods |
memory:read:note.* | resurface past entries and related notes |
What to write
Remember each entry as a durable memory in the note.journal scope, plus a low-importance emotion memory for affect. The content is just natural-language text — no LLM required to write.
const res = await pambase.remember({content: "First day back at the studio. Felt rusty but glad.",kind: "event",scope: "note.journal",});// res -> { accepted: true, memoryIds: ["mem_…"] }await pambase.remember({content: "Feeling hopeful, though a little rusty.",kind: "emotion",scope: "note.journal",importance: 0.2, // low importance → fades over time});
How to read
Use getContext to fetch a context bundle for a reflective prompt (the intent names the situation you're reading for), or recall to surface specific past entries.
// A reflective prompt for the entry screen:const ctx = await pambase.getContext({ intent: "app.daily" });// ctx.suggestions -> { adaptation: "You wrote about the studio last week — how did it go?" }showPrompt(ctx.suggestions.adaptation);// Or resurface what they wrote before about this topic:const { memories } = await pambase.recall({query: "studio rusty",scope: "note.journal",limit: 3,});// memories -> [{ id, content, importance, occurredAt, scope: "note.journal" }, …]
Proactive (optional)
To resurface entries on a cadence, subscribe to a webhook — a server-to-server callback — and trigger a gentle daily reminder from your own scheduler.
Store affect as low-importance emotion memories: they decay over time and rarely dominate retrieval — recent moods matter, last spring's does not. Durable reflections in note.journal persist. See memory concepts.
Next
How memory & decay work · Reading context · Remember & recall