Skip to main content
Each recipe below is a self-contained pattern you can adapt to your domain. They all follow the same agent architecture: Perceive → Think → Act → Remember. Every recipe assumes you have a configured client:

1. Customer support agent

A support agent that remembers past tickets, learns resolution strategies, and knows the customer’s history before they explain anything.

Why Minns Memory Layer helps

  • Claims capture customer preferences and past issues (“User is on the Enterprise plan”, “User had a billing dispute in January”)
  • Context memories recall previous support sessions for the same problem type
  • Strategies encode proven resolution workflows so new agents follow best practices

Implementation

Closing a ticket

When the issue is resolved, mark the goal as complete so the episode gets stored as a long-term memory:
Log both successful and failed resolutions. Failed episodes become Negative memories that help the agent avoid repeating mistakes.

2. Research assistant

An agent that helps researchers find, summarize, and organize information — building up a knowledge base over time.

Why Minns Memory Layer helps

  • Claims accumulate extracted facts across many research sessions
  • Context memory recalls what the researcher was working on last time
  • Strategies learn efficient search patterns (e.g., “When researching X, start with source Y”)

Implementation

Building a knowledge base over time

Each research session extracts claims from papers. Over time, the agent builds a rich knowledge graph:

3. E-commerce recommendation agent

A shopping assistant that learns customer preferences, remembers browsing patterns, and gets better at recommendations with every interaction.

Why Minns Memory Layer helps

  • Claims capture preferences: “User prefers organic products”, “User’s budget is under $50”
  • Context memory remembers past shopping sessions and abandoned carts
  • Policy Guide suggests the best next action based on conversion patterns

Implementation

Tracking the conversion funnel

Log each step of the funnel so the Policy Guide learns what leads to purchases:
As the agent logs more funnels, the Policy Guide learns patterns like: “After add_to_cart, offering free shipping has a 78% conversion rate.”

4. IoT monitoring agent

An agent that monitors sensor data, detects anomalies, remembers past incidents, and learns diagnostic strategies.

Why Minns Memory Layer helps

  • Observation events log sensor readings with confidence scores
  • Context memory recalls past incidents with the same signature
  • Strategies encode proven diagnostic and remediation workflows

Implementation

Closing an incident

When the issue is resolved, log the resolution so the agent learns from it:
The context string gets claim-extracted automatically. The next time any device has a coolant issue, searchClaims("coolant problems") returns the root cause and resolution from this incident.

5. Content moderation agent

An agent that reviews user-generated content, learns from past moderation decisions, and adapts its policies over time.

Why Minns Memory Layer helps

  • Claims accumulate moderation rules and edge cases learned from past decisions
  • Strategies encode moderation workflows (e.g., “Flag, review, then act”)
  • Context memory remembers repeat offenders and their history

Implementation


6. Onboarding assistant

A guided onboarding agent that walks new users through setup, remembers where they left off, and adapts the flow based on what’s worked for similar users.

Why Minns Memory Layer helps

  • Context memory picks up exactly where the user left off, even across sessions
  • Claims track what the user has completed: “User connected GitHub”, “User skipped billing setup”
  • Policy Guide recommends the optimal next step based on what’s worked for other users

Implementation

When step.weight reaches 1.0 (the “invite_team” step), the episode completes and becomes a long-term memory. The Policy Guide uses successful onboarding sessions to recommend the optimal step order for new users.

Patterns across all recipes

Every recipe above follows the same principles:
Always call await client.flush() before your process exits. This applies to every recipe above — wrap your agent loop in a try/finally block.

Next steps

Build a chat agent

Full walkthrough: from intent model to production agent.

Query selection

Learn which search to use for every retrieval pattern.

Event builder

Full reference for the fluent event builder API.

API Reference

Explore every endpoint in detail.