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.

app.ts
/**
 * 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
# DialogueDB — persistent AI conversation storage.
# Store messages, search by meaning, maintain state.

import requests

API = "https://api.dialoguedb.com/v1"
HEADERS = {"Authorization": f"Bearer {os.environ['DIALOGUE_DB_API_KEY']}"}

# 1. Create a conversation
dialogue = requests.post(f"{API}/dialogues",
  headers=HEADERS,
  json={"namespace": "user-456"}
).json()

# 2. Store messages — they're instantly searchable
requests.post(f"{API}/messages",
  headers=HEADERS,
  json={"dialogueId": dialogue["id"],
    "role": "user",
    "content": "How can I track my order?"}
)

# 3. Search by meaning, not just keywords
results = requests.get(f"{API}/search",
  headers=HEADERS,
  params={"query": "where is my package",
    "namespace": "user-456"}
).json()
# ^ finds the order tracking message above
# DialogueDB — persistent AI conversation storage.
# Store messages, search by meaning, maintain state.

# 1. Create a conversation
curl -X POST https://api.dialoguedb.com/v1/dialogues \
  -H "Authorization: Bearer $DIALOGUE_DB_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"namespace": "user-456"}'

# 2. Store messages — they're instantly searchable
curl -X POST https://api.dialoguedb.com/v1/messages \
  -H "Authorization: Bearer $DIALOGUE_DB_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"dialogueId": "dlg_abc", "role": "user",
       "content": "How can I track my order?"}'

# 3. Search by meaning, not just keywords
curl https://api.dialoguedb.com/v1/search \
  -H "Authorization: Bearer $DIALOGUE_DB_API_KEY" \
  -G -d "query=where+is+my+package" \
  -d "namespace=user-456"
# ^ finds the order tracking message above
Conversational AI memory layerAI bot continuous memoryLLM app building

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:

Conversation history that's always there
Separate spaces for separate users
Search that finds by meaning, not just words
Automatic data cleanup and retention
Conversation state between sessions
Predictable costs and performance

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

Database architecture

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 Documentation
01

Get your API key

Install the SDK, configure your API key, and you're ready to store conversations.

setup.ts
import { DialogueDB } from "dialogue-db"

const db = new DialogueDB({
  apiKey: process.env.DIALOGUE_DB_API_KEY
})
import requests

API = "https://api.dialoguedb.com/v1"
HEADERS = {"Authorization": f"Bearer {DIALOGUE_DB_API_KEY}"}
# Set your API key
export DIALOGUE_DB_API_KEY="your-api-key"
store.ts
const dialogue = await db.createDialogue({
  namespace: "user-456"
})

await dialogue.saveMessage({
  role: "user",
  content: "How do I reset my password?"
})
dialogue = requests.post(f"{API}/dialogues",
  headers=HEADERS,
  json={"namespace": "user-456"}
).json()

requests.post(f"{API}/messages",
  headers=HEADERS,
  json={"dialogueId": dialogue["id"],
    "role": "user",
    "content": "How do I reset my password?"}
)
curl -X POST https://api.dialoguedb.com/v1/dialogues \
  -H "Authorization: Bearer $DIALOGUE_DB_API_KEY" \
  -d '{"namespace": "user-456"}'

curl -X POST https://api.dialoguedb.com/v1/messages \
  -H "Authorization: Bearer $DIALOGUE_DB_API_KEY" \
  -d '{"dialogueId": "dlg_abc",
       "role": "user",
       "content": "How do I reset my password?"}'
02

Store your conversations

Create dialogues and save messages with optional metadata and auto-vectorization.

03

Search everything

Query by user, content, metadata, or semantic similarity. Load full conversation history instantly.

search.ts
const results = await db.searchMessages({
  query: "password reset",
  namespace: "user-456"
})

const messages = await dialogue.loadMessages({
  limit: 20
})
results = requests.get(f"{API}/search",
  headers=HEADERS,
  params={"query": "password reset",
    "namespace": "user-456"}
).json()

messages = requests.get(f"{API}/messages",
  headers=HEADERS,
  params={"dialogueId": "dlg_abc", "limit": 20}
).json()
curl https://api.dialoguedb.com/v1/search \
  -H "Authorization: Bearer $DIALOGUE_DB_API_KEY" \
  -G -d "query=password+reset" \
  -d "namespace=user-456"

curl https://api.dialoguedb.com/v1/messages \
  -H "Authorization: Bearer $DIALOGUE_DB_API_KEY" \
  -G -d "dialogueId=dlg_abc" \
  -d "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.

AI conversation memory

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.