> ## Documentation Index
> Fetch the complete documentation index at: https://docs.maximem.ai/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Maximem Synap is a managed memory layer for AI agents: it ingests conversations and documents, extracts structured memory, and returns scoped context to the agent at retrieval time.
> The Python and JavaScript/TypeScript SDKs are the supported way to use Synap. Write integration code with SDK calls, not raw HTTP requests.
> Start with the Quickstart: https://docs.maximem.ai/getting-started/quickstart.md. Every SDK method is documented in the SDK reference: https://docs.maximem.ai/sdk-reference/overview.md.
> For requests about adding Vity memory to OpenClaw, Hermes, an MCP client, or a browser, start with the Vity Quickstart: https://docs.maximem.ai/vity/quickstart.md.

# Patterns

> Copy-paste recipes for common Synap integration patterns. Each one solves a specific cross-cutting problem in 30-80 lines.

These are short, opinionated, copy-paste-ready patterns: the cross-cutting techniques you reach for inside any agent. Use them as starting points, not as architectural decrees.

Looking for a full agent example instead of a single pattern? See the [Cookbook](https://docs.maximem.ai/cookbook/overview.md): end-to-end reference agents built on top of these patterns.

> [card] [Multi-Tenant SaaS](https://docs.maximem.ai/patterns/multi-tenant-saas.md)
>
> Scope memories per customer organization. Reuse one Instance across all your B2B customers.

> [card] [Slack Bot with Memory](https://docs.maximem.ai/patterns/slack-bot.md)
>
> Add per-channel and per-user memory to a Slack bot using Bolt + Synap.

> [card] [Voice Agent (LiveKit)](https://docs.maximem.ai/patterns/voice-agent-livekit.md)
>
> Memory-augmented voice agent on LiveKit. Recall caller history mid-call.

> [card] [RAG over User History](https://docs.maximem.ai/patterns/rag-user-history.md)
>
> Pure semantic retrieval over a single user's past conversations. Synap as your RAG.

> [card] [Real-Time Anticipation in a Server](https://docs.maximem.ai/patterns/real-time-anticipation-server.md)
>
> One shared Listen stream for a multi-tenant process, and the failure that stays silent.

> [card] [Graceful Degradation](https://docs.maximem.ai/patterns/graceful-degradation.md)
>
> What to do when Synap is unreachable. Cache, fallback prompts, queue retries.

> [card] [Replay Conversation History](https://docs.maximem.ai/patterns/replay-history.md)
>
> Bulk-ingest a corpus of historical conversations on Instance creation.

> [!NOTE]
>
> Want a pattern that isn't here? Email **[support@maximem.ai](mailto:support@maximem.ai)** with the use case and we'll add it. Patterns that get repeatedly requested become part of the docs.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.