session.datafor lightweight per-session state- collections for durable queryable records
1. Store session state
session.data is useful for conversation-local memory.
2. Declare a collection
Collections hold durable records.scope="owner" keeps records scoped to the current owner identity. That is usually what you want for user-owned app data.
3. Write records from chat
4. Read records back
5. Expose data to pages
Pages use named data handlers when they need computed JSON.Next steps
- Add a page with Add Pages.
- See Collections for collection options.