Sub-2ms continuous episodic & semantic memory, promise ledger, and GDPR purge
Tunk Cortex Memory Layer
Tunk Cortex is the continuous episodic and semantic memory engine for enterprise voice AI agents, providing sub-2ms recall, promise tracking, and GDPR-compliant data sovereignty.
Explore Tunk Cortex Overview →
What is Tunk Cortex?
Stateless voice bots waste millions forcing callers to re-explain their identity and context on every call. Tunk Cortex eliminates conversational amnesia through a dual-phase memory architecture:
- Sub-2ms Hot-Path Recall: Edge-cached in Redis DB 0 to inject verified customer facts into the LLM system prompt tail before audio generation begins.
- Asynchronous Fact Extraction: Background BullMQ workers extract key-value facts, resolve timeline contradictions, and audit agent commitments post-call.
- Zero Hallucination: Passive, bounded markdown injection (
<!-- CUSTOMER_MEMORY_START -->) prevents speculative hallucination and prompt injection.
4-Tier Cognitive Architecture
âš¡ Tier 1: Working Memory
Sub-2ms Redis L1 Hot Cache
Pre-rendered bounded markdown block injected into prompt tail directly on telephony call ingress.
📜 Tier 2: Episodic Memory
Multi-Call Narrative Arc
Chronological timeline, intent shifts, and sentiment trajectory tracking across agent handoffs.
🧠Tier 3: Semantic Graph
Dynamic Fact Synthesis
Structured key-value facts (preferences, loyalty tier, orders) with source timestamps and agent provenance.
📋 Tier 4: Procedural Ledger
Audited Promise Tracking
Tracks fee waivers, manager callbacks, and ticket follow-ups until explicitly resolved.
Developer Integration
Enable continuous memory for any assistant in one line of code using the TypeScript SDK:
TypeScript
import { TunkVoiceClient } from "@tunk/sdk";
const tunk = new TunkVoiceClient({ apiKey: process.env.TUNK_API_KEY });
// Enable Cortex Memory on your assistant:
const assistant = await tunk.assistants.update("asst_concierge_91", {
name: "VIP Concierge Agent",
voice: "aura-orpheus-en",
// âš¡ One line to activate continuous episodic memory:
memory_enabled: true,
memory_config: {
max_facts: 15,
scope: "account", // Shared across all assistants in workspace
auto_track_promises: true, // Automatically tracks callbacks & waivers
anonymize_pii: true // Scrubs credit cards before storage
}
});REST API Reference
1. List Customer Memories
HTTP
GET /api/v1/ai-agent/customer-memory?page=1&limit=10&search=+14155550198
Authorization: Bearer <JWT_TOKEN>2. Get Single Customer Memory
HTTP
GET /api/v1/ai-agent/customer-memory/:customer_identifier
Authorization: Bearer <JWT_TOKEN>3. GDPR Article 17 Instant Purge
HTTP
DELETE /api/v1/ai-agent/customer-memory/:customer_identifier
Authorization: Bearer <JWT_TOKEN>Permanently purges the customer record from both PostgreSQL and Redis cache in under 100ms.
Enterprise Benefits
| Metric | Stateless Legacy Bots | Tunk Cortex Voice AI | Business Impact |
|---|---|---|---|
| Hot-Path Retrieval | None (Stateless) | < 1.8ms (Redis DB 0) | Zero voice latency added |
| Context Repetition | 3–5 questions per call | 0% Repetition | Callers recognized instantly |
| Average Handle Time | Baseline (100%) | -41% Reduction | Saves 2.1 minutes per call |
| Promise Tracking | 0% (Dropped on hangup) | 100% Audited Ledger | Guaranteed callback fulfillment |
| Hallucination Rate | 8.4% (Unbounded LLM) | < 0.6% (Bounded Tail) | Factual, grounded answers |
| Encryption | Variable | AES-256 at Rest | Strict tenant isolation |
| GDPR Readiness | Manual multi-table script | 1-Click / API Purge | Article 17 compliant |
Need help? Reach out on our support portal.