📢 Announcing our research paper: Zentry achieves 26% higher accuracy than OpenAI Memory, 91% lower latency, and 90% token savings! Read the paper to learn how we're revolutionizing AI agent memory.
Pipecat Integration
Zentry seamlessly integrates with Pipecat, providing long-term memory capabilities for conversational AI agents. This integration allows your Pipecat-powered applications to remember past conversations and provide personalized responses based on user history.Installation
To use Zentry with Pipecat, install the required dependencies:Configuration
Zentry integration is provided through theZentryMemoryService class in Pipecat. Here’s how to configure it:
Pipeline Integration
TheZentryMemoryService should be positioned between your context aggregator and LLM service in the Pipecat pipeline:
Example: Voice Agent with Memory
Here’s a complete example of a Pipecat voice agent with Zentry memory integration:How It Works
When integrated with Pipecat, Zentry provides two key functionalities:1. Message Storage
All conversation messages are automatically stored in Zentry for future reference:- Captures the full message history from context frames
- Associates messages with the specified user, agent, and run IDs
- Stores metadata to enable efficient retrieval
2. Memory Retrieval
When a new user message is detected:- The message is used as a search query to find relevant past memories
- Relevant memories are retrieved from Zentry’s database
- Memories are formatted and added to the conversation context
- The enhanced context is passed to the LLM for response generation