πŸ“’ 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.

You can create a personalized AI Companion using Zentry. This guide will walk you through the necessary steps and provide the complete setup instructions to get you started.

You can try the Zentry Demo live here.

Overview

The Personalized AI Companion leverages Zentry to retain information across interactions, enabling a tailored learning experience. It creates memories for each user interaction and integrates with OpenAI’s GPT models to provide detailed and context-aware responses to user queries.

Setup

Before you begin, follow these steps to set up the demo application:

  1. Clone the Zentry repository:

    git clone https://github.com/Zentryai/Zentry.git
  2. Navigate to the demo application folder:

    cd Zentry/examples/Zentry-demo
  3. Install dependencies:

    pnpm install
  4. Set up environment variables by creating a .env file in the project root with the following content:

    OPENAI_API_KEY=your_openai_api_key
    Zentry_API_KEY=your_Zentry_api_key

    You can obtain your Zentry_API_KEY by signing up at Zentry API Dashboard.

  5. Start the development server:

    pnpm run dev

Enhancing the Next.js Application

Once the demo is running, you can customize and enhance the Next.js application by modifying the components in the Zentry-demo folder. Consider:

  • Adding new memory features to improve contextual retention.
  • Customizing the UI to better suit your application needs.
  • Integrating additional APIs or third-party services to extend functionality.

Full Code

You can find the complete source code for this demo on GitHub: Zentry Demo GitHub

Conclusion

This setup demonstrates how to build an AI Companion that maintains memory across interactions using Zentry. The system continuously adapts to user interactions, making future responses more relevant and personalized. Experiment with the application and enhance it further to suit your use case!