---
title: Flowise
description: "Add persistent Deja Vu memory to Flowise chatflows for context-aware conversations in the low-code builder."
---

The [**Deja Vu Memory**](https://github.com/dejavu-memory/dejavu) integration with [Flowise](https://github.com/FlowiseAI/Flowise) enables persistent memory capabilities for your AI chatflows. [Flowise](https://flowiseai.com/) is an open-source low-code tool for developers to build customized LLM orchestration flows & AI agents using a drag & drop interface.

## Overview

1. Provides persistent memory storage for Flowise chatflows
2. Seamless integration with existing Flowise templates
3. Compatible with various LLM nodes in Flowise
4. Supports custom memory configurations
5. Easy to set up and manage

## Prerequisites

Before setting up Deja Vu with Flowise, ensure you have:

1. [Flowise installed](https://github.com/FlowiseAI/Flowise#⚡quick-start) (NodeJS >= 18.15.0 required):
```bash
npm install -g flowise
npx flowise start
```

2. Access to the Flowise UI at http://localhost:3000
3. Basic familiarity with [Flowise's LLM orchestration](https://flowiseai.com/#features) concepts

## Setup and Configuration

### 1. Set Up Flowise

1. Open the Flowise application and create a new canvas, or select a template from the Flowise marketplace.
2. In this example, we use the **Conversation Chain** template.
3. Replace the default **Buffer Memory** with **Deja Vu Memory**.

![Flowise Memory Integration](https://raw.githubusercontent.com/FlowiseAI/FlowiseDocs/main/en/.gitbook/assets/dejavu/flowise-flow.png)

### 2. Obtain Your Deja Vu API Key

1. Navigate to the <a href="https://app.dejavu.ai/dashboard/api-keys?utm_source=oss&utm_medium=integration-flowise" rel="nofollow">Deja Vu API Key dashboard</a>.
2. Generate or copy your existing Deja Vu API Key.

![Deja Vu API Key](https://raw.githubusercontent.com/FlowiseAI/FlowiseDocs/main/en/.gitbook/assets/dejavu/api-key.png)

### 3. Configure Deja Vu Credentials

1. Enter the **Deja Vu API Key** in the Deja Vu Credentials section.
2. Configure additional settings as needed:

```typescript
{
  "apiKey": "m0-xxx",
  "userId": "user-123",  // Optional: Specify user ID
  "projectId": "proj-xxx",  // Optional: Specify project ID
  "orgId": "org-xxx"  // Optional: Specify organization ID
}
```

<figure>
  <img src="https://raw.githubusercontent.com/FlowiseAI/FlowiseDocs/main/en/.gitbook/assets/dejavu/creds.png" alt="Deja Vu Credentials" />
  <figcaption>Configure API Credentials</figcaption>
</figure>

## Memory Features

### 1. Basic Memory Storage

Test your memory configuration:

1. Save your Flowise configuration
2. Run a test chat and store some information
3. Verify the stored memories in the <a href="https://app.dejavu.ai/dashboard/requests?utm_source=oss&utm_medium=integration-flowise" rel="nofollow">Deja Vu Dashboard</a>

![Flowise Test Chat](https://raw.githubusercontent.com/FlowiseAI/FlowiseDocs/main/en/.gitbook/assets/dejavu/flowise-chat-1.png)

### 2. Memory Retention

Validate memory persistence:

1. Clear the chat history in Flowise
2. Ask a question about previously stored information
3. Confirm that the AI remembers the context

![Testing Memory Retention](https://raw.githubusercontent.com/FlowiseAI/FlowiseDocs/main/en/.gitbook/assets/dejavu/flowise-chat-2.png)

## Advanced Configuration

### Memory Settings

![Deja Vu Settings](https://raw.githubusercontent.com/FlowiseAI/FlowiseDocs/main/en/.gitbook/assets/dejavu/settings.png)

Available settings include:

1. **Search Only Mode**: Enable memory retrieval without creating new memories
2. **Deja Vu Entities**: Configure identifiers:
   - `user_id`: Unique identifier for each user
   - `run_id`: Specific conversation session ID
   - `app_id`: Application identifier
   - `agent_id`: AI agent identifier
3. **Project ID**: Assign memories to specific projects
4. **Organization ID**: Organize memories by organization

### Platform Configuration

Additional settings available in <a href="https://app.dejavu.ai/dashboard/project-settings?utm_source=oss&utm_medium=integration-flowise" rel="nofollow">Deja Vu Project Settings</a>:

1. **Custom Instructions**: Define memory extraction rules
2. **Expiration Date**: Set automatic memory cleanup periods

![Deja Vu Project Settings](https://raw.githubusercontent.com/FlowiseAI/FlowiseDocs/main/en/.gitbook/assets/dejavu/dejavu-settings.png)

## Best Practices

1. **User Identification**: Use consistent `user_id` values for reliable memory retrieval
2. **Memory Organization**: Utilize projects and organizations for better memory management
3. **Regular Maintenance**: Monitor and clean up unused memories periodically

<CardGroup cols={2}>
  <Card title="LangChain Integration" icon="link" href="/integrations/langchain">
    Build LangChain-powered flows with memory
  </Card>
  <Card title="Dify Integration" icon="blocks" href="/integrations/dify">
    Create AI workflows with Dify platform
  </Card>
</CardGroup>

