Skip to content

Introduction

What is DialogueDB?

DialogueDB is a specialized API platform for managing conversational data at scale. It provides the infrastructure layer for AI applications that need to store, retrieve, and manage multi-turn conversations with full message history, state management, and threading support. Alongside conversations, DialogueDB also stores memories. These are persistent, searchable records an agent writes that exist independently of any single conversation.

Why DialogueDB?

Building conversational AI applications requires more than just connecting to an LLM. You need robust infrastructure to:

  • Persist conversation history across sessions
  • Manage conversation state and context
  • Support threaded discussions and branching conversations
  • Handle high-volume message storage efficiently
  • Retrieve conversations with flexible pagination
  • Compact long conversations while preserving context
  • Store persistent memories that outlive any single conversation
  • Search semantically across conversations and memories

DialogueDB handles all of this out of the box, allowing you to focus on building great user experiences.

Core Concepts

DialogueDB stores dialogues and memories. They're separate, so you can use either, both, or link them when it makes sense.

Dialogues

A dialogue represents an ordered sequence of authored messages. That's typically a conversation between users and AI assistants, but it can also be bot-to-bot exchanges, multi-agent reasoning, or any sequenced authored events. Each dialogue has a unique ID and can contain multiple messages. Dialogues can be:

  • Root dialogues: Standalone conversations
  • Threaded dialogues: Sub-conversations branching from a parent dialogue

Messages

Messages are the individual exchanges within a dialogue. Each message has:

  • A role (user, assistant, or system)
  • Content (the message text)
  • Metadata for custom attributes

Messages are automatically stored and optimized for fast retrieval.

State

State allows you to attach custom data to dialogues. Use state to store:

  • User preferences
  • Conversation context
  • Application-specific metadata
  • Session information

Threads

Threads enable conversation branching. Create a thread to:

  • Explore alternative conversation paths
  • Handle follow-up questions
  • Maintain multiple conversation contexts

Memory

Memories are persistent, searchable records that live independently of any dialogue. Use memories for:

  • User preferences and learned facts
  • Structured agent state that outlives a session
  • Anything that should be recalled later, with or without a conversation around it

Key Features

Automatic Optimization

  • Efficient message storage and retrieval
  • Smart pagination for large conversation histories
  • Conversation lifecycle management

Built for Scale

  • High-volume message handling
  • Project-based organization
  • Secure data isolation
  • Production-grade managed infrastructure

Developer-Friendly

  • RESTful API design
  • Comprehensive error handling
  • Detailed response schemas
  • SDK support (JavaScript/TypeScript, more to come)

Architecture

DialogueDB is a storage and memory layer for conversational AI. It is not a chatbot or LLM provider. Your application integrates with DialogueDB alongside your AI provider, using it to persist conversations and manage the context that drives coherent interactions.

Your ApplicationFrontend or backend
Prompts & Responses
AI / LLM ProviderOpenAI, Anthropic, etc.
Store & Retrieve
DialogueDBConversation Data Platform
HistoryStateMemoryThreadsSearch

Your app calls DialogueDB to persist conversations and retrieve context, then passes that context to the LLM for coherent, stateful interactions.

In a typical integration:

  1. Your app receives a user message
  2. Retrieve conversation history and context from DialogueDB
  3. Send the prompt (with context) to the LLM
  4. Store the exchange back in DialogueDB
  5. Return the response to the user

DialogueDB provides a fully managed API:

  • RESTful API: Simple HTTP endpoints with authentication
  • Distributed Storage: High-performance conversation and message persistence
  • Global Infrastructure: Low-latency access worldwide
  • Enterprise Security: Encryption at rest and in transit with project-level isolation

Use Cases

DialogueDB powers a wide range of conversational applications:

  • AI Chatbots: Customer support, virtual assistants, Q&A bots
  • Conversational Analytics: Analyze dialogue patterns and user behavior
  • Multi-Agent Systems: Coordinate conversations between multiple AI agents
  • Conversation History: Maintain persistent chat history across sessions
  • Compliance & Auditing: Store and retrieve conversation records
  • Personalization & Agent Memory: Store user preferences, learned facts, and structured state that agents recall across conversations

Next Steps

Ready to get started?

  1. Quickstart Guide - Create your first conversation in 5 minutes
  2. Authentication - Learn how to authenticate API requests
  3. Core Concepts - Deep dive into dialogues, memories, messages, and state
  4. API Reference - Explore all available endpoints