Where great chatbots store Memory
The Database Built for AI Conversations
Store conversations. Enable search. Maintain state.
DialogueDB is the complete storage solution for AI chat applications. Store what was said, find it when you need it, and let your applications pick up where they left off.
/**
* DialogueDB — persistent AI conversation storage.
* Store messages, search by meaning, maintain state.
*/
// 1. Connect to DialogueDB
import { DialogueDB } from "dialogue-db"
const db = new DialogueDB({
apiKey: process.env.DIALOGUE_DB_API_KEY
})
// 2. Create a conversation
const dialogue = await db.createDialogue({
namespace: "user-456"
})
// 3. Store messages — they're instantly searchable
await dialogue.saveMessage({
role: "user",
content: "How can I track my order?"
})
// 4. Search by meaning, not just keywords
const results = await db.searchMessages({
query: "where is my package",
namespace: "user-456"
})
// ^ finds the order tracking message above


Everything your chatbot needs to remember
Stop building chat infrastructure from scratch. DialogueDB handles message storage, conversation state, and semantic search automatically.
You get powerful search capabilities and data persistence without managing a separate database or complex infrastructure.
What DialogueDB handles automatically:
Security that doesn't get in the way
Encrypted, isolated, auditable
DialogueDB encrypts every conversation, isolates every user's data, and maintains audit trails automatically. Learn more about our security practices

One database.
Every conversation.
Zero complexity.
Every conversation creates data your AI needs to remember. We built the database to store and organize it all. With search that works instantly. State that persists automatically. And integration that takes minutes.
Works With Any LLM
Compatible with OpenAI, Anthropic, Gemini, LangChain, llm-exe, or any LLM framework. Switch providers without changing code.
Optimized Memory Engine
Auto-vectorization, state persistence, automatic cleanup. Complete chat infrastructure that works without config or maintenance.
Single-Line Install
Integrate with your AI apps in minutes. Get your API key and start storing messages immediately.
DialogueDB Features
The complete backend for AI conversations, built for you. Store conversations, enable intelligent search, and maintain state – all through one simple API.
Conversation History
Store all chat messages with automatic retention and cleanup policies
Auto-Vectorization
Every message automatically vectorized for semantic search
Advanced Search
Find any message instantly by meaning, user, timestamp, or metadata
User Isolation Built-In
Keep each user's conversations separate for privacy and easy querying
Instant Integration
Connect with a single API key & start storing conversations immediately
Free to Start
Free tier gives you everything you need to start testing with your app
How it works
Connect once. Use everywhere.
Your conversation infrastructure, managed and maintained. No databases to configure, no schemas to design, no servers to maintain.
View DocumentationGet your API key
Install the SDK, configure your API key, and you're ready to store conversations.
import { DialogueDB } from "dialogue-db"
const db = new DialogueDB({
apiKey: process.env.DIALOGUE_DB_API_KEY
})const dialogue = await db.createDialogue({
namespace: "user-456"
})
await dialogue.saveMessage({
role: "user",
content: "How do I reset my password?"
})Store your conversations
Create dialogues and save messages with optional metadata and auto-vectorization.
Search everything
Query by user, content, metadata, or semantic similarity. Load full conversation history instantly.
const results = await db.searchMessages({
query: "password reset",
namespace: "user-456"
})
const messages = await dialogue.loadMessages({
limit: 20
})Ideal for every application.
Chatbots, support agents, AI tutors, assistant apps – if your application has conversations, it needs memory. We provide the memory infrastructure with storage, search, and state.

DialogueDB Powers:
- • AI Chatbots & Virtual Assistants
- • Customer Support Bots
- • Recommendation Engines
- • Multi-Agent Systems
- • Compliance & Auditing
- • & any app that talks back
Build your AI app without the backend complexity.
Skip weeks of backend development. DialogueDB handles message storage, vector search, and state management so you can focus on your AI.