Integrate CortexDB memory into Dify AI application workflows.

Dify Integration

CortexDB integrates with Dify as an external memory provider, adding long-term memory to your Dify applications.

Setup

  1. In your Dify application, navigate to Tools > Custom Tools
  2. Add a new tool provider with the CortexDB OpenAPI spec:
    https://api.cortexdb.io/openapi.json
    
  3. Configure authentication with your CortexDB API key
  4. The remember, recall, and forget tools become available in your workflows

Workflow Integration

Add CortexDB tools to your Dify workflow:

  1. Before LLM node: Add a cortex_recall tool node to fetch relevant context
  2. After LLM node: Add a cortex_remember tool node to store the conversation

Configuration

| Field | Description | |---|---| | API Endpoint | https://api.cortexdb.io or self-hosted URL | | API Key | Your CortexDB API key | | Tenant ID | Set as a variable in the tool configuration |