Code & storage

Storage Center

Distinguish project files, per-run variables and persistent bot records.

Files and bot records serve different purposes

Use project file storage for source and assets. Use Bottly Storage blocks for bot-owned records such as a member's warning or a ticket reference. A variable used during a flow run is not automatically a persistent database record.

Model one record

Choose a table such as tickets, fields such as user and channel, and a lookup value such as a member ID. Use Storage Save to create, Storage Find to retrieve the newest matching record, Storage Update to change matches, Storage Count to count, and Storage Delete to remove matches.

Test the missing case

Connect both found and missing outputs where offered. On the first run a record may not exist. Confirm your lookup is narrow enough before Update or Delete: matching records are affected, not just the item you happen to be viewing.

Keep it small

Store IDs and necessary values rather than entire private messages. Plan limits cap storage. Data belongs to the bot, so never assume another bot's records are visible.