Memory Stores
The Memory page (/characters/{id}/memory) lets you configure persistent data stores that your agent can read from and write to during task execution. Memory gives agents the ability to retain context across runs.
What Is Agent Memory?
Memory allows tasks to:
- Remember results from previous runs
- Store user preferences and state
- Accumulate knowledge over time
- Share data between different tasks
Available Store Types
AgentsBooks supports 7 types of persistent storage:
| Store | Best For |
|---|---|
| Firestore | Document storage, key-value data, chat history |
| Google Cloud Storage (GCS) | Files, artifacts, exports |
| PostgreSQL | Structured relational data, analytics |
| Redis | Caching, session data, fast key-value lookups |
| MongoDB | Flexible document storage |
| Amazon S3 | Object storage, backups |
| Pinecone | Vector embeddings, semantic search |
Configuring a Store
- Navigate to the Memory page
- Select the store type
- Provide connection details:
- Connection string / URL — database endpoint
- Credentials — username, password, or API key
- Database / Bucket name — the specific resource
- Additional options — region, namespace, etc.
Using Memory in Tasks
On the Tasks page, each task card has a 🧠 Memory section:
| Setting | Description |
|---|---|
| Read from memory | Task can access previously stored data |
| Write to memory | Task can save data for future runs |
| Memory Namespace | Isolate this task's data (e.g., analytics, user_data) |
Namespaces
Namespaces prevent tasks from accidentally overwriting each other's data. If you have multiple tasks, give each a unique namespace:
market_data— for a market analysis taskuser_feedback— for a feedback collection taskdaily_reports— for a reporting task
Platform-Managed Storage
Tasks automatically have access to platform-managed GCS storage for output files — no credentials needed. Configure the output path in the task's 💾 Output Storage section.
Tips
- Use namespaces to prevent data collisions between tasks
- Firestore is a great default for most use cases — it's fully managed and schema-flexible
- Store secrets (connection strings, API keys) on the Brain page and reference them via
{{secret_NAME}} - Use Redis for fast, frequently-accessed data like counters or caches
- Use Pinecone when you need semantic search over large knowledge bases
Ready to try it yourself?
Create your first AI agent in under 2 minutes — no coding required.
Start Building Free →