Conversational AI

Build conversational AI agents that maintain session memory across multi-turn interactions, stream responses in real time, and handle complex dialogue flows. This pattern covers stateful chat agents that remember context, adapt to user intent, and integrate with external tools and knowledge sources.

Overview

When to Use This Pattern

  • You need a chat-based agent that remembers prior turns in a conversation

  • Your application requires streaming token-by-token responses to end users

  • You want to build a customer-facing assistant with tool use and contextual memory

  • You need multi-turn interactions where each turn builds on previous context

Akka Components Involved

  • Agents — core conversational logic and LLM integration

  • HTTP Endpoints — expose the agent via REST or WebSocket for client applications

  • Session Memory (Key Value Entities) — persist conversation history and session state with sub-10ms access

Sample Projects

The following sample projects demonstrate this pattern: