# Conversational RAG Agent using InMemoryChatMessageStore

> Source: <https://haystack.deepset.ai/tutorials/48_conversational_rag/>
> Published: 2026-07-29 00:00:00+00:00

`Agent`

`ChatPromptBuilder`

`InMemoryBM25Retriever`

`OpenAIChatGenerator`

`InMemoryChatMessageStore`

`ChatMessageRetriever`

`ChatMessageWriter`

In this tutorial, you’ll first build a simple conversational pipeline using chat components and an LLM. You’ll then extend this setup into a conversational RAG pipeline using the Agent component, capable of handling multi-turn interactions over documents.
