AI Chat with Memory
Persistent chat sessions with conversation history
About
Build stateful AI chat experiences that remember previous conversations. Each chat session persists its full conversation history in persistent storage, so the AI has context across multiple exchanges.
Create named sessions, chat with full memory, retrieve history, and manage sessions — all via simple REST endpoints. Supports streaming responses for real-time UX.
API Endpoints
/chat/history/:sessionId/sessions/healthHow It Works
Session Creation
Conversations organized by sessionId — each session stores its own history in persistent storage.
History Retrieval
Previous messages loaded from persistent storage and appended to the LLM prompt as context.
LLM Generation
Full conversation history + new message sent to the LLM for contextual response.
History Persistence
Both user message and AI response appended to the session history in persistent storage.
Use Cases
Customer-Facing Chatbot
Build a chatbot that remembers user preferences and past conversations.
AI Assistant
Create a personal AI assistant with persistent memory across sessions.
Tutoring System
Educational chatbot that tracks student progress and adapts explanations over time.
Multi-Turn Workflows
Complex workflows where the AI needs to reference earlier steps in the conversation.
Opens Aerostack dashboard to deploy this template
What's Included
Pipeline
Billing Model
metered
Pay per token used. Free tier included.