Skip to main content
Use this cookbook when you are building:
  • a customer support chatbot
  • a human-agent copilot
  • a helpdesk platform like Intercom, Crisp, or Zendesk
  • a support automation layer for SaaS, ecommerce, fintech, travel, telecom, or education
The core pattern:

1. Enable Customer Support Schema

Start from the dashboard when you are evaluating MemoryOS with a real customer or internal demo.
  1. Open Settings in the workspace dashboard.
  2. Select Customer Support Schema.
  3. Choose your support routing mode.
  4. Save changes.
Customer Support Schema selected in MemoryOS tenant settings Use the API when you want to automate tenant setup. Enable the domain:
Executable curl:
Then configure routing.

Option A: Single Vertical

Use this if all of your support conversations belong to one vertical.
Executable curl:
Examples:

Option B: Multi-Vertical Helpdesk

Use this if you are a helpdesk platform serving many businesses.
Executable curl:
MemoryOS classifies each conversation within your allow-list during support extraction. There is no separate detection call.

Option C: Auto Detect

Use this for broad testing:

2. Use Stable Customer IDs

Use your internal customer identifier as external_user_id. Good:
Avoid using raw email as the primary ID if you already have a safer internal ID.

3. Copy-Paste Backend Flow

This is the practical production flow most teams use:
Copy this into your backend and replace the two integration functions with your real systems.
Replace only these functions: If you already have tools like get_order, create_refund, get_invoice, or update_ticket, keep them. MemoryOS does not replace them. MemoryOS gives the agent remembered customer context before it calls those tools.

4. Add Support Conversations

This code runs in your backend, not in the customer’s browser. Use it after a support conversation, or after every few messages in a long conversation. Replace the example values with your real values: Python backend example:
Example messages shape:
TypeScript backend example:
MemoryOS extracts only durable customer context. It does not replace your ticketing, billing, order, or CRM database.

5. Retrieve Memory Before Answering

Call get() at the start of a support response, before your model answers.
In production, customer_id should be the same stable ID you used in add(). For Support tenants, system_prompt_addition includes:
  • support memory usage rules
  • current open issue
  • customer identity hints
  • sentiment or escalation warnings
  • vertical-specific support context
  • communication preferences
  • issue history summary

6. Add Your Live Tools

MemoryOS should not replace your CRM, billing, order, banking, travel, or ticketing system. Your agent should call tools such as:
Then give both MemoryOS context and tool results to your model:
The agent should only make live-system claims from tool_results. Good:
Bad:
unless the billing tool actually returned that result. Add these to your support agent prompt:
MemoryOS also injects a shorter version of these rules in Support retrieval context.

8. Example: SaaS Billing Issue

First session:
MemoryOS stores:
Next session:
Your app should:

9. Example: Multi-Vertical Helpdesk

For an Intercom/Crisp-style tenant:
Then:
Use separate external_user_id values for separate real customers. Do not test every vertical under one customer unless you intentionally want one customer profile to contain multiple support histories.

10. Dashboard and analytics

List customers:
Get support stats:
These are admin endpoints. Normal AI responses should use SDK get().

11. Testing locally

The MemoryOS repository includes a standalone support desk demo:
It includes mock support tools and fake data so the agent can test tool-backed answers without calling real billing, order, or ticketing systems. Use:

Privacy checklist

Before going live:
  • Use stable internal IDs for external_user_id.
  • Store ticket IDs in metadata.
  • Mask account references where possible.
  • Do not send raw card numbers, OTPs, passwords, Aadhaar, PAN, full account numbers, or full passport numbers.
  • For banking/fintech, always combine MemoryOS with your own compliance-safe support tools.