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
- In your Dify application, navigate to Tools > Custom Tools
- Add a new tool provider with the CortexDB OpenAPI spec:
https://api.cortexdb.io/openapi.json - Configure authentication with your CortexDB API key
- The
remember,recall, andforgettools become available in your workflows
Workflow Integration
Add CortexDB tools to your Dify workflow:
- Before LLM node: Add a
cortex_recalltool node to fetch relevant context - After LLM node: Add a
cortex_remembertool 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 |