> ## 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.

# 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](/cookbook/overview): end-to-end reference agents built on top of these patterns.

<CardGroup cols={2}>
  <Card title="Multi-Tenant SaaS" icon="building" href="/patterns/multi-tenant-saas">
    Scope memories per customer organization. Reuse one Instance across all your B2B customers.
  </Card>

  <Card title="Slack Bot with Memory" icon="slack" href="/patterns/slack-bot">
    Add per-channel and per-user memory to a Slack bot using Bolt + Synap.
  </Card>

  <Card title="Voice Agent (LiveKit)" icon="microphone" href="/patterns/voice-agent-livekit">
    Memory-augmented voice agent on LiveKit. Recall caller history mid-call.
  </Card>

  <Card title="RAG over User History" icon="database" href="/patterns/rag-user-history">
    Pure semantic retrieval over a single user's past conversations. Synap as your RAG.
  </Card>

  <Card title="Graceful Degradation" icon="shield" href="/patterns/graceful-degradation">
    What to do when Synap is unreachable. Cache, fallback prompts, queue retries.
  </Card>

  <Card title="Replay Conversation History" icon="rotate-left" href="/patterns/replay-history">
    Bulk-ingest a corpus of historical conversations on Instance creation.
  </Card>
</CardGroup>

<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.
</Note>
