Use Case Showcase

AI Chatbots

Give your chatbot a persistent personality.

How it works

Connect Libro to your AI chatbot to instantly give it long-term memory. It remembers user preferences, past topics, and communication styles across every single conversation.

Zero infrastructure required.

Libro handles the embeddings, vector storage, and semantic retrieval entirely on the edge. You just pass in strings.

ai-chatbots-integration.ts
// 1. Initialize Libro
import { Libro } from '@libro/sdk';
const ctx = new Libro({ apiKey: process.env.CTX_KEY });

// 2. Chatbot receives a message
const userMessage = "Remember that I prefer concise answers.";
await ctx.ingest({
  userId: "user_123",
  content: userMessage
});

// 3. Next session, fetch context before responding
const context = await ctx.getContext("user_123", "How do I invert a binary tree?");
console.log(context); // "User prefers concise answers..."

Stop writing context logic.
Start building AI features.

Get API Key