assets/ folder. They persist across sessions, stay with the script when it is shared in a workspace, and are included when the script is exported.
Assets are different from session files. Session files are runtime outputs in the session’s data_files/ folder. They belong to one run or conversation. Assets belong to the script.
Assets vs. session files
Use assets when a file should stay with the script. Use session files when a file is just the result of one run.
Use cases
Use assets for files that should be part of the script rather than one session’s output. Common examples:- Templates - store
assets/email-template.md,assets/report-template.docx, orassets/slides-template.pptxso every run starts from the same source. - Reference data - store small lookup tables, taxonomy files, prompt examples, approval rules, or sample input files.
- Configuration - store non-secret settings such as default channels, account mappings, or report sections.
- Persistent script memory - store a small file that the script reads and updates on every run.
- A lead enrichment script can append processed lead IDs to
assets/processed-leads.jsonso future runs skip duplicates. - A weekly reporting script can write the last successful reporting window to
assets/state.json. - A monitoring script can keep
assets/seen-events.jsonso it only notifies about new items. - A personalization script can keep tone, formatting, or routing preferences in
assets/preferences.md.